From patchwork Wed Oct 6 07:47:13 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexander Stein X-Patchwork-Id: 12539647 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2083FC433EF for ; Wed, 6 Oct 2021 15:44:26 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id C950B61056 for ; Wed, 6 Oct 2021 15:44:25 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org C950B61056 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=ew.tq-group.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.freedesktop.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 8EE906ED80; Wed, 6 Oct 2021 15:43:58 +0000 (UTC) Received: from mx1.tq-group.com (mx1.tq-group.com [93.104.207.81]) by gabe.freedesktop.org (Postfix) with ESMTPS id 21EBD6E509 for ; Wed, 6 Oct 2021 07:54:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tq-group.com; i=@tq-group.com; q=dns/txt; s=key1; t=1633506876; x=1665042876; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=EZE+qWpRsn+5r1JQt0pqgoeVfHJE9GHVycUHYlEL3rc=; b=MS4ZQffNukqASdxgzwiaISKIsobJFDltz/hsCF2u/ADfFuoDwPW/Vn1h l1VdeW9hv5Buv/ghYW6CDlfNNTm674BVcH3z557EIX/SXAUdClj/N1GTk zDviyDP+UkRcmrDvwSys6QxiC1cxrLZT6Qv7m0Rk1O9xlqbT/HkNZQZKO 67ignaEp7m3/X4zfp9TqwDDKH3JtFk0oXr3mcFnYLR6chtmjuI8INHcFP amXPiZN7efsO3/oitBywlWrBlSazoC37a/LmkGXPdksqJ2R3XO4q/ucLg E4SO14Br2YXfPIMXjd7394di/ullcRM9NVkh4r4jHzhsS11P0NqlZCAbC w==; X-IronPort-AV: E=Sophos;i="5.85,350,1624312800"; d="scan'208";a="19887682" Received: from unknown (HELO tq-pgp-pr1.tq-net.de) ([192.168.6.15]) by mx1-pgp.tq-group.com with ESMTP; 06 Oct 2021 09:47:22 +0200 Received: from mx1.tq-group.com ([192.168.6.7]) by tq-pgp-pr1.tq-net.de (PGP Universal service); Wed, 06 Oct 2021 09:47:22 +0200 X-PGP-Universal: processed; by tq-pgp-pr1.tq-net.de on Wed, 06 Oct 2021 09:47:22 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tq-group.com; i=@tq-group.com; q=dns/txt; s=key1; t=1633506442; x=1665042442; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=EZE+qWpRsn+5r1JQt0pqgoeVfHJE9GHVycUHYlEL3rc=; b=OSbBXLByawSb1n6/Y95tcrH0YN0yqkiwsdWataqNRFvXoXg5FtAN4Uxm x51b0OyYcBYd/XfDq1mvynfqsMR3NFpI++fgTAd1X+edQ1qWgaSrOe55L fMDC/oO3t5dl0AQYnj3bQUVQn/FbZhbEc0gDM8R4bd6yrXh/tNCHsNlV6 EYcMMi/4hYSQacJdO8OmQIE7aL1nzWttF9yecynjLzmehJAZ2IZRQcHFH oBGutCxaLl+qXExlZEkL0E8z9h8kxBkGPn9suc48LO0R5uFSHLXPDXNIU UV/003rQsFONoknI2QAuGQkUkLhUXFy88GLtixDLifNOxmV1EUgUnUHoc Q==; X-IronPort-AV: E=Sophos;i="5.85,350,1624312800"; d="scan'208";a="19887681" Received: from vtuxmail01.tq-net.de ([10.115.0.20]) by mx1.tq-group.com with ESMTP; 06 Oct 2021 09:47:22 +0200 Received: from steina-w.tq-net.de (unknown [10.123.49.12]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by vtuxmail01.tq-net.de (Postfix) with ESMTPSA id E5D3C280075; Wed, 6 Oct 2021 09:47:21 +0200 (CEST) From: Alexander Stein To: David Airlie , Daniel Vetter , Rob Herring , Andrzej Hajda , Neil Armstrong , Robert Foss , Laurent Pinchart , Jonas Karlman , Jernej Skrabec Cc: Alexander Stein , dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org Subject: [PATCH 3/3] drm/bridge: ti-sn65dsi8: Make enable GPIO optional Date: Wed, 6 Oct 2021 09:47:13 +0200 Message-Id: <20211006074713.1094396-3-alexander.stein@ew.tq-group.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20211006074713.1094396-1-alexander.stein@ew.tq-group.com> References: <20211006074713.1094396-1-alexander.stein@ew.tq-group.com> MIME-Version: 1.0 X-Mailman-Approved-At: Wed, 06 Oct 2021 15:43:56 +0000 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" The enable signal may not be controllable by the kernel. Make it optional. This is a similar to commit bbda1704fc15 ("drm/bridge: ti-sn65dsi86: Make enable GPIO optional") Signed-off-by: Alexander Stein Reviewed-by: Sam Ravnborg --- drivers/gpu/drm/bridge/ti-sn65dsi83.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/bridge/ti-sn65dsi83.c b/drivers/gpu/drm/bridge/ti-sn65dsi83.c index 5fab0fabcd15..101da29ba698 100644 --- a/drivers/gpu/drm/bridge/ti-sn65dsi83.c +++ b/drivers/gpu/drm/bridge/ti-sn65dsi83.c @@ -679,7 +679,7 @@ static int sn65dsi83_probe(struct i2c_client *client, model = id->driver_data; } - ctx->enable_gpio = devm_gpiod_get(ctx->dev, "enable", GPIOD_OUT_LOW); + ctx->enable_gpio = devm_gpiod_get_optional(ctx->dev, "enable", GPIOD_OUT_LOW); if (IS_ERR(ctx->enable_gpio)) return PTR_ERR(ctx->enable_gpio);