Received: by 2002:a05:6a10:a841:0:0:0:0 with SMTP id d1csp410762pxy; Wed, 28 Apr 2021 06:50:14 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwli4KFBEUMwrBVMxcKZwslz5X6JGF/5Y/j/vb96BZKGtXQ0mLPy3+s3M/Ot5f3f5edxmN1 X-Received: by 2002:a62:5f87:0:b029:263:d07d:e88e with SMTP id t129-20020a625f870000b0290263d07de88emr28331455pfb.39.1619617814522; Wed, 28 Apr 2021 06:50:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1619617814; cv=none; d=google.com; s=arc-20160816; b=rmhx9H7flMwSsgs/WgKY8mRBSDAkzY+Q0boKsXSLLfrC7c9titcCDuifETa8giA4se IbVzPMykTwA+6nSnj+aIanV0dhLnQp8GUEPpRKcjE1utRfTrwNk/0QFkA9Unid5aieHw eNIlVOTTaqXo3fylEP967rt/Xr1EIZXgJiA4DGXyfckJXYuCoKn4iyMITCHE3spNQNPV iJSOborHlxm6fsXI98eMoD6fNiS6bG6ev9z9ojAu1mWxB+gDaEISOCaO0poEm2mSopeO jLDL0eH3XYBI/Xwob9puVOIAw7ysrpKcJ/Oh8IahQpyjn3pDMgr+FJpyetwSlGE7WWPB cWUA== 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:cc:to:from :dkim-signature; bh=2s9J474JZEARtTyoYarg8YHk4rTHZwi14Y+KDirOQUE=; b=d0+WSNzzPtTMPjtJIFn4/GSjh3u8cXiNoRxz3x8KDU91KgaFDDZ0V+Q2GD9WfT5jM8 aeph6go3IYZnooZh0p2/WGGmqgxgTD4rIu0H3IeUp1LvKgfZX8UUxD451er+W9WKGIdu whqs1Jg40hHc3BvY4hVSK9RqgEf1sbl9+TpPmwJ7gAlQHG6UA9MTrusI+3bP7tDRG+Gv 4AJrtd5aRA83kRafWdi8ZkLb85APWdYKYlRDhPHQaiSeFwUYNFBYkwRvn3cRs98gibC9 zJMrmQB8b4E7cLzCsGL6IEbeu2c1fJD2UuQRdOFjWUYl1iCu7ScD4HInDk79b6S8gxgH PZpw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=Vi2yGBQw; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c1si6600105pjq.124.2021.04.28.06.49.59; Wed, 28 Apr 2021 06:50:14 -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; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=Vi2yGBQw; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235538AbhD1M1a (ORCPT + 99 others); Wed, 28 Apr 2021 08:27:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34540 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232051AbhD1M12 (ORCPT ); Wed, 28 Apr 2021 08:27:28 -0400 Received: from mail-wr1-x433.google.com (mail-wr1-x433.google.com [IPv6:2a00:1450:4864:20::433]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C935EC061574 for ; Wed, 28 Apr 2021 05:26:43 -0700 (PDT) Received: by mail-wr1-x433.google.com with SMTP id n2so9673200wrm.0 for ; Wed, 28 Apr 2021 05:26:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=2s9J474JZEARtTyoYarg8YHk4rTHZwi14Y+KDirOQUE=; b=Vi2yGBQwLLvbUL/PZNfqnZWUQEW3eb7RyybrpCOByvM/YIEE2TP7jdEk9ko1KePQFR YyrdEbq58ghqLszXpKU+fYwHdOLGtF6OCedhP02ErXj9yK8kXGyNoLe/qD5ECmD9UAjh nrD85fsrfFfbNSgLBEocEDoYjeLirccPc4egnhMjXoNJcDTlHG4dkswd8mojF734iJ1v p0rs4ClW4Cro5OQpbHuRHercHRDTSLCr8QwSzClGK/64A8VonQ3nGwUk4ZtUG1Fkyvs+ sjAXa8PrGInVtf3757M9CWvszPWEjgtsILgad0FJEpPm0WvZe43UR5W5ceCYdlUUiOtl jfiw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=2s9J474JZEARtTyoYarg8YHk4rTHZwi14Y+KDirOQUE=; b=tKSOsVJCN0gqjLHjezeepDmWdi5ZKjCT/Smx3kHRGdTwIJ91voiJVZ9l0I3e7mgG6J 7sAs8b1ZmIEJpgN3XqhlFo3+v+Q9kzkqaxC0rvFthrKCpB+JWTkmWUZma8K0Mb1yLJP4 WmWW5BQPEEOW+dJvLOePhMMrN4R/oULIXSQAEJLF6cLwbDcU9oIflyn7CtgB4BYiz0qr hF69qScnykmfk6YkOFnKhniDkAEM34i1oY3vGFoejlak7//sskmb7akh3pDNqF3qGzoE 4captmu7DKy0GasFPK4gScbhqTtVrrDJ8rwVqRrn096SEM+hertI5hxNlLGwuKe+u4np Ecmg== X-Gm-Message-State: AOAM531Suv4scOE7ezJPSwEvOAqNiMtwac8boWV4EXP/Ap//Sh6dTAJz WPFjWXAG05+n6A0FmgR2AStqJQ== X-Received: by 2002:a05:6000:1290:: with SMTP id f16mr2680463wrx.52.1619612802473; Wed, 28 Apr 2021 05:26:42 -0700 (PDT) Received: from localhost.localdomain (82-65-169-74.subs.proxad.net. [82.65.169.74]) by smtp.googlemail.com with ESMTPSA id 6sm7872021wmg.9.2021.04.28.05.26.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 28 Apr 2021 05:26:42 -0700 (PDT) From: Jerome Brunet To: Mark Brown Cc: Jerome Brunet , alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org, Stephen Boyd , Pierre-Louis Bossart Subject: [PATCH 2/2] ASoC: da7219: do not request a new clock consummer reference Date: Wed, 28 Apr 2021 14:26:32 +0200 Message-Id: <20210428122632.46244-3-jbrunet@baylibre.com> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210428122632.46244-1-jbrunet@baylibre.com> References: <20210428122632.46244-1-jbrunet@baylibre.com> MIME-Version: 1.0 X-Patchwork-Bot: notify Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- 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) { -- 2.31.1