Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp5093443ybv; Tue, 11 Feb 2020 09:03:45 -0800 (PST) X-Google-Smtp-Source: APXvYqyENyjN6lT5pHbmura8JlbW8SjhkSxko/adpqwoLIwdCvwhQxQbSp65sQkFamQyXPE8RfHx X-Received: by 2002:a9d:f26:: with SMTP id 35mr5705377ott.31.1581440624795; Tue, 11 Feb 2020 09:03:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581440624; cv=none; d=google.com; s=arc-20160816; b=uZXUtrKpaYvQJeq44Pz7Tb+quMsNx7kNRx77kSB63F2ct0YxNBUpsUOMLYjAq5/O4S 9kcRzB5rvXjsDeKoIfr0IepINAmg08WOBpV8YyFDfJ61OwdU7thiEhq2dlmYLDw7kp3E 0UUyY1R/ijbMMdDDrxr3WhdqNZ9UXN2ye/xipZV5342+oiyasArtR45//QhWIKSrZHKa wydfaUK4QmH6Ls/A4kOEsZRB1Zs5qSA72fAfbeLxKevT/J605N0fD05PctCKeo8Hckx+ QLvSU7cVSlFIHnxuhnqN1YETUfuttRU8RDFrTqWIrRZSZDLTEOEcydNQO88KHf33vgd6 uE5g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:in-reply-to:subject:cc:to:from :date; bh=aLJFhLVxwNk49cIM/XSQ9eGLBgNO4QQKC9sDELwUFK8=; b=tohi72k4pDD/zJLJ/WSzX5LcSdKY7BNcy5xzxW0hkXno3K+1kN3hjcB7op8E/Eppno U6qsycP99iL1TEAzb6cKiL6SaZ5kK8n0pwJzSXo9z0I8dURiW36uyBFcarUby+KNnsQR tYGhrS+S1nk1VJhG0KChDLFMBgN0jwvPC+erNqzkaL8/lsibVAgJsSYV3+p3rpWQ+1aU FySmRZW4Aq5c9aGjOiVuaWZEetZitGBlGZY9HaWF5euJC5Cnut++8QRA3eeGs2cJO3D/ lTWRJJLh4dSZ4eKAZQOG/y60OTLzQpWft9k4g1yypobcNIYjb1uovq/54y+M4EHGlTd5 EBLg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p83si1992495oih.198.2020.02.11.09.03.27; Tue, 11 Feb 2020 09:03:44 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730558AbgBKPtt (ORCPT + 99 others); Tue, 11 Feb 2020 10:49:49 -0500 Received: from foss.arm.com ([217.140.110.172]:48632 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730524AbgBKPtl (ORCPT ); Tue, 11 Feb 2020 10:49:41 -0500 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 236ED113E; Tue, 11 Feb 2020 07:49:41 -0800 (PST) Received: from localhost (unknown [10.37.6.21]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 9BFE13F68E; Tue, 11 Feb 2020 07:49:40 -0800 (PST) Date: Tue, 11 Feb 2020 15:49:39 +0000 From: Mark Brown To: Olivier Moysan Cc: alexandre.torgue@st.com, alsa-devel@alsa-project.org, broonie@kernel.org, Etienne Carriere , lgirdwood@gmail.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, Mark Brown , mcoquelin.stm32@gmail.com, olivier.moysan@st.com, perex@perex.cz, tiwai@suse.com Subject: Applied "ASoC: stm32: spdifrx: manage error when getting reset controller" to the asoc tree In-Reply-To: <20200203100814.22944-3-olivier.moysan@st.com> Message-Id: X-Patchwork-Hint: ignore Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The patch ASoC: stm32: spdifrx: manage error when getting reset controller has been applied to the asoc tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-5.7 All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted. You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed. If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced. Please add any relevant lists and maintainers to the CCs when replying to this mail. Thanks, Mark From 7889c0082e6400ae5d07345e5573548d0999b840 Mon Sep 17 00:00:00 2001 From: Olivier Moysan Date: Mon, 3 Feb 2020 11:08:10 +0100 Subject: [PATCH] ASoC: stm32: spdifrx: manage error when getting reset controller Return an error when the SPDIFRX driver fails to get a reset controller. Also add an error trace, except on probe defer status. Signed-off-by: Etienne Carriere Signed-off-by: Olivier Moysan Link: https://lore.kernel.org/r/20200203100814.22944-3-olivier.moysan@st.com Signed-off-by: Mark Brown --- sound/soc/stm/stm32_spdifrx.c | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/sound/soc/stm/stm32_spdifrx.c b/sound/soc/stm/stm32_spdifrx.c index 3769d9ce5dbe..9f80ddf34443 100644 --- a/sound/soc/stm/stm32_spdifrx.c +++ b/sound/soc/stm/stm32_spdifrx.c @@ -978,12 +978,16 @@ static int stm32_spdifrx_probe(struct platform_device *pdev) return ret; } - rst = devm_reset_control_get_exclusive(&pdev->dev, NULL); - if (!IS_ERR(rst)) { - reset_control_assert(rst); - udelay(2); - reset_control_deassert(rst); + rst = devm_reset_control_get_optional_exclusive(&pdev->dev, NULL); + if (IS_ERR(rst)) { + if (PTR_ERR(rst) != -EPROBE_DEFER) + dev_err(&pdev->dev, "Reset controller error %ld\n", + PTR_ERR(rst)); + return PTR_ERR(rst); } + reset_control_assert(rst); + udelay(2); + reset_control_deassert(rst); ret = devm_snd_soc_register_component(&pdev->dev, &stm32_spdifrx_component, -- 2.20.1