Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp752595imm; Wed, 19 Sep 2018 06:26:03 -0700 (PDT) X-Google-Smtp-Source: ANB0VdaWwXtOPmQ92NDmddktB9pGl2vq8K9IeV+eCCWsVBiCEhKG8CEx8mD3RD4MOZ2AhO9ehCHb X-Received: by 2002:a63:df4e:: with SMTP id h14-v6mr32384568pgj.300.1537363563311; Wed, 19 Sep 2018 06:26:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537363563; cv=none; d=google.com; s=arc-20160816; b=xocptS8uwDwctOCl1xnHWormLr9hlgrMOsZM9V7fTNqc2P7GD4q6yAVVUdHvlIMpHE wrrdXdcmn9f+KlCE8JN80QmPGi8W/AFzcl5XYCGb0cCyezKAmoSOlYhqksuMhUPzaIyZ mD+bbZO4qEDwsUrr5LwI1dyDHJ0xKcVAlYyghSB1RE7LDjPFshRuDgipAkxSfOWgcixp LRPIc4J7a8jqmWRXmfJKvEBtfaN3hI180W66Uqias3IV3u45A7zxvxujt1MGnKYuz4UK hptLTDnNvt+2qoX0MuITT9mitWgZojYW6mzMG8hpU3xxfP/g+ADGLI3s9VzYIJ7dJTb+ 1ImA== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=xzzP3s4zv9uo39viQvBHereT3Xa3zHL99HdEb0Z/qJ4=; b=PRL/ZkyG2txMSm9lk84JY+68SEHx2G3gFJ3FPwHcajaCU/rWFI8F044baeIT6fTs2X HeFQm2m+vdLAR0QPZcbDdUlRMgbJYIWfWVc/wXWs11GZQWbrWK2YazJB/3sNmVfwoJQ6 mVNMJjcma9V5svjwjhXa4BE3sphOoP50jAqxCiDH9XWOfl2xopIbM6wrgJ1rNAw+/FgY 4UEKyJTPEeEQv5vSBLu9LbRxJbT9Ng8UOfzzGHi+8gJ1+loeLXXIKz8hHf26oth2gGBD jYMaieyqwMdkcCGlW3n/N1ZtUSIHP0ejKLfcpLauOsOR4WcqcgYfOuKHBRL/yR4SphX9 YmHw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ysoft.com header.s=selector1 header.b=E01MnV6C; 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 35-v6si20422077pgz.453.2018.09.19.06.25.47; Wed, 19 Sep 2018 06:26:03 -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=E01MnV6C; 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 S1731841AbeISSz6 (ORCPT + 99 others); Wed, 19 Sep 2018 14:55:58 -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 S1727820AbeISSz5 (ORCPT ); Wed, 19 Sep 2018 14:55:57 -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=xzzP3s4zv9uo39viQvBHereT3Xa3zHL99HdEb0Z/qJ4=; b=E01MnV6CMgQrPv6xJnM6ekVfdjMY594Crn37/1QaUSBMUw06sXcbG8dlVxUewygiG55hEYBKhvuw5sJHe3+jNBSZjVCh+hvn0AcX6fqb7mAVFDVMdpaKh8q5HalrSXUatuz9HRqvmAsCE36xCJfTnF6SNEbKjgZsDUyuohM2rK4= 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:58 +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 1/3] video: ssd1307fb: Use gpiod_set_value_cansleep() for reset Date: Wed, 19 Sep 2018 15:17:27 +0200 Message-Id: <1537363049-48399-1-git-send-email-michal.vokac@ysoft.com> X-Mailer: git-send-email 2.1.4 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: cd29e52f-2663-44f8-dbfb-08d61e325216 X-Microsoft-Antispam: BCL:0;PCL:0;RULEID:(7020095)(4652040)(8989299)(4534165)(4627221)(201703031133081)(201702281549075)(8990200)(5600074)(711020)(2017052603328)(7153060)(7193020);SRVR:DB7PR04MB4666; X-Microsoft-Exchange-Diagnostics: 1;DB7PR04MB4666;3:EuQNSg70cksnTFW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HK9LRTv645Hn1S7wrew6hTLcL2r4vgXA0cHzuHaan/M/S1LhicqpCUoRO4+/oakq;4:PepMrHtlVimgt4UjqSSbmIW0a8Zysyc3saDU7rXp9eqlciuVzxafPiSMXgbc9msKF9oYKyxP+hZxckniBA1XLtf0NcfTimfeXDBDQb+eYG63XMO+bR+obRYvYSaVKO6ZgQxj5uSOTpYThthIizR/kSj2sLgAz+IBKnwa59QUPYJ1WZfknpnBWHjO2wCn2nkkozjNxVvofvWLQtxOtinCHfswUhj0FQwMNweIz/E7zIy2TrZ07vCAS4I80/GmYk5CjcOQ1jmCmAsCFcUntgrmXg== 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)(956004)(107886003)(4326008)(110136005)(6666003)(23676004)(16526019)(25786009)(72206003)(478600001)(54906003)(2906002)(6506007)(386003)(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?MTtEQjdQUjA0TUI0NjY2OzIzOmlXRmFvOHFnS3BHTmtqcmJTRWxoZHFiVzRP?= =?utf-8?B?bUZGcDVIRzJPK2MxSVZ3eGJCY08zWWNaaGlndHZQRjQ3SUhyZ3dCVFc2Vmhv?= =?utf-8?B?ckloZUdHSmNtbnNaMU1tZTZ0N2I0d29obVVMS00yUk52by9JcEs1ejVXdTN5?= =?utf-8?B?d2REaEwxRWdOcUVOcURFN3RodHZVSzZKcUduOHRHUmJjWFR1T0t2UXpLZXhi?= =?utf-8?B?YmtzVjNObDJUQ3poakxmYVUxNldDaHphMnZ2Z1lyYU93VnhJUkdOTWFOZ3Ri?= =?utf-8?B?SWxEZ01kUjZsN3hXR1E2U3pwK1ZMYXJYNE9wbElqbXVRa1Y4aDQxSXpqd3Ey?= =?utf-8?B?U1FzVlZDWVZmN0s5bGp1a1hQeVlqY2pVcXRia0JZeUdwWTZ1ZGorSjFQMC81?= =?utf-8?B?em1IY2VnMis0eG4rNElMS1NHU2wxUVVpN0JDVU41RFY0bzdYUnBQRjBxajQ5?= =?utf-8?B?M2FRSXJIZzNURzV3TmpZMUp5WFVXdGp1ZzlDa0hGTXZTV09INkw1WExhcTZ0?= =?utf-8?B?bTlLTjZkTXdiZXZhN2p5TWFFVzF5bjJIeHpPWGt4aEorOFh0R0dlbXRSRTRP?= =?utf-8?B?dDZmeDlQaGs0cVQ3RXBrVHBqL1F4SUFnVnRSQmFDMWt5dGk1VkU3REtkUTcw?= =?utf-8?B?SmwxTXFQQ3kwWmkzS1M5K25NNUxlc0FOcVN2WlE5QzZrR241SkZRRlNzTFRL?= =?utf-8?B?VzU5WTV0SkFyT0lYalhMTU9TNno1Wms3Z2prQk85RzNmbzdvRHE2WXJWc09T?= =?utf-8?B?dVVTejd6THdzUFdDeW8zeTl2SWNZMlYxUUF6eUZpMzd1L29CVlQyYzEyMzc2?= =?utf-8?B?R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CudbPSXeDW1oEqT0+JsC9BWWZmHQoSJDXv2PFcBy6IkQXLif4Fx3OHJE6m40E2K+7XaIX4qfeVeaRxZLVHt0dIEQK SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: ysoft.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Sep 2018 13:17:58.9713 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: cd29e52f-2663-44f8-dbfb-08d61e325216 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 reset signal can be produced by GPIO expander that can sleep. In that case the probe function fails. Allow using GPIO expanders for the reset signal by using the non-atomic gpiod_set_value_cansleep() function. Signed-off-by: Michal Vokáč --- v2 changes: none 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 ba66c02..e7ae135 100644 --- a/drivers/video/fbdev/ssd1307fb.c +++ b/drivers/video/fbdev/ssd1307fb.c @@ -728,9 +728,9 @@ static int ssd1307fb_probe(struct i2c_client *client, if (par->reset) { /* Reset the screen */ - gpiod_set_value(par->reset, 0); + gpiod_set_value_cansleep(par->reset, 0); udelay(4); - gpiod_set_value(par->reset, 1); + gpiod_set_value_cansleep(par->reset, 1); udelay(4); } -- 2.1.4