From patchwork Wed Mar 15 11:20:42 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrzej Hajda X-Patchwork-Id: 9625385 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 0623460522 for ; Wed, 15 Mar 2017 11:21:06 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E1512285AA for ; Wed, 15 Mar 2017 11:21:05 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D55A52860A; Wed, 15 Mar 2017 11:21:05 +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=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D55882860A for ; Wed, 15 Mar 2017 11:21:04 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753590AbdCOLU5 (ORCPT ); Wed, 15 Mar 2017 07:20:57 -0400 Received: from mailout2.w1.samsung.com ([210.118.77.12]:54264 "EHLO mailout2.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753593AbdCOLUy (ORCPT ); Wed, 15 Mar 2017 07:20:54 -0400 Received: from eucas1p1.samsung.com (unknown [182.198.249.206]) by mailout2.w1.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTP id <0OMU00EB6SURG600@mailout2.w1.samsung.com> for linux-samsung-soc@vger.kernel.org; Wed, 15 Mar 2017 11:20:51 +0000 (GMT) Received: from eusmges3.samsung.com (unknown [203.254.199.242]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20170315112050eucas1p2e14de23ea15d57cdc701966b3cc05d35~sCkD6nOl62667026670eucas1p25; Wed, 15 Mar 2017 11:20:50 +0000 (GMT) Received: from eucas1p2.samsung.com ( [182.198.249.207]) by eusmges3.samsung.com (EUCPMTA) with SMTP id C4.BC.09557.29329C85; Wed, 15 Mar 2017 11:20:50 +0000 (GMT) Received: from eusmgms1.samsung.com (unknown [182.198.249.179]) by eucas1p1.samsung.com (KnoxPortal) with ESMTP id 20170315112050eucas1p10ac34c1093b97a338e098c539b84ded6~sCkDQT0vZ0367803678eucas1p1l; Wed, 15 Mar 2017 11:20:50 +0000 (GMT) X-AuditID: cbfec7f2-f790f6d000002555-6f-58c923925d7b Received: from eusync2.samsung.com ( [203.254.199.212]) by eusmgms1.samsung.com (EUCPMTA) with SMTP id C3.25.06687.8F329C85; Wed, 15 Mar 2017 11:22:32 +0000 (GMT) Received: from AMDC2768.DIGITAL.local ([106.120.43.17]) by eusync2.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTPA id <0OMU00696SUPM680@eusync2.samsung.com>; Wed, 15 Mar 2017 11:20:50 +0000 (GMT) From: Andrzej Hajda To: Inki Dae , dri-devel@lists.freedesktop.org, linux-samsung-soc@vger.kernel.org Cc: Andrzej Hajda , Bartlomiej Zolnierkiewicz , Marek Szyprowski Subject: [PATCH v2] drm/exynos/dsi: make te-gpios optional Date: Wed, 15 Mar 2017 12:20:42 +0100 Message-id: <1489576842-17679-1-git-send-email-a.hajda@samsung.com> X-Mailer: git-send-email 2.7.4 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrNIsWRmVeSWpSXmKPExsWy7djP87qTlE9GGPy8rGVxa905VouNM9az Wlz5+p7NYtL9CSwWM87vY7JYe+QuuwObx/3u40wefVtWMXp83iQXwBzFZZOSmpNZllqkb5fA lfHpyhSWgqscFScXnGdpYFzC3sXIySEhYCIx6eFPNghb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WpybnltsqFecmFtcmpeul5yfu4kRGHrbjv3c vIPx0sbgQ4wCHIxKPLwcX49HCLEmlhVX5h5ilOBgVhLh9ZA5GSHEm5JYWZValB9fVJqTWnyI 0RRo90RmKdHkfGBc5JXEG5oYmlsaGhlbWJgbGSmJ85Z8uBIuJJCeWJKanZpakFoE08fEwSnV wKh33WSuyqatKRKOprEZRgHKEbVvv1oJsm5tMi/in3HTfn9WleSxDycmWDGwPYiZGbOH+3t4 ocKK6QfdHhsuzEv7H776bNeMT6GmLybNWegZsX9BYOpFHpncbclh+k8/ba14tPx9zY+vGbbL VnH7e2XJXggMdm1c9KJ0suIvRf7FcvmKl9/ulFJiKc5INNRiLipOBADAyUZFUwIAAA== X-MTR: 20000000000000000@CPGS X-CMS-MailID: 20170315112050eucas1p10ac34c1093b97a338e098c539b84ded6 X-Msg-Generator: CA X-Sender-IP: 182.198.249.179 X-Local-Sender: =?UTF-8?B?QW5kcnplaiBIYWpkYRtTUlBPTC1LZXJuZWwgKFRQKRvsgrw=?= =?UTF-8?B?7ISx7KCE7J6QG1NlbmlvciBTb2Z0d2FyZSBFbmdpbmVlcg==?= X-Global-Sender: =?UTF-8?B?QW5kcnplaiBIYWpkYRtTUlBPTC1LZXJuZWwgKFRQKRtTYW1z?= =?UTF-8?B?dW5nIEVsZWN0cm9uaWNzG1NlbmlvciBTb2Z0d2FyZSBFbmdpbmVlcg==?= X-Sender-Code: =?UTF-8?B?QzEwG0VIURtDMTBDRDAyQ0QwMjczOTI=?= CMS-TYPE: 201P X-HopCount: 7 X-CMS-RootMailID: 20170315112050eucas1p10ac34c1093b97a338e098c539b84ded6 X-RootMTR: 20170315112050eucas1p10ac34c1093b97a338e098c539b84ded6 References: Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP DSI forwards te-gpios interrupts to display controller, but if display controller works in HW-TRIGGER mode this interrupt is not necessary. Making te-gpios property optional allows to avoid generating spare interrupts. With this patch we can get rid of 60 interrupt callbacks per second. Signed-off-by: Andrzej Hajda Reviewed-by: Hoegeun Kwon --- drivers/gpu/drm/exynos/exynos_drm_dsi.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/exynos/exynos_drm_dsi.c b/drivers/gpu/drm/exynos/exynos_drm_dsi.c index 812e2ec..822094d 100644 --- a/drivers/gpu/drm/exynos/exynos_drm_dsi.c +++ b/drivers/gpu/drm/exynos/exynos_drm_dsi.c @@ -1348,9 +1348,12 @@ static int exynos_dsi_register_te_irq(struct exynos_dsi *dsi) int te_gpio_irq; dsi->te_gpio = of_get_named_gpio(dsi->panel_node, "te-gpios", 0); + if (dsi->te_gpio == -ENOENT) + return 0; + if (!gpio_is_valid(dsi->te_gpio)) { - dev_err(dsi->dev, "no te-gpios specified\n"); ret = dsi->te_gpio; + dev_err(dsi->dev, "cannot get te-gpios, %d\n", ret); goto out; }