From patchwork Wed Jul 5 19:03:22 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andreas Kemnade X-Patchwork-Id: 116303 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9f45:0:b0:3ea:f831:8777 with SMTP id v5csp2077325vqx; Wed, 5 Jul 2023 12:05:45 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6gxFMpJFc4e3yjUNcpEe2boK9IXd2+y2+7zVvfilI10/cYQAqe/LPbfTGfFzT2WCY21evX X-Received: by 2002:a05:6808:202:b0:394:45ad:3ea7 with SMTP id l2-20020a056808020200b0039445ad3ea7mr17376478oie.5.1688583944818; Wed, 05 Jul 2023 12:05:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688583944; cv=none; d=google.com; s=arc-20160816; b=Z7Cc9KoYZ9DLSGq76zxL9gQbRRGJ9blExnnVHYfHnWMzJ/ScRdK6QMZgIJZQdFVDty YcELRT2OHGMrNBpncWr++aCrWbZ4dqlaOVFQ0jP8gnScOBOOBdgIOQWVYJzaLy7QU5wC WgXhvaPZjd0QOtPbujLnle9w0eHbAXVKiBc6DQgK9IxMlF6+27XUWQ9gX7sohUphopgs tRbKC/UxnAc8jBpGVIy3GORRgIVaeS/wqdpl1Slz+XaMpgjlEqL0vvX/xI/Ca6kujr4z K2tFLUrZRXBMjf+A1522gbqNS7CmX5yvNlwfR15LMt7mIGX4J3Ap07SRlHcLzFJCepGX vnVw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:to:from; bh=XidrlWBMV8ca025GyCUIBf8MRDnnygH+wmt6RvrjMMc=; fh=k7VoT2L8jBkp/srhzriYpHmGaQcD33boGmUYQ969TJw=; b=sanjF0MVne91S8iCvRjtIOdUxKIbaAUawvBHW4a8XW4Yy83b6rqwiC4Fx5w30sjbKj D43iAIt8e/bd/7Y+O2zPzQNDDMmTN0/aBaqzFrk1BXhv9giDsRBCvPVURj1ARqWWT016 eOO8X/gbq2X+pFaMpplV6BiKORc1/tuVuJl1FANsDlEK6fAZnQLVJjeefWM3Nd2AmHTE THQafue6dslIlj6ELbZ4CAKDM+L0yB4XFNLGv6fDjnsAqeOOuqYLhjjGkKej7gKYWp+z hS2enl58vKxkrU1M3J+lAcRryPwF/Vt43bLQ8Jj6uvZ2ZnT+EEhB4ylU8zDuLZ0kmV6i RDJA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h5-20020a63c005000000b0054f8b4d2979si23926700pgg.10.2023.07.05.12.05.30; Wed, 05 Jul 2023 12:05:44 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233494AbjGETE7 (ORCPT + 99 others); Wed, 5 Jul 2023 15:04:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43606 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233522AbjGETEA (ORCPT ); Wed, 5 Jul 2023 15:04:00 -0400 Received: from mail.andi.de1.cc (mail.andi.de1.cc [IPv6:2a02:c205:3004:2154::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8170D1FEB; Wed, 5 Jul 2023 12:03:40 -0700 (PDT) Received: from p200300ccff0adc001a3da2fffebfd33a.dip0.t-ipconnect.de ([2003:cc:ff0a:dc00:1a3d:a2ff:febf:d33a] helo=aktux) by mail.andi.de1.cc with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qH7mi-0017Xe-Bk; Wed, 05 Jul 2023 21:03:28 +0200 Received: from andi by aktux with local (Exim 4.96) (envelope-from ) id 1qH7mh-001UQk-36; Wed, 05 Jul 2023 21:03:27 +0200 From: Andreas Kemnade To: bcousson@baylibre.com, tony@atomide.com, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, lgirdwood@gmail.com, broonie@kernel.org, perex@perex.cz, tiwai@suse.com, peter.ujfalusi@gmail.com, jarkko.nikula@bitmer.com, dmitry.torokhov@gmail.com, andreas@kemnade.info, linux-omap@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, alsa-devel@alsa-project.org Subject: [PATCH 1/3] ASoC: ti: omap-mcbsp: Ignore errors for getting fck_src Date: Wed, 5 Jul 2023 21:03:22 +0200 Message-Id: <20230705190324.355282-2-andreas@kemnade.info> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230705190324.355282-1-andreas@kemnade.info> References: <20230705190324.355282-1-andreas@kemnade.info> MIME-Version: 1.0 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1770608598621359914?= X-GMAIL-MSGID: =?utf-8?q?1770608598621359914?= Commit 349355ce3a05 ("ARM: OMAP2+: Drop legacy platform data for omap4 mcbsp") dropped prcm_fck for omap4, so the clk_src might not be available making the clk_get(src) fail. In such cases, rely on the devicetree to assign the correct parent. Signed-off-by: Andreas Kemnade --- sound/soc/ti/omap-mcbsp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sound/soc/ti/omap-mcbsp.c b/sound/soc/ti/omap-mcbsp.c index 21fa7b9787997..f9fe96b61852b 100644 --- a/sound/soc/ti/omap-mcbsp.c +++ b/sound/soc/ti/omap-mcbsp.c @@ -70,8 +70,8 @@ static int omap2_mcbsp_set_clks_src(struct omap_mcbsp *mcbsp, u8 fck_src_id) fck_src = clk_get(mcbsp->dev, src); if (IS_ERR(fck_src)) { - dev_err(mcbsp->dev, "CLKS: could not clk_get() %s\n", src); - return -EINVAL; + dev_info(mcbsp->dev, "CLKS: could not clk_get() %s\n", src); + return 0; } pm_runtime_put_sync(mcbsp->dev);