From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753834AbdBVBKZ (ORCPT ); Tue, 21 Feb 2017 20:10:25 -0500 Received: from mailout3.samsung.com ([203.254.224.33]:52117 "EHLO mailout3.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753372AbdBVBJ5 (ORCPT ); Tue, 21 Feb 2017 20:09:57 -0500 X-AuditID: b6c32a37-f796f6d000001a35-55-58ace4ddb249 From: Hoegeun Kwon Subject: [PATCH v10 0/3] Add support for the S6E3HA2 panel on TM2 board To: thierry.reding@gmail.com, airlied@linux.ie, robh+dt@kernel.org, mark.rutland@arm.com, catalin.marinas@arm.com, will.deacon@arm.com, kgene@kernel.org, krzk@kernel.org Cc: dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-kernel@vger.kernel.org, javier@osg.samsung.com, inki.dae@samsung.com, a.hajda@samsung.com, cw00.choi@samsung.com, jh80.chung@samsung.com, Andi Shyti , Hoegeun Kwon Message-id: <50768133-aabc-6050-c9b2-8898bb8046a6@samsung.com> Date: Wed, 22 Feb 2017 10:09:48 +0900 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.7.0 MIME-version: 1.0 In-reply-to: Content-type: text/plain; charset=windows-1252; format=flowed Content-transfer-encoding: 7bit X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrLJsWRmVeSWpSXmKPExsWy7bCmru7dJ2siDPr7NCxurTvHatF77iST xfYjz1gt3i/rYbS4/uU5q8X8I0CJK1/fs1m8X97FZjHp/gQWizdv1zBZ3PjVxmrR//g1s8X5 8xvYLTY9vsZqcXnXHDaLGef3MVksvX6RyaJ17xF2i5+75rFYvPx4gsVBxGPNvDWMHjtn3WX3 2LSqk81j+7cHrB73u48zeWxeUu+xpR8o3rdlFaPH501yAZxRqTY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6tF/+PXzBbn z29gt9j0+BqrxeVdc9gsZpzfx2Sx9PpFJovWvUfYLX7umsdi8fLjCRYHEY8189YweuycdZfd Y9OqTjaP7d8esHrc7z7O5LF5Sb3Hln6geN+WVYwenzfJBXBGudlkpCampBYppOYl56dk5qXb KoWGuOlaKCnkJeam2ipF6PqGBCkplCXmlAJ5RgZowME5wD1YSd8uwS3j5dVFzAUzZSvuT+9i bWB8K9bFyMkhIWAi8X//fzYIW0ziwr31QDYXh5DALEaJ1Q/+MUI49xklLn66wwpSxSagK/G1 5zoTiC0s4C5xfdUUsCIRgbWMEhuXXAYbJSQQL9GzYQ8LiM0s8I5JoveUFIjNK2AncfdtIzOI zSKgKnH33xQwW1QgQmL+01VMEDWCEj8m3wPr5RRIkLi6axorxBxbiQXv10HNlJfYvOYt8wRG oDsRWmYhKZuFpGwBI/MqRonUguSC4qT0XMO81HK94sTc4tK8dL3k/NxNjOB08ExqB+PBXe6H GAU4GJV4eB+4r4kQYk0sK67MPcQowcGsJMI7aSdQiDclsbIqtSg/vqg0J7X4EKMp0CMTmaVE k/OBqSqvJN7QxNzE3NjAwtzS0sRISZy3cfazcCGB9MSS1OzU1ILUIpg+Jg5OqQbGvseZLK+u 5fCZxyave35jwabLR/i/Grhf8xMJennm3OelhyPSBY2PPxZ4Y3yWU/v7va7HSzKahSo2zb3T +u3Iu64lFVufuj6rf5B2Za4xS+WyfYdvKfgpfAk6xRk95bEom/1D+bXpmfdO/5zCIjiDXdpL t/Oy63+ReXNTDzPUKOxvypTh2su7VomlOCPRUIu5qDgRALeM3jYdAwAA X-MTR: 20000000000000000@CPGS X-CMS-MailID: 20170222010949epcas1p17fce4c5dec99aa4c002f2c414b4c80b0 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