Message ID | 1538040281-21319-2-git-send-email-michal.vokac@ysoft.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-fbdev-owner@kernel.org> Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id CEB5514BD for <patchwork-linux-fbdev@patchwork.kernel.org>; Thu, 27 Sep 2018 09:27:43 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id BC5C12AFF0 for <patchwork-linux-fbdev@patchwork.kernel.org>; Thu, 27 Sep 2018 09:27:43 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B00592AFFB; Thu, 27 Sep 2018 09:27:43 +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=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,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 45ADB2AFF0 for <patchwork-linux-fbdev@patchwork.kernel.org>; Thu, 27 Sep 2018 09:27:43 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728227AbeI0PpC (ORCPT <rfc822;patchwork-linux-fbdev@patchwork.kernel.org>); Thu, 27 Sep 2018 11:45:02 -0400 Received: from mail-ve1eur01on0050.outbound.protection.outlook.com ([104.47.1.50]:48730 "EHLO EUR01-VE1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727617AbeI0PpB (ORCPT <rfc822;linux-fbdev@vger.kernel.org>); Thu, 27 Sep 2018 11:45:01 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ysoft.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=BBE2I6XPHis7MzMwKJVM3WJhq2bf27Khfe0LFubF2Rc=; b=VCQABh+lPIciosIVcwxSy2zqr3/ChXi9R1H7v7J8jQHGyDItqAtOqARJ/ZIwmTE5faRxgJM6wX9PgeRilZfay/BBTAwXiDd36lOuy4FPyUff/6qbn1h9LGf/vdnQwRbFMgoZwxN2LxY0UJa1Rpw3O2VzTVtxU6ivF+Rsv75apog= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Michal.Vokac@ysoft.com; Received: from iota-build.ysoft.local (89.24.100.190) by AM0PR04MB4660.eurprd04.prod.outlook.com (2603:10a6:208:75::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1143.18; Thu, 27 Sep 2018 09:27:31 +0000 From: =?utf-8?b?TWljaGFsIFZva8OhxI0=?= <michal.vokac@ysoft.com> To: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>, Shawn Guo <shawnguo@kernel.org> Cc: Fabio Estevam <fabio.estevam@nxp.com>, Rob Herring <robh+dt@kernel.org>, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-fbdev@vger.kernel.org, =?utf-8?b?TWljaGFsIFZva8OhxI0=?= <michal.vokac@ysoft.com> Subject: [RESEND PATCH v2 2/3] video: ssd1307fb: Do not hard code active-low reset sequence Date: Thu, 27 Sep 2018 11:24:40 +0200 Message-Id: <1538040281-21319-2-git-send-email-michal.vokac@ysoft.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1538040281-21319-1-git-send-email-michal.vokac@ysoft.com> References: <1538040281-21319-1-git-send-email-michal.vokac@ysoft.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Originating-IP: [89.24.100.190] X-ClientProxiedBy: HE1PR05CA0360.eurprd05.prod.outlook.com (2603:10a6:7:94::19) To AM0PR04MB4660.eurprd04.prod.outlook.com (2603:10a6:208:75::14) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 4f79f50a-21a7-4261-3c02-08d6245b7411 X-Microsoft-Antispam: BCL:0;PCL:0;RULEID:(7020095)(4652040)(8989299)(4534165)(4627221)(201703031133081)(201702281549075)(8990200)(5600074)(711020)(2017052603328)(7153060)(7193020);SRVR:AM0PR04MB4660; X-Microsoft-Exchange-Diagnostics: 1;AM0PR04MB4660;3:HXnIlSDFGCXVxYFx9h+lKf+DBFUrg3AXN7I1dC/ySr1KZsBpMV8jHdAzno31KpiCgoNbwTLJ3yVopxFlS2hYIJy6kpEPxRJTNtobXt6yg8G/MuMJdDNcFVkUmBz7dA63tna3JIS1nYrds/Wi+vxqXHGTTdOJEJCXEqVEx0LOglgoZTKEGS74Qc5MtKTqoT+e40TvELmlEOnQYdCmtd7nufiaBz3llCHwGDr8FgOAxTy+RJZIi5hD94z2Q8YXo7I3;25:+mHc2IbBQh3AeIf/44eyAub3tLtUheqVwhSlqkG5rmFSR6HBK/gjLqQH4ocVE9kIYMhIs27k5VGRno4a1Ksat+m+LaBrDXzDgkQaR4ZewJ9dmcPpfvzlrYoHWzTIPpbZ5XOC/blNuJ1dz2/gdGfgN6LwlM7zTyyoqvuxIMpAqYpYMe3Av5nXuW2IK9VB4vUp7hOVPx4/tY4qY/1f+jfOKOX9byyDDx1fniaISjqoZA9O5ssdd3ijl24XrREbcMMIi3p2Ayv4yc+4AQPtZexoIni68aEO6UVOQcRT3xLiYPclPdVnHpfPHi7fvgnOf9NNvh9vJng5lXgR+ogLechsZw==;31:j68QhDSdJvx1x7uQ9/O/7P2PK188AHojGfFwS69wrwdxWLq4dqEYXfdZJyCMySSTAxxPp1pPS+TcxLc2BXost8HtbHXHTmt0WsbsR3QXCg6c6yf+hSokJlSNG3qt8bubLKYv4NHoBlYuERSDxuuY6v/wHtUvLRFtHOPVnx529PMelBqzoMOuYNPVsn+vN+mmcqGpEdPyCq2NuBQU8AeAqcVoSBCQagYaVIQ7DtTUopg= X-MS-TrafficTypeDiagnostic: AM0PR04MB4660: X-Microsoft-Exchange-Diagnostics: 1;AM0PR04MB4660;20:BDbZp0pFJffRyjyOFr0Uj6y46XdBdTvEbAS3i04EvRAHeDOoFMXgBqI+Fl6RsgTT/kAcoZsf9brAQS29fZCqk0XJxaJM5NP+JvuG09bcZmpoovd4pb3Sn1fuPOpdJP1Oe93MEevpYV9njJRczMB+7lOLXvydEaxO43mN9eleE6eadSah4zUqNNmyNDa9SzlFwq9E0by4zky86EgMEV29Oz2W13c8FacrIxj/aUuqsIrJMAQRPGJmnrGxWgSxDVpM;4:ao8HQwUwMRfM3AHxrFi6l6QJNH/V+I6zXA56CNdKoprD4pNm5HVU8X3guCviA71/JSt6v6CBKN01C0b031IsOvmqwwKyoE2Wui++aPDtEm+uaO4NWAoLRTrZYhsrb8+7Fqg2zOWkPm3LPvdklSfBxciNezc754px9zs3Dv0n6S2z67ve4bj3Ir+MIxK3GjusXR1cyzXaaFkpl9MbVvYO/8Aqc8Ad4GkqsYySsafZjVe1oXEKKivaxADQWUjc3wKzx+fGV6ICtCkNH8N81iFQ9A== X-Microsoft-Antispam-PRVS: <AM0PR04MB4660B33A16258AD8382358299E140@AM0PR04MB4660.eurprd04.prod.outlook.com> X-Exchange-Antispam-Report-Test: UriScan:; X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(6040522)(2401047)(8121501046)(5005006)(10201501046)(3002001)(93006095)(93001095)(3231355)(944501410)(52105095)(149066)(150057)(6041310)(20161123558120)(20161123562045)(20161123564045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(201708071742011)(7699051);SRVR:AM0PR04MB4660;BCL:0;PCL:0;RULEID:;SRVR:AM0PR04MB4660; X-Forefront-PRVS: 0808323E97 X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10009020)(376002)(346002)(136003)(366004)(39850400004)(396003)(199004)(189003)(446003)(6116002)(3846002)(26005)(476003)(97736004)(2870700001)(81166006)(81156014)(8676002)(486006)(86362001)(316002)(8936002)(72206003)(50226002)(2616005)(186003)(11346002)(956004)(36756003)(16526019)(53936002)(2906002)(52116002)(6512007)(23676004)(47776003)(305945005)(76176011)(217873002)(50466002)(478600001)(6506007)(386003)(6666003)(107886003)(5660300001)(106356001)(66066001)(54906003)(110136005)(4326008)(25786009)(7736002)(34290500001)(105586002)(68736007)(6486002);DIR:OUT;SFP:1101;SCL:1;SRVR:AM0PR04MB4660;H:iota-build.ysoft.local;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;A:1;MX:1; Received-SPF: None (protection.outlook.com: ysoft.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?utf-8?q?1=3BAM0PR04MB4660=3B23=3Ab3w4gG6?= =?utf-8?q?JLg3rqv9vMjAIVnmZ8v0yt5mGa+yu6ZIvYu74kRofzemb4SZ/rVGXfbXNsJpTACUz?= =?utf-8?q?8dhcG9zfZ011QmPyKp8GeU0qJcbwRJP2TWdGTfFSeBBO9vJbd+yHlONp8+qo0pirX?= =?utf-8?q?632mDnE63ygUG2/SrdmdxJJhFJycywMHe5d5ierpBLf4a85XZGC5qqsgjVdjF0s2W?= =?utf-8?q?5vDUAfal4bOVZBHZM9zmYal4+FzEhFWPQNPeuEiV4HvWUYSrj7KOkg1sGPswqNA4O?= =?utf-8?q?oBrdeqzzPTnyjP7JBP7pwdHLqIpbyN28ExlpNmdWrZllHq0+ALO6bR0Y4izqhGT9s?= =?utf-8?q?8Bb1DmRueoNz63TvLh9fCXVV91j1pCgXqiaOpiEhxXZoxCDexv20kIh/hA+rMZGho?= =?utf-8?q?qtHeiYNew0dwjoe1XfVIH07Bz2kaldhFyNVMH1vze73GWEg+pxboFLwmfHjcLaLlw?= =?utf-8?q?kMPBTrI43nsa/mg8C0E9UD2gQl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ykiR+e8Bv5tkZsUP4ot6GPxaapyF12J2r8ByLiurhaF/h8rLwl4xeEc/XM1/jIJKBelGmoSzhkW1v+iOOQPl7NKoy4/SIE+Y8/pkMBgdMyUdMC5NFcfLpf1 SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: ysoft.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Sep 2018 09:27:31.9445 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 4f79f50a-21a7-4261-3c02-08d6245b7411 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: b5839965-430f-4be2-b282-d7a3149f2b37 X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR04MB4660 Sender: linux-fbdev-owner@vger.kernel.org Precedence: bulk List-ID: <linux-fbdev.vger.kernel.org> X-Mailing-List: linux-fbdev@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP |
Series |
[RESEND,v2,1/3] video: ssd1307fb: Use gpiod_set_value_cansleep() for reset
|
expand
|
On 09/27/2018 11:24 AM, Michal Vokáč wrote: > The SSD130x OLED display reset signal is active low. Now the reset > sequence is implemented in such a way that users are forced to > define reset-gpios as GPIO_ACTIVE_HIGH in DT to make the reset work. > > Do not hard code the active-low sequence into the driver but instead > allow the user to specify the gpio as GPIO_ACTIVE_LOW to reflect > the real world. > > Signed-off-by: Michal Vokáč <michal.vokac@ysoft.com> Patch queued for 4.20, thanks. Best regards, -- Bartlomiej Zolnierkiewicz Samsung R&D Institute Poland Samsung Electronics
diff --git a/drivers/video/fbdev/ssd1307fb.c b/drivers/video/fbdev/ssd1307fb.c index e7ae135..7b5bc42 100644 --- a/drivers/video/fbdev/ssd1307fb.c +++ b/drivers/video/fbdev/ssd1307fb.c @@ -728,10 +728,10 @@ static int ssd1307fb_probe(struct i2c_client *client, if (par->reset) { /* Reset the screen */ - gpiod_set_value_cansleep(par->reset, 0); - udelay(4); gpiod_set_value_cansleep(par->reset, 1); udelay(4); + gpiod_set_value_cansleep(par->reset, 0); + udelay(4); } if (par->vbat_reg) {
The SSD130x OLED display reset signal is active low. Now the reset sequence is implemented in such a way that users are forced to define reset-gpios as GPIO_ACTIVE_HIGH in DT to make the reset work. Do not hard code the active-low sequence into the driver but instead allow the user to specify the gpio as GPIO_ACTIVE_LOW to reflect the real world. Signed-off-by: Michal Vokáč <michal.vokac@ysoft.com> --- v2 changes: Split the DT changes into separate patch. drivers/video/fbdev/ssd1307fb.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)