From patchwork Mon Mar 13 15:30:22 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrzej Hajda X-Patchwork-Id: 9621321 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 3BC8560244 for ; Mon, 13 Mar 2017 15:30:39 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2E1FA284DC for ; Mon, 13 Mar 2017 15:30:39 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 22C7A284E8; Mon, 13 Mar 2017 15:30:39 +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 C718B284DC for ; Mon, 13 Mar 2017 15:30:38 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751422AbdCMPaf (ORCPT ); Mon, 13 Mar 2017 11:30:35 -0400 Received: from mailout4.w1.samsung.com ([210.118.77.14]:42414 "EHLO mailout4.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751089AbdCMPae (ORCPT ); Mon, 13 Mar 2017 11:30:34 -0400 Received: from eucas1p1.samsung.com (unknown [182.198.249.206]) by mailout4.w1.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTP id <0OMR00GM8F2UDQ80@mailout4.w1.samsung.com> for linux-samsung-soc@vger.kernel.org; Mon, 13 Mar 2017 15:30:30 +0000 (GMT) Received: from eusmges5.samsung.com (unknown [203.254.199.245]) by eucas1p1.samsung.com (KnoxPortal) with ESMTP id 20170313153030eucas1p1deec3f0e9e5596774da9e1a74224a368~rerdwaY5C0071500715eucas1p11; Mon, 13 Mar 2017 15:30:30 +0000 (GMT) Received: from eucas1p2.samsung.com ( [182.198.249.207]) by eusmges5.samsung.com (EUCPMTA) with SMTP id 07.9F.17477.51BB6C85; Mon, 13 Mar 2017 15:30:29 +0000 (GMT) Received: from eusmgms2.samsung.com (unknown [182.198.249.180]) by eucas1p1.samsung.com (KnoxPortal) with ESMTP id 20170313153029eucas1p114f034a5dea7374f6d14d4d1636d0b68~rerdGdSXB1078910789eucas1p1A; Mon, 13 Mar 2017 15:30:29 +0000 (GMT) X-AuditID: cbfec7f5-f79d06d000004445-2f-58c6bb15cf3b Received: from eusync2.samsung.com ( [203.254.199.212]) by eusmgms2.samsung.com (EUCPMTA) with SMTP id 80.13.10233.12BB6C85; Mon, 13 Mar 2017 15:30:41 +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 <0OMR007LFF2SJE50@eusync2.samsung.com>; Mon, 13 Mar 2017 15:30:29 +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] drm/exynos/dsi: make te-gpios optional Date: Mon, 13 Mar 2017 16:30:22 +0100 Message-id: <1489419022-20501-1-git-send-email-a.hajda@samsung.com> X-Mailer: git-send-email 2.7.4 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrHIsWRmVeSWpSXmKPExsWy7djP87qiu49FGDRvM7S4te4cq8XGGetZ La58fc9mMen+BBaLGef3MVmsPXKX3YHN4373cSaPvi2rGD0+b5ILYI7isklJzcksSy3St0vg ymjcsIKlYCl7xcd16xgbGKexdTFyckgIm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iSWlqcm55bbKRXnJhbXJqXrpecn7uJERiA24793LKDsetd 8CFGAQ5GJR7ehjnHIoRYE8uKK3MPMUpwMCuJ8LZsBwrxpiRWVqUW5ccXleakFh9iNAVaPpFZ SjQ5HxgdeSXxhiaG5paGRsYWFuZGRkrivFM/XAkXEkhPLEnNTk0tSC2C6WPi4JRqYFSdV3L4 9fxpO7JiA6Y+TDx+wvVc8X+faQ+LHpRzqx5fqNrdU1P8ZGpu1pJwe4ElJh6Fd/z3uDKzf9i2 6sarrow5qjbiB/LfOf86WDR7e/r0tYZXGY4kqaea/xM31ghS2rp5UVbF5TWtLvHnPnuJuOuo Tax5M53buXpirEGLyMTaZ8qzbnozPVJiKc5INNRiLipOBAB3gNdTVgIAAA== X-MTR: 20000000000000000@CPGS X-CMS-MailID: 20170313153029eucas1p114f034a5dea7374f6d14d4d1636d0b68 X-Msg-Generator: CA X-Sender-IP: 182.198.249.180 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: 20170313153029eucas1p114f034a5dea7374f6d14d4d1636d0b68 X-RootMTR: 20170313153029eucas1p114f034a5dea7374f6d14d4d1636d0b68 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 In case of HW-TRIGGER te-gpios interrupt is not necessary. With this patch we can get rid of 60 interrupt callbacks per second. Signed-off-by: Andrzej Hajda --- drivers/gpu/drm/exynos/exynos_drm_dsi.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/exynos/exynos_drm_dsi.c b/drivers/gpu/drm/exynos/exynos_drm_dsi.c index 812e2ec..f95fac5 100644 --- a/drivers/gpu/drm/exynos/exynos_drm_dsi.c +++ b/drivers/gpu/drm/exynos/exynos_drm_dsi.c @@ -1349,9 +1349,8 @@ static int exynos_dsi_register_te_irq(struct exynos_dsi *dsi) dsi->te_gpio = of_get_named_gpio(dsi->panel_node, "te-gpios", 0); if (!gpio_is_valid(dsi->te_gpio)) { - dev_err(dsi->dev, "no te-gpios specified\n"); - ret = dsi->te_gpio; - goto out; + dev_info(dsi->dev, "no te-gpios specified\n"); + return 0; } ret = gpio_request(dsi->te_gpio, "te_gpio");