From patchwork Sat Dec 2 07:54:44 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tony Lindgren X-Patchwork-Id: 749563 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=atomide.com header.i=@atomide.com header.b="RZRHctGP" Received: from mail5.25mail.st (mail5.25mail.st [74.50.62.9]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6BEABF3 for ; Sat, 2 Dec 2023 00:00:49 -0800 (PST) Received: from localhost (91-158-86-216.elisa-laajakaista.fi [91.158.86.216]) by mail5.25mail.st (Postfix) with ESMTPSA id 694A660406; Sat, 2 Dec 2023 07:59:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=atomide.com; s=25mailst; t=1701504048; bh=gfNY2ft9C7j+wyb5biC9lBAtvg1/clPo7kd6qvdc/T0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=RZRHctGPNMRiHvQ75yXgnfok/PcHBjEknCpa+5eAOmv/PjFP7Z6ADxo/QLQn/Ir5I V7YAJ62dNOjGOfHmgqGXEqog8/uJAQvd4nPKbYfHv8XuJKicZNvX0bcwQt+CrS7ogg gkjNgVqI2KPjt6XuXQxSEHTK6PqM4VNWgtKebjA14hAYz0GTQjkT+O1Hrxdewe9l7t U2jcY7245M0j7aEwShrFXEa1AHugy25U/kUt+/5MM6tLU2agdWqLhR6nmIaDWM3glW W4Ok19V5ikpon3qo2Ym1Liw5TPZHPR5wjEuoZTrS3VQUUTszIukFtVtmzXb8rgGHHk DPu0UW1N2eH5w== From: Tony Lindgren To: Andrzej Hajda , Neil Armstrong , Robert Foss , Laurent Pinchart , Jonas Karlman , Jernej Skrabec , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Daniel Vetter , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Simha BN , Sam Ravnborg Cc: Carl Philipp Klemm , Ivaylo Dimitrov , Merlijn Wajer , Pavel Machek , Sebastian Reichel , Michael Walle , dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org Subject: [PATCH v2 05/10] drm/bridge: tc358775: make standby GPIO optional Date: Sat, 2 Dec 2023 09:54:44 +0200 Message-ID: <20231202075514.44474-6-tony@atomide.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20231202075514.44474-1-tony@atomide.com> References: <20231202075514.44474-1-tony@atomide.com> Precedence: bulk X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 From: Michael Walle The stby pin is optional. It is only needed for power-up and down sequencing. It is not needed, if the power rails cannot by dynamically enabled. Because the GPIO is not optional, remove the error message. Signed-off-by: Michael Walle Signed-off-by: Tony Lindgren Reviewed-by: Dmitry Baryshkov --- drivers/gpu/drm/bridge/tc358775.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/drivers/gpu/drm/bridge/tc358775.c b/drivers/gpu/drm/bridge/tc358775.c --- a/drivers/gpu/drm/bridge/tc358775.c +++ b/drivers/gpu/drm/bridge/tc358775.c @@ -669,12 +669,9 @@ static int tc_probe(struct i2c_client *client) return ret; } - tc->stby_gpio = devm_gpiod_get(dev, "stby", GPIOD_OUT_HIGH); - if (IS_ERR(tc->stby_gpio)) { - ret = PTR_ERR(tc->stby_gpio); - dev_err(dev, "cannot get stby-gpio %d\n", ret); - return ret; - } + tc->stby_gpio = devm_gpiod_get_optional(dev, "stby", GPIOD_OUT_HIGH); + if (IS_ERR(tc->stby_gpio)) + return PTR_ERR(tc->stby_gpio); tc->reset_gpio = devm_gpiod_get(dev, "reset", GPIOD_OUT_HIGH); if (IS_ERR(tc->reset_gpio)) {