From patchwork Mon Jan 24 13:52:46 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marek Szyprowski X-Patchwork-Id: 12722179 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 047F3C433EF for ; Mon, 24 Jan 2022 13:53:03 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234942AbiAXNxC (ORCPT ); Mon, 24 Jan 2022 08:53:02 -0500 Received: from mailout1.w1.samsung.com ([210.118.77.11]:38253 "EHLO mailout1.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234795AbiAXNxB (ORCPT ); Mon, 24 Jan 2022 08:53:01 -0500 Received: from eucas1p1.samsung.com (unknown [182.198.249.206]) by mailout1.w1.samsung.com (KnoxPortal) with ESMTP id 20220124135300euoutp01cbabaf80f05493213e63e13aa6e1aede~NOT6X7jRu2683026830euoutp01I for ; Mon, 24 Jan 2022 13:53:00 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.w1.samsung.com 20220124135300euoutp01cbabaf80f05493213e63e13aa6e1aede~NOT6X7jRu2683026830euoutp01I DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1643032380; bh=0YQoKMTIRPHxjEEi8hAXo/s/AqCaIXQ1AcDjdTdMG5w=; h=From:To:Cc:Subject:Date:References:From; b=V07aYeTSbQdAP5335O/BtMfTszDDVWBpakxKrbgbtaoJ1Qx3WEobKY8BKGdtwBQSh mkcmBbEqqmlRqDj0pE3errBuVcGID9japBeNu4n8MVurE4EmCidq3Yr1NGsTIDK2r8 H4FlsN5I0S9cFTA6I8Eo1CqmwIU1M7VqE4ib6h+0= Received: from eusmges3new.samsung.com (unknown [203.254.199.245]) by eucas1p1.samsung.com (KnoxPortal) with ESMTP id 20220124135259eucas1p10978704fdcbbecf21eabd3b7610174e0~NOT5_NJcd1133911339eucas1p1Z; Mon, 24 Jan 2022 13:52:59 +0000 (GMT) Received: from eucas1p2.samsung.com ( [182.198.249.207]) by eusmges3new.samsung.com (EUCPMTA) with SMTP id 6F.60.10260.B3FAEE16; Mon, 24 Jan 2022 13:52:59 +0000 (GMT) Received: from eusmtrp2.samsung.com (unknown [182.198.249.139]) by eucas1p1.samsung.com (KnoxPortal) with ESMTPA id 20220124135259eucas1p1ed3c76ef23d30afe620e06a419540c9e~NOT5k-JUx1356113561eucas1p1B; Mon, 24 Jan 2022 13:52:59 +0000 (GMT) Received: from eusmgms2.samsung.com (unknown [182.198.249.180]) by eusmtrp2.samsung.com (KnoxPortal) with ESMTP id 20220124135259eusmtrp27dcaf37956b42441147c7d94055af2f2~NOT5b7U4J2196721967eusmtrp2M; Mon, 24 Jan 2022 13:52:59 +0000 (GMT) X-AuditID: cbfec7f5-bf3ff70000002814-55-61eeaf3baa73 Received: from eusmtip1.samsung.com ( [203.254.199.221]) by eusmgms2.samsung.com (EUCPMTA) with SMTP id AA.FC.09404.A3FAEE16; Mon, 24 Jan 2022 13:52:58 +0000 (GMT) Received: from AMDC2765.digital.local (unknown [106.120.51.73]) by eusmtip1.samsung.com (KnoxPortal) with ESMTPA id 20220124135258eusmtip1a45bdecf6d8eddeb1ff66f723a610f20~NOT4-rEXF1821618216eusmtip1b; Mon, 24 Jan 2022 13:52:58 +0000 (GMT) From: Marek Szyprowski To: dri-devel@lists.freedesktop.org, linux-samsung-soc@vger.kernel.org Cc: Marek Szyprowski , Seung-Woo Kim , Inki Dae , =?utf-8?q?Ma=C3=ADra_Canal?= , Krzysztof Kozlowski Subject: [PATCH] drm/exynos: Search for TE-gpio in DSI panel's node Date: Mon, 24 Jan 2022 14:52:46 +0100 Message-Id: <20220124135246.6998-1-m.szyprowski@samsung.com> X-Mailer: git-send-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gDvVoiw cgMAAA== X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrKLMWRmVeSWpSXmKPExsVy+t/xu7pW698lGpyZa2Zx5et7NotJ9yew WGx8+4PJYsb5fUwWa4/cZbdoa7nObjFj8ks2B3aPWQ29bB73u48zefRtWcXo8eBjqcfnTXIB rFF6NkX5pSWpChn5xSW2StGGFkZ6hpYWekYmlnqGxuaxVkamSvp2NimpOZllqUX6dgl6GT+P LWcs+MtRcW2SXAPjRfYuRk4OCQETidn7f7J0MXJxCAksZZQ43jMLKiEjcXJaAyuELSzx51oX G0TRJ0aJRdM+M4Mk2AQMJbregiQ4OUQEPCSavx0Ha2YWeMcocW6ZbBcjB4ewgLPExIl+IGEW AVWJhi+rwVp5BWwkzl98ArVLXmL1hgPMExh5FjAyrGIUSS0tzk3PLTbSK07MLS7NS9dLzs/d xAgMv23Hfm7Zwbjy1Ue9Q4xMHIyHGCU4mJVEeKtS3iUK8aYkVlalFuXHF5XmpBYfYjQF2jeR WUo0OR8YAXkl8YZmBqaGJmaWBqaWZsZK4ryeBR2JQgLpiSWp2ampBalFMH1MHJxSDUxsNbuk zwf+El2+ikFiS11O68L598WzG8+ZxT/RspydcsXOzusyA0OSbXVvhtM+lRfvmRZ9fJXPZfc2 1n3Wd/mJ31bqWrn3LZTe8nyN4PXlJZ9Kprt88btVL6dxuHgFR3gEz7zt3tm/ivvsQjlWCSbU Lrpdu1C4zFueZeuO0keX0u7ftNA0X3j2esP3Scu1vukUnL6QV//E+Lro3dZ4PcHpqcwav4KS XS/t9cwOijii9XbZdV+FT7VtzAVKze1iL9Sjs8LO7yg8vXR7hiwnx+7/x0s0N0uvqT72i2fj mU+nGUw/u8VvfOr5dKfyzuV/09crhxx9+eHa2+iZKiud7lksXqnVb8C8euovoUf23xcrsRRn JBpqMRcVJwIAwde8nMgCAAA= X-CMS-MailID: 20220124135259eucas1p1ed3c76ef23d30afe620e06a419540c9e X-Msg-Generator: CA X-RootMTR: 20220124135259eucas1p1ed3c76ef23d30afe620e06a419540c9e X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20220124135259eucas1p1ed3c76ef23d30afe620e06a419540c9e References: Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org TE-gpio, if defined, is placed in the panel's node, not the parent DSI node. Change the devm_gpiod_get_optional() to gpiod_get_optional() and pass proper device node to it. The code already has a proper cleanup path, so it looks that the devm_* variant has been applied assidentally during the conversion to gpiod API. Fixes: ee6c8b5afa62 ("drm/exynos: Replace legacy gpio interface for gpiod interface") Signed-off-by: Marek Szyprowski --- drivers/gpu/drm/exynos/exynos_drm_dsi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/exynos/exynos_drm_dsi.c b/drivers/gpu/drm/exynos/exynos_drm_dsi.c index 14ebbb124852..d13f5e3a030d 100644 --- a/drivers/gpu/drm/exynos/exynos_drm_dsi.c +++ b/drivers/gpu/drm/exynos/exynos_drm_dsi.c @@ -1334,7 +1334,7 @@ static int exynos_dsi_register_te_irq(struct exynos_dsi *dsi, int ret; int te_gpio_irq; - dsi->te_gpio = devm_gpiod_get_optional(dsi->dev, "te", GPIOD_IN); + dsi->te_gpio = gpiod_get_optional(panel, "te", GPIOD_IN); if (!dsi->te_gpio) { return 0; } else if (IS_ERR(dsi->te_gpio)) {