Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp753309imm; Wed, 19 Sep 2018 06:26:42 -0700 (PDT) X-Google-Smtp-Source: ANB0Vdbqhli4RMaaPUKwLdsW8HbQ8hmGZWFYbziagOp3XQHeLZqBoH3QIkZA3FNKU3xF3QFpBhX8 X-Received: by 2002:a65:5c83:: with SMTP id a3-v6mr33039694pgt.164.1537363602102; Wed, 19 Sep 2018 06:26:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537363602; cv=none; d=google.com; s=arc-20160816; b=uWGRhuHAT6KfrJYgHkntd7Pm6WLm8QlOSJR6cTxAhff/W65KT+vQWX4pP1P5QJo0Hz J2G70RfnpJLPnzK+Ptej8WGhQKZu+z+Fj8jtu1mEHaNcrIT5j7y8wC6EtcvNFpqBc1t0 h2Mt3RqI/Lvu/5ed8vle6FGIv/x4mnnhGHrvyALb1AqjRalWpLits/d/IZzI5i2q76He muxzbDxnQXGJ62DiUAf9xTWaSkE7knKYVeODSGV5p4dmmJDmmPFKlHG1VqB/C0NDGXlw 1ehTuGX8u2apDv8t25/4WDpPGGe/y0WKwVaP547u8eWjlDIrUnegtbfsUfIPzJTTIfDv EG6w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:spamdiagnosticmetadata :spamdiagnosticoutput:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=BBE2I6XPHis7MzMwKJVM3WJhq2bf27Khfe0LFubF2Rc=; b=Q7C6UYrhh3ClO2b+ZpSKkzsQkQ3TW1sOUzdi9S7Cvf9fg2YIkwQN6XZK1UX5q8tqG9 bAm/gUuwDvQ1zzbSC4KAMHCqnbaKkOaFnyTvkHXdclsoIfOySEavjewXOpR2UrYgjM+c IkQGEtyyv32tAO7/QIhU/tGcKhMi4atYzz94vltyjXxXPkm23zOa7J1zt0tUsojJSoAr 491gNOlKI/e5AngJvvuk0e1YKYxaDK5JLkpqxmHkaKss0vfuNqnH0RuwYd5VH3KrI4JC eaVVOa672fyYt30w8wkvoaPhK9Lm4CHzlGbekH6V23lWhj0j8ojc67qHLoO6tZD1EuNp bahQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ysoft.com header.s=selector1 header.b=TV2pbNKV; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=ysoft.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c72-v6si22274201pfb.178.2018.09.19.06.26.26; Wed, 19 Sep 2018 06:26:42 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@ysoft.com header.s=selector1 header.b=TV2pbNKV; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=ysoft.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731869AbeISS4A (ORCPT + 99 others); Wed, 19 Sep 2018 14:56:00 -0400 Received: from mail-eopbgr30076.outbound.protection.outlook.com ([40.107.3.76]:38944 "EHLO EUR03-AM5-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728096AbeISSz7 (ORCPT ); Wed, 19 Sep 2018 14:55:59 -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=TV2pbNKVjCexzl5LsgSPZgCLJ79k/ce6sTIEKkmY5kNyeL8AfNXxBiaSyQZd9DNdXQyda7tDhx+a6t65/XwKbPYxcSjBvSA6KDn/NAhDviGwwm5dQ5oRgx9lsJB4+WeOaUBm4TJNArZ8Ch8HVSem1k52oEq6jgwxWGjFn+HO3sg= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Michal.Vokac@ysoft.com; Received: from iota-build.ysoft.local (89.24.100.190) by DB7PR04MB4666.eurprd04.prod.outlook.com (2603:10a6:5:37::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1143.18; Wed, 19 Sep 2018 13:17:59 +0000 From: =?UTF-8?q?Michal=20Vok=C3=A1=C4=8D?= To: Bartlomiej Zolnierkiewicz , Shawn Guo Cc: Fabio Estevam , Rob Herring , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-fbdev@vger.kernel.org, =?UTF-8?q?Michal=20Vok=C3=A1=C4=8D?= Subject: [PATCH v2 2/3] video: ssd1307fb: Do not hard code active-low reset sequence Date: Wed, 19 Sep 2018 15:17:28 +0200 Message-Id: <1537363049-48399-2-git-send-email-michal.vokac@ysoft.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1537363049-48399-1-git-send-email-michal.vokac@ysoft.com> References: <1537363049-48399-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: AM5PR0602CA0003.eurprd06.prod.outlook.com (2603:10a6:203:a3::13) To DB7PR04MB4666.eurprd04.prod.outlook.com (2603:10a6:5:37::12) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 18349e25-5449-4040-60fc-08d61e32527d X-Microsoft-Antispam: BCL:0;PCL:0;RULEID:(7020095)(4652040)(8989299)(4534165)(4627221)(201703031133081)(201702281549075)(8990200)(5600074)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aHSsaK0HHhTPrdzz1O3YprN5laHRP9fcyTkH32ufATT29kOQD0bJeImTp5sgHgOphj7DbuhDjJHUsghHEB6xxxqpDpB3EgUmlagqfXh/UkRDMda1VvMNDL/Tu7TYq30oG/eh43muhmwZiHrI34D5h9GbbdrkbyspH0hlV2iAvbJQ07aLpBkvRxoHT;4:yuls9sb7XCWotCzLrjNZiZzZedkW5duio2aCux+sriDyDuOcX73QS8kMkBmj42wS8PCZpzeTuaNV3UdCwzbyB3wb7S3P5lWiE2SnWyhRt6cfh1Ig3cd4qpqORAJvkA6Ym4t3oWbLFA6G896OruIC7Irn+9T1CYyn5n4Z9FvN0rgPewUWZAag0Dza1mUcx+lAIK0EmZ3vB/DIbDnUiv6yei4GyYfDt+kt4TLkoJKoI04QEDcF57Rh8OuFdSxBLlO7cC6tUYqYpdPnZNfHVBDSbw== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(6040522)(2401047)(5005006)(8121501046)(93006095)(93001095)(10201501046)(3231355)(944501410)(52105095)(3002001)(149027)(150027)(6041310)(20161123564045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123562045)(20161123558120)(20161123560045)(201708071742011)(7699050);SRVR:DB7PR04MB4666;BCL:0;PCL:0;RULEID:;SRVR:DB7PR04MB4666; X-Forefront-PRVS: 0800C0C167 X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10009020)(346002)(376002)(396003)(136003)(366004)(39850400004)(199004)(189003)(3846002)(86362001)(81166006)(6116002)(47776003)(106356001)(7736002)(5660300001)(97736004)(316002)(486006)(26005)(186003)(105586002)(476003)(2616005)(446003)(956004)(107886003)(4326008)(110136005)(6666003)(23676004)(16526019)(25786009)(72206003)(478600001)(54906003)(11346002)(2906002)(6506007)(386003)(76176011)(52116002)(2870700001)(36756003)(53936002)(6512007)(8936002)(6486002)(81156014)(50226002)(305945005)(50466002)(66066001)(68736007)(8676002);DIR:OUT;SFP:1101;SCL:1;SRVR:DB7PR04MB4666;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?B?MTtEQjdQUjA0TUI0NjY2OzIzOjF1ZjhjVStXVVlnRzhnU0NGRDRvUlRlTnB0?= =?utf-8?B?T3dWZmM1cU11MFcyK2hudW05U0lLWUlRQWJMNUZaLzRuYWF5MnV2TzV1L0hx?= =?utf-8?B?WTFFWHVMaU0vY04xa3B3TzQwcm9BcTNISmw2bGxhTmtkUElMTGpQYWVKNXFJ?= =?utf-8?B?QTVPYkhPZlJwdW1xb1h2VEdKZGtXYzlhbUZjNEFMSCt6QmpCcnpOOTBWV3pr?= =?utf-8?B?U0xlNlgxcU5pZVh1akhPam9zbkQ1L0dBMTVJaFlmenhJb0Z2bkhPVUttdE5H?= =?utf-8?B?MUp3K2RXK3NEUjU0UFVuK1VuSi94Q3c2bzZBWElRaEpLYVhTODZIOWw0RWVI?= =?utf-8?B?aGl0WXcyWGVDZWFCWnRXaXhSUUYxQzRjUlhTMktqOFRXc0JoWUErdFhKQmNs?= =?utf-8?B?cjBCZWJabTlHbU4yQ1F3SVE5bC9KUkRJU2ZnTGMrUXd0U3RnQmJDUDRkL1dT?= =?utf-8?B?YVpBeXduYm53UEZjVmlvWFdOS2xmRjB0MEVoUi9FaDQ3OFExQUVZendMaHh0?= =?utf-8?B?RFlDUWs5RWJ1S1VsM3h3QmZJVlZTZm5jUkxiWXNsV0wrdkxjMS9SSXBPano0?= =?utf-8?B?cDUwYXJyM21tTjRyQkovYjFqQ1FpWnF6dHhmdnhKamxkZnphZyt1L2pSRjZF?= =?utf-8?B?MjJwa0E2TitHQzExV0g5TnUvSU9SWmJMclpuZytmanUrVEhmdm5IaHpqeWhB?= =?utf-8?B?L0Y3VTRtS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guvVOW7qnxhPDLHsRViQpphwv2lz0UKAah6G5gRDnVa1SEnOdGZvXmGaCAJs=;7:ifrmTXx6gaDN53ZpV6b0J6JRReTm6hXf0xBpomXRN9cH8ePV1FlUDDOSl58mAZIx8tzpzMw3zQjIuTXft7fBVSSdTP3xpwg2k+VezQSCssKV4ik+KBQ3r1NkCl3yPJR+URkwGikuDrkExaMTJS7n1rP9ylVvxwJZCEMEc9Elc1LJ47eoAmEfse8o/SEvUx43yNlXPRHb4e0YSWMkKhyk0f7gMEpvxgujn0Ln61O/OshnRlsbk81WBhyOeZIYlubq SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: ysoft.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Sep 2018 13:17:59.6588 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 18349e25-5449-4040-60fc-08d61e32527d X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: b5839965-430f-4be2-b282-d7a3149f2b37 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB7PR04MB4666 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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áč --- v2 changes: Split the DT changes into separate patch. drivers/video/fbdev/ssd1307fb.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) { -- 2.1.4