From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0533E28725B; Mon, 9 Feb 2026 14:50:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770648657; cv=none; b=jAZmfbxPnuNYi5mRs06WpWrPwY2xCTHtcQS9iNGp2ye86FUdY06KkBkFIxRrnrHhGxMveSEh73MEJ8D3A+jhaT7N59UkMODa3SeTDrOwnWHxnrRUxtvrAJ/XraL+P11NRmG9Hja6jm2V+WoTys9zPceG7PTCJ8M4jeNd1oCjpqU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770648657; c=relaxed/simple; bh=6Vbig+42gL3O5LD/0wGlT3xDOQvE15m0yelRvmdEIpE=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=J7Zoog1sabevv7Lp9BTRCLgxLbk35gcPCF5rjHAFAWH6rEeBoRO5vSe5xPFXd3zf6ILDM5MxtIV0CaVLJQHsQM9xzuw7dAO2MlIOIhilc8zdlUPtKqKJ+J+Ssl/0O+nJSUijZjk5GoniotAfW+mm0h9euwYuhpGEnibUM8FfKhA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=QY2SNdpt; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="QY2SNdpt" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 78DC6C116C6; Mon, 9 Feb 2026 14:50:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1770648656; bh=6Vbig+42gL3O5LD/0wGlT3xDOQvE15m0yelRvmdEIpE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=QY2SNdpt1O2LOcKNzrJXkSFbWgXEBhUvJGm8KAafTq8uVEIuS2SV8FFvTNv9ZCo0n bZhty0ET04uhjckpmr18SmGNBzZ6bqkKk4D334hlNO1qS7cCplqbSB37/rh4v69u2K QqbquLAspD2MdjyTlaZF3wLDivhp1qRN9C2yq38k= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Dimitrios Katsaros , Sascha Hauer , Mark Brown , Sasha Levin Subject: [PATCH 5.10 18/41] ASoC: tlv320adcx140: Propagate error codes during probe Date: Mon, 9 Feb 2026 15:24:39 +0100 Message-ID: <20260209142257.466844170@linuxfoundation.org> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20260209142256.797267956@linuxfoundation.org> References: <20260209142256.797267956@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 5.10-stable review patch. If anyone has any objections, please let me know. ------------------ From: Dimitrios Katsaros [ Upstream commit d89aad92cfd15edbd704746f44c98fe687f9366f ] When scanning for the reset pin, we could get an -EPROBE_DEFER. The driver would assume that no reset pin had been defined, which would mean that the chip would never be powered. Now we both respect any error we get from devm_gpiod_get_optional. We also now properly report the missing GPIO definition when 'gpio_reset' is NULL. Signed-off-by: Dimitrios Katsaros Signed-off-by: Sascha Hauer Link: https://patch.msgid.link/20260113-sound-soc-codecs-tvl320adcx140-v4-3-8f7ecec525c8@pengutronix.de Signed-off-by: Mark Brown Signed-off-by: Sasha Levin --- sound/soc/codecs/tlv320adcx140.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sound/soc/codecs/tlv320adcx140.c b/sound/soc/codecs/tlv320adcx140.c index c7a591ee25900..6e4dbf93c6996 100644 --- a/sound/soc/codecs/tlv320adcx140.c +++ b/sound/soc/codecs/tlv320adcx140.c @@ -1096,6 +1096,9 @@ static int adcx140_i2c_probe(struct i2c_client *i2c, adcx140->gpio_reset = devm_gpiod_get_optional(adcx140->dev, "reset", GPIOD_OUT_LOW); if (IS_ERR(adcx140->gpio_reset)) + return dev_err_probe(&i2c->dev, PTR_ERR(adcx140->gpio_reset), + "Failed to get Reset GPIO\n"); + if (!adcx140->gpio_reset) dev_info(&i2c->dev, "Reset GPIO not defined\n"); adcx140->supply_areg = devm_regulator_get_optional(adcx140->dev, -- 2.51.0