Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp1787074imm; Thu, 27 Sep 2018 02:28:30 -0700 (PDT) X-Google-Smtp-Source: ACcGV61w7R/cSBdyecgAwi3Spc0vWQsBXKNTkMRG54fYpheH2yfeAxwGbXxZjCR3Xv3fM0DhOnYh X-Received: by 2002:a62:2f84:: with SMTP id v126-v6mr10388264pfv.115.1538040510600; Thu, 27 Sep 2018 02:28:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538040510; cv=none; d=google.com; s=arc-20160816; b=hbZd2BXz0wgzfDhA+xMska33qMrf/Iq75TDesA2L4VtopRlHHf9wiH6hFLyepJN0MW NxDuGS/2ANUDZhmBuOxaKWm4/MNrymjjiM6aNEQyrnxql6KuFRwk5znPA8GKGbZF+SyJ Fyfys33Ql/y5fa+C4GDFS2yhmM5KKzU66fAUM6K7T5D4SFiSwQn/74jMdywARuYMAU+o 2Ro9dNLtZOrtMCwt6ZXBE6tk6gglcV61bqWel4tHRD+sk37H0h097w3TTn8MGsa+JMxK Jc4z6UbfTBB5AWFT9mFak5ZM4jqjoYy0BKFwuZhWgCRzQKJ3BEn9wC7N2oH8QSuFwpfq ozkg== 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=2BMra5JZUXtb9QzesBMf7k9W7rBPAYVPPOX4dQm3LJ8=; b=ELsVjuAfxxcThPSQQ/MJ2NCkjbGlogUAtSc0NpSG/6iNu8trTFPj0WZs7k6yBrGuir w5z77/rGnPaysQecI6NuWb34EqCDEaGI+dBNwp1mMlliGxFnwBQ84l0u2+ruGPYXmv5J JH+bEzxlT8JOytWvNnsbsDEl9Zve3JyPg6wa7d3zcZi2dWgJ185OhOs8DzTw0lU3lP1s tWCr5wTGXknB0m8ZvsZithkPpnJTdp/MPwxYZrX0MW6jv1R0/PQBfylw26Lrjr0SVl2L 1I80gtBfkHPwI7W5KopMBn3rz2ZDc0kViFcrd0jTeyWDSbCDnCorBUeMB0+j6FI3W7jU KA0g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ysoft.com header.s=selector1 header.b=1Z03YufO; 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 n12-v6si1509932pgl.136.2018.09.27.02.28.09; Thu, 27 Sep 2018 02:28:30 -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=1Z03YufO; 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 S1727706AbeI0Po5 (ORCPT + 99 others); Thu, 27 Sep 2018 11:44:57 -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 S1727505AbeI0Po5 (ORCPT ); Thu, 27 Sep 2018 11:44: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=2BMra5JZUXtb9QzesBMf7k9W7rBPAYVPPOX4dQm3LJ8=; b=1Z03YufONm2KvExIdcoyMUZYY0QmNWrhZzjLEmco4Ix3FZMGzZwKDK0Pn5efP4g0sl84Rh7/HiqLayC3TTFsZ+TygTf9wrVGhF4Ej1e6Cg2kkT4vTSJ+b9vS12UbcowSVJtdwCvpgjYFg6sparShgaqvM0jnNejo/XmvRyNHAfk= 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:30 +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: [RESEND PATCH v2 1/3] video: ssd1307fb: Use gpiod_set_value_cansleep() for reset Date: Thu, 27 Sep 2018 11:24:39 +0200 Message-Id: <1538040281-21319-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: 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: 9dab4e8e-82ee-4be5-929e-08d6245b7365 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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19cLZyWZregIImOMfxz5dhlhwBL9Y683wXQS5r88Ddgjb6mE7YNQ4BkgawDRjLyCBjzGs88DFuHS4wqbCOHzuBZb+YtWEpvTnuuzKzi;4:hRwViQrChsVJnZKwyp6nADhWBEweIRsGtFE50JeP1hVWWmQB2hqxql7UpTEI+ae/z9b6Yy/WJGepG+6R45d+5A3L2cJn2NEj43e97EpoXovbmbggB/0BUyXoi/Ywe8HRDNVuJGXAZU2u9OBCWcI9thld9yajJU7kYsCPLvynr8x9CDdrseFlrnnWUwhrN1g5WktqrrL9NOv7ho5l/9w1TrTwdnpk6A32+DT3YmO5zn0a21JamjSgV+1JFhQXGqoOpk4FN47MRhrC+AS+EIkkLRxVEDQur2vroAoCzHu6r7Wz6STAWLw1q8kdlo/wVbLu X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(185117386973197); 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)(6116002)(3846002)(26005)(476003)(97736004)(2870700001)(81166006)(81156014)(8676002)(486006)(86362001)(316002)(8936002)(72206003)(50226002)(2616005)(186003)(956004)(36756003)(16526019)(53936002)(2906002)(52116002)(6512007)(23676004)(47776003)(305945005)(217873002)(50466002)(478600001)(6506007)(386003)(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?B?MTtBTTBQUjA0TUI0NjYwOzIzOjg1YnR5bmhhaDd5ZlRpa1FqcUxlS1VWQVc1?= =?utf-8?B?MnV4Y3pjdHlzQTZYM09VSFJibk1QcUlEMElZbWxBTVQ2NzJoVFZCbVBtdDZa?= =?utf-8?B?SCs3Mk41N2FBNUJ3ajZmb1U4dE5pNVB4N3l3TldGMG9jMHY1ajFsRGJnOUli?= =?utf-8?B?WlFCRFBZUVp3akhJdTA0SlluMlVCUmU5RUt2VEswN3hCbHZhM0tuQnRnZk5I?= =?utf-8?B?dGNVdnY1b0UwLzl5VHgyLzNlMFZSZGhOdDBFL3ZUdFdESGRpUXF6bkxncmtC?= =?utf-8?B?bncyMzIzRkxxTFlBZnI4VDlqSThZYnNEcHJMaWpUYmFoekhBSmtQaDN5b2FQ?= =?utf-8?B?eUhLQmVTZTY2MVNwb3FQSVRvSFNIM01OSjhUTEZqb3RKMnlTSFZpcHVhbjdz?= =?utf-8?B?ZXh0d0R4d2RLUGpBcmhjRENpbnViQWp6aHVoVklHdGNVK1dyTGpMTkhtbTdm?= =?utf-8?B?MGxmbDZpY2t5dE5IRlcwY2kxeGhqK0hqK2MrWGdiMlFwR0lHek9yUGszL1Nl?= =?utf-8?B?bkhQZE80TE9rWU95NzZBTFdsOGxVN05xT2hKSm5mMjJubVAzZ1djRnFKZHo4?= =?utf-8?B?MmJJb2R1NmlQYXorcnB3ME84ZlFmWFdGNC9SaUE5TlhMU3lzdEo3VXViNTdJ?= =?utf-8?B?em1KVVg4ZjhaRFl3N2RTRFM5V0c0eE1TUDljMVBOeVc0QVBzNW5aaUlZS1d1?= =?utf-8?B?ZkJZT3lBVzllTnFvQ09rVEpDbWNDTVplT2ZuSG9raGZGZENkMXJ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Lgj2tYVkcIU+lLx3z1IROUk1vXeosaXmiVJh8ZAEW8qnCc7gs3vnkawDCd5xaoT8sBw/Sb9PLI3EvX3SjHEVnYHRuhWCL/bC0oY802hRl1OqTZRoSkeyKimyeIZyu4QkUaY0T0qZxBEQzSd097i9HDQjTBvvkqSK1ZL13dSCrzTKEI10JQdw486FE SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: ysoft.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Sep 2018 09:27:30.8195 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 9dab4e8e-82ee-4be5-929e-08d6245b7365 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: b5839965-430f-4be2-b282-d7a3149f2b37 X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR04MB4660 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áč Reviewed-by: Fabio Estevam --- v2 changes: add R-by from Fabio 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