From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751329AbdBTHKH (ORCPT ); Mon, 20 Feb 2017 02:10:07 -0500 Received: from mailout4.samsung.com ([203.254.224.34]:53466 "EHLO mailout4.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751322AbdBTHKD (ORCPT ); Mon, 20 Feb 2017 02:10:03 -0500 X-AuditID: b6c32a35-f79d66d000001a37-75-58aa9649e9d7 From: Hoegeun Kwon To: thierry.reding@gmail.com, airlied@linux.ie, kgene@kernel.org, krzk@kernel.org, robh+dt@kernel.org Cc: dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-samsung-soc@vger.kernel.org, inki.dae@samsung.com, a.hajda@samsung.com, cw00.choi@samsung.com, jh80.chung@samsung.com, andi.shyti@samsung.com, Hoegeun Kwon Subject: [PATCH v10 0/3] Add support for the S6E3HA2 panel on TM2 board Date: Mon, 20 Feb 2017 16:09:39 +0900 Message-id: <1487574582-15746-1-git-send-email-hoegeun.kwon@samsung.com> X-Mailer: git-send-email 1.9.1 X-Brightmail-Tracker: H4sIAAAAAAAAAzWSWUwTURSGvTOdaSFWx7J4BUUyiVGJrZ1SYDTgEo3USCJqjEQtdYSxbG1J p6D4QKrGrSxWqWKQuKFR64ZlFSMqJRBf2DSBoEAVXImiQiVoRNtOffv+c/57lpsjQiUuLEyU qTexRj2TQ+KBgnrnUql04zl7inywD6f773VgdEnHc4RuaH2P0b0THzD6Uqsn9tI9htNjNyw4 fWbIKqD7fh3D6FPDoyjd2VktpF80VeL0+c5mhD76uFVITzVdFKyZrXpYMSBUOewncVXDTxem GipqR1SltXagGndEJOM72fgMlklnjZGsPs2QnqnXJpCbtmnWaWJi5ZSUWkHHkZF6RscmkOuT kqUbMnM8M5OR+UxOnieUzHAcuXxVvNGQZ2IjMwycKYHcRVEKGSWPkykUCpkyWr1SEeOx7GEz 3pn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WWAxk8TJCzkgtrCAu8T1VVPA4iwCqhJ3D88B 6+UV8JC48OUdK8Q2OYmTxyazTmDkXsDIsIpRIrUguaA4KT3XMC+1XK84Mbe4NC9dLzk/dxMj OPyfSe1gPLjL/RCjAAejEg9vw+yVEUKsiWXFlbmHGCU4mJVEeDdPWRUhxJuSWFmVWpQfX1Sa k1p8iNEU6ICJzFKiyfnA2MwriTc0MTcxNzawMLe0NDFSEudtnP0sXEggPbEkNTs1tSC1CKaP iYNTqoEx/dneK6YzNqaui+9/lxd82+WXrnv9XtH21Gt790SnLLzBJr7d2HNnzYcTWq9q8kM+ d75+UVj53D99yYyPPAHSa9b2LzdNXiGeE3Pu3WPVxJqK+Nf/Beo37pwSIvDmzdtqRcWu7KD/ 39wyV7KknbV6fnv6vJ5Ma8k5Ys9v/NI/ZnzxddCaeQwflFiKMxINtZiLihMBqpftTZUCAAA= X-MTR: 20000000000000000@CPGS X-CMS-MailID: 20170220071000epcas1p38e002e5064bdf4c3b1b4886207dcaaf4 X-Msg-Generator: CA X-Sender-IP: 203.254.230.26 X-Local-Sender: =?UTF-8?B?6raM7ZqM6re8G1RpemVuIFBsYXRmb3JtIExhYihTL1fshLw=?= =?UTF-8?B?7YSwKRvsgrzshLHsoITsnpAbUzMo7IKs7JuQKS/sgqzsm5A=?= X-Global-Sender: =?UTF-8?B?SG9lZ2V1biBLd29uG1RpemVuIFBsYXRmb3JtIExhYi4bU2Ft?= =?UTF-8?B?c3VuZyBFbGVjdHJvbmljcxtTMy9Bc3Npc3RhbnQgRW5naW5lZXI=?= X-Sender-Code: =?UTF-8?B?QzEwG1NUQUYbQzEwVjgxMTE=?= CMS-TYPE: 101P DLP-Filter: Pass X-CFilter-Loop: Reflected X-HopCount: 7 X-CMS-RootMailID: 20170220071000epcas1p38e002e5064bdf4c3b1b4886207dcaaf4 X-RootMTR: 20170220071000epcas1p38e002e5064bdf4c3b1b4886207dcaaf4 References: Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Dear Thierry, I understand that your opinion is: It is better to handle the error every time it is input to the register, rather than error handling at once in the struct using error. This not only makes the code easier to maintain, but also reduces unnecessary computation. So I modified the panel driver to code-by-code error handling. If this is not your opinion, could you tell me what your opinion? Best Regards, Hoegeun Changes for V10: - Fixed code-by-code error handling. Changes for V9: - Fixed the te-gpio to optional in bindings Changes for V8: - Applied below two patches: (drm/exynos) : drm/exynos: mic: Add mode_set callback function : drm/exynos: mic: Fix parse_dt function - The dt-binding patch and driver patch were divided. - Rebase these patches on samsung SoC tree[1] and tm2 touckey patch[2]. Change for V7: - Fixed the mode_set callback function of mic device driver. because the mic register is initialized when entering suspend mode, so should set the reg value whenever pre_enable is called. Changes for V6: - Fixed the parse_dt function of dsi device driver. - Removed OF graph of panel in DT and DT binding document. - Fixed the s6e3ha2 panel device driver. - Fixed from number size to ARRAY_SIZE(). - Fixed error handling in mipi_dsi_dcs_* functions. - Fixed the clock of display_mode. - Removed unnecessary casting and error log. Change for V5: - The V5 has only one fix in V4 below. - Removed the enable check of the mic driver in mode_set callback, because mode_set should be performed every time. Changes for V4: - Removed display-timings in devicetree, the display-timings has been fixed to be provided by the device driver. - Added the mode_set callback function into exynos_drm_mic, because the exynos_drm_mic driver can not parse a videomode struct by removing the display-timings from the devicetree. Changes for V3: - In the DT binding document, made it clearly that the panel is a child node of dsi. - Fix reset-gpio active from high to low. - Is the OF graph saying related to patch2? Althogh the panel is a child of dsi, I think OF graph necessary. because if a remote-endpoint is not specified, the dsi also panel is not probed. - The display-timings has been fixed to be provided by the device driver. however, I think display-timings is necessary in dts. because if dts does not have display-timings, dsi will not load. Changes for V2: - Fixed the samsung,s6e3ha2.txt DT document. - Added active high or low after the description of the GPIOs. - Removed the reg and added a description of the virtual channel number of a DSI peripheral. Depends on: [1] https://git.kernel.org/cgit/linux/kernel/git/krzk/linux.git/ (for-next branch) [2] https://patchwork.kernel.org/patch/9504131/ - ("arm64: dts: exynos: Add tm2 touchkey node") Hoegeun Kwon (2): dt-bindings: Add support for samsung s6e3ha2 panel binding drm/panel: Add support for S6E3HA2 panel driver on TM2 board Hyungwon Hwang (1): arm64: dts: exynos: Add support for S6E3HA2 panel device on TM2 board .../bindings/display/panel/samsung,s6e3ha2.txt | 28 + arch/arm64/boot/dts/exynos/exynos5433-tm2.dts | 12 + drivers/gpu/drm/panel/Kconfig | 6 + drivers/gpu/drm/panel/Makefile | 1 + drivers/gpu/drm/panel/panel-samsung-s6e3ha2.c | 739 +++++++++++++++++++++ 5 files changed, 786 insertions(+) create mode 100644 Documentation/devicetree/bindings/display/panel/samsung,s6e3ha2.txt create mode 100644 drivers/gpu/drm/panel/panel-samsung-s6e3ha2.c -- 1.9.1