From patchwork Sun Nov 6 11:09:03 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Icenowy Zheng X-Patchwork-Id: 9414225 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 534AA6022E for ; Mon, 7 Nov 2016 00:59:12 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 461EA28EC3 for ; Mon, 7 Nov 2016 00:59:12 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3AADD28EC7; Mon, 7 Nov 2016 00:59:12 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.1 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 3086128EC3 for ; Mon, 7 Nov 2016 00:59:10 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id C1E9B6E297; Mon, 7 Nov 2016 00:59:06 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org X-Greylist: delayed 537 seconds by postgrey-1.35 at gabe; Sun, 06 Nov 2016 11:18:26 UTC Received: from forward10h.cmail.yandex.net (forward10h.cmail.yandex.net [IPv6:2a02:6b8:0:f35::ec]) by gabe.freedesktop.org (Postfix) with ESMTPS id 20ADF6E1BA for ; Sun, 6 Nov 2016 11:18:26 +0000 (UTC) Received: from smtp3p.mail.yandex.net (smtp3p.mail.yandex.net [77.88.29.86]) by forward10h.cmail.yandex.net (Yandex) with ESMTP id E9CD5211AD; Sun, 6 Nov 2016 14:09:24 +0300 (MSK) Received: from smtp3p.mail.yandex.net (localhost.localdomain [127.0.0.1]) by smtp3p.mail.yandex.net (Yandex) with ESMTP id 14DE31320068; Sun, 6 Nov 2016 14:09:20 +0300 (MSK) Received: by smtp3p.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id xW7VhlAuuQ-9H5SW3Ii; Sun, 06 Nov 2016 14:09:19 +0300 (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client certificate not present) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aosc.xyz; s=mail; t=1478430560; bh=AbzhSznH23E/FSgQ5ixSk00O/Tm+QcpwjMPbovYvpOA=; h=From:To:Cc:Subject:Date:Message-Id; b=VCJ8x7gYHPe74b08VaBrKgfbFg1hNnsqxmqP4Goh+g1+FGnY+8hdXev4wdm8iprpE L4OifDY+KiNHOQIqsCS/WTgoejp1xlWh1wZdfwl6K9ZDiWw4wVAC0pHXR6MM4osB11 n00F+dzvAg1XZ8tcn2iu4iGBPauc7FBrzIhhuuNo= Authentication-Results: smtp3p.mail.yandex.net; dkim=pass header.i=@aosc.xyz X-Yandex-ForeignMX: US X-Yandex-Suid-Status: 1 0,1 0,1 0,1 0,1 0,1 1130000036118848 From: Icenowy Zheng To: Thierry Reding , David Airlie Subject: [PATCH] drm: panel: simple-panel: get the enable gpio as-is Date: Sun, 6 Nov 2016 19:09:03 +0800 Message-Id: <20161106110903.14594-1-icenowy@aosc.xyz> X-Mailer: git-send-email 2.10.1 X-Mailman-Approved-At: Mon, 07 Nov 2016 00:59:03 +0000 Cc: Chen-Yu Tsai , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, Icenowy Zheng X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP The enable gpio of simple-panel may be used by a simplefb or other driver on the panel's display before the KMS driver get load. Get the GPIO as-is, so the panel won't be disabled, and the simplefb can work. Signed-off-by: Icenowy Zheng --- drivers/gpu/drm/panel/panel-simple.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/panel/panel-simple.c b/drivers/gpu/drm/panel/panel-simple.c index 113db3c..ccee4c1 100644 --- a/drivers/gpu/drm/panel/panel-simple.c +++ b/drivers/gpu/drm/panel/panel-simple.c @@ -312,7 +312,7 @@ static int panel_simple_probe(struct device *dev, const struct panel_desc *desc) return PTR_ERR(panel->supply); panel->enable_gpio = devm_gpiod_get_optional(dev, "enable", - GPIOD_OUT_LOW); + GPIOD_ASIS); if (IS_ERR(panel->enable_gpio)) { err = PTR_ERR(panel->enable_gpio); dev_err(dev, "failed to request GPIO: %d\n", err);