Received: by 2002:a05:6a10:a841:0:0:0:0 with SMTP id d1csp620414pxy; Wed, 28 Apr 2021 10:37:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxOuTPk67Qc1PUzSW1/2uCj+qhI3a/P7jj6Ny4oGIKyeYacKyYxnWtfqBfs98G3chEx4Oa+ X-Received: by 2002:a17:907:6192:: with SMTP id mt18mr30958419ejc.530.1619631426430; Wed, 28 Apr 2021 10:37:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1619631426; cv=none; d=google.com; s=arc-20160816; b=g3qmdgSFYZjqww46dH/qVwHgzP6A26ka8bhZqO9nouheKmmIPigRme1JLTkYYipnb1 CwqtX5eWCc8moGK6+StgVhRbeMznZ4pu8PkseiDlSsu35FyW43U8DkivqiekBOtZaNi6 pzlrk1Y2DdLFX4I98Ryh5QdhWeJXOjB1hL5QuS6UlUQRjmy8o/q5a2wUJ5FSj0+b4aIl I86nAKHJhlctvwjjeDSLgScOlUqBfECyOKXs8Tyz0A1EeZeSFB2PccLBguHWM4MTCMCX GcAix5d5lI+fEITZzt1n1jdesSaMgJP9byL+6thNkwpmCCZXZv7yju+hr9vAnevjcEMw xeKQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:ironport-sdr:ironport-sdr; bh=eQxHy8UApzNFDy+5mt7uadLssqshAxgDuJXXGtGpHPo=; b=wd8WOd0zmMa/iThhvYeWPflxumLBNmXTvwxMKGeVNUsJ/JkVyEC9F6agA5Y/0Bgdi8 bF8uf4CnWC+b0sdsaW5t+dN2KCOvLsKr9U7pF3OCV1ynnGXo8sFpsQelOs+JI9doN19C 8CAWcG464AVp1zEWUn+h3B+QXLwecWvgoWY/A3QEbKzVkYMORN+cosMbqyc4XkGUOHYL maKNIVi0oxYpyL8yQsL/xj2dAxKHtb4gxBJSFtMckNKu3vEzrU4jDLRnidhbcfLbz+rz JTa/+YQM1FaOguW0omYESI/8uVDJB2/qbgaqlMh1hkVYNMon7It0/J1yYuvJWfIDPY/i rnCQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a27si615169ejb.515.2021.04.28.10.36.41; Wed, 28 Apr 2021 10:37:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235620AbhD1PSY (ORCPT + 99 others); Wed, 28 Apr 2021 11:18:24 -0400 Received: from mga14.intel.com ([192.55.52.115]:16742 "EHLO mga14.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229805AbhD1PSY (ORCPT ); Wed, 28 Apr 2021 11:18:24 -0400 IronPort-SDR: mUpYq0N7Qel4RlQno1R4W0TCNezC9vVNZIaTy8FTQjfwI6w5JyKWVWP0yNQDg1p8RrF5MT1RBQ vzi92VNWU0hg== X-IronPort-AV: E=McAfee;i="6200,9189,9968"; a="196318619" X-IronPort-AV: E=Sophos;i="5.82,258,1613462400"; d="scan'208";a="196318619" Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 Apr 2021 08:17:38 -0700 IronPort-SDR: v7aXp3XAG64N5KnxOone90boPMhRuHAx6C1pPUPFr8uHerT0fLoM1+VX/WGeRvFfVJTSiCoxZ6 mHbc9/4mFgCw== X-IronPort-AV: E=Sophos;i="5.82,258,1613462400"; d="scan'208";a="619348552" Received: from sachanta-mobl.amr.corp.intel.com (HELO [10.209.170.35]) ([10.209.170.35]) by fmsmga005-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 Apr 2021 08:17:37 -0700 Subject: Re: [PATCH 2/2] ASoC: da7219: do not request a new clock consummer reference To: Jerome Brunet , Mark Brown Cc: Stephen Boyd , alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org References: <20210428122632.46244-1-jbrunet@baylibre.com> <20210428122632.46244-3-jbrunet@baylibre.com> From: Pierre-Louis Bossart Message-ID: Date: Wed, 28 Apr 2021 10:17:35 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.7.1 MIME-Version: 1.0 In-Reply-To: <20210428122632.46244-3-jbrunet@baylibre.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 4/28/21 7:26 AM, Jerome Brunet wrote: > This reverts commit 12f8127fe9e6154dd4197df97e44f3fd67583071. > > There is problem with clk_hw_get_hw(). Using it pins the clock provider to > itself, making it impossible to remove the module. > > Revert commit 12f8127fe9e6 ("ASoC: da7219: properly get clk from the > provider") until this gets sorted out. > > Reported-by: Pierre-Louis Bossart > Signed-off-by: Jerome Brunet I added this patch in the SOF tree and the CI results are back to normal: https://sof-ci.01.org/linuxpr/PR2879/build5689/devicetest/ Tested-by: Pierre-Louis Bossart Thanks Jerome, this was a surprising/hard-to-detect side effect. > --- > sound/soc/codecs/da7219.c | 5 +---- > 1 file changed, 1 insertion(+), 4 deletions(-) > > diff --git a/sound/soc/codecs/da7219.c b/sound/soc/codecs/da7219.c > index bd3c523a8617..13009d08b09a 100644 > --- a/sound/soc/codecs/da7219.c > +++ b/sound/soc/codecs/da7219.c > @@ -2181,10 +2181,7 @@ static int da7219_register_dai_clks(struct snd_soc_component *component) > ret); > goto err; > } > - > - da7219->dai_clks[i] = devm_clk_hw_get_clk(dev, dai_clk_hw, NULL); > - if (IS_ERR(da7219->dai_clks[i])) > - return PTR_ERR(da7219->dai_clks[i]); > + da7219->dai_clks[i] = dai_clk_hw->clk; > > /* For DT setup onecell data, otherwise create lookup */ > if (np) { >