Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp499502imm; Wed, 19 Sep 2018 02:21:02 -0700 (PDT) X-Google-Smtp-Source: ANB0Vda/J20PywlKroj6o6P42oRWEjBBZhQm17yxfr46yuWsJFTy6YyvkKcU++AvJwrf7fQE5Wzb X-Received: by 2002:a17:902:a9ca:: with SMTP id b10-v6mr33023276plr.198.1537348862013; Wed, 19 Sep 2018 02:21:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537348861; cv=none; d=google.com; s=arc-20160816; b=do0tC3v3cX/xX0WA3eSgUdXFxkPaOStjOXB0nuWCpru8bUJ+60TWy5WQj4Gvs8Dy4d o9HhhHB0/nJhU9yvuj2SE95c9c3602azo3jV8mrVi8QYGMEuTk/+faUMWAQxVffRzQIG CVMu6nT3aNNjX8+S+k62KVkgkiNs25H5Np3CJI1Hn+f7aKrfoqMiu5JKKO9FGcpX8mj2 esOs28BMZMjHYF3gFtqdUrgJq2clkQc6Nl1Mh6twkKLaWPXEhHMvOi5qtvkvBHvKkgA1 nUG/oQXbI5q74QqS4DikSXUr058w8BKXfWrAKCX0kmw8k//j6Sq2/SPyyaiqOQC7BDLZ i6wA== 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=rES/CKauT0vKNNuiCnxyajxJ4Jw/bOGMHidRei13ESU=; b=JW2R/6YUIqe6y+/x2LYYuqLl28rHsmUxoS6bdzzWSqEt3WKsgxdcE1AhZnwR4MbGhG DtQQhLEFFx+VERUXwkoO/TMNR9aN3qnrEct9mkjBT88mRn5AN0Mys+G5njRXZEpF+O3k rv1AjUaRKE9mxBzxR8DKS9z2jK32DuCcNbQmyyUucge+X3Ou6hrJGZc/u1ZGAPYJ+dUt bV34DvLznJTNZLUMQ+iKkEpnuS8qyUxt+p5Q+VWUBe5APG5ufYapWz6K4VuiX19pT2IU NOlMXxUpuSopbsfHnGJXQ3rrLinlL2Ml9IHzNbpoYkLSMrNbNpNB1PGBn1ik6o0N2bCL eGJQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ysoft.com header.s=selector1 header.b=1URLoXje; 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 p66-v6si21243291pfp.237.2018.09.19.02.20.46; Wed, 19 Sep 2018 02:21:01 -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=1URLoXje; 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 S1731128AbeISO4G (ORCPT + 99 others); Wed, 19 Sep 2018 10:56:06 -0400 Received: from mail-eopbgr30087.outbound.protection.outlook.com ([40.107.3.87]:52824 "EHLO EUR03-AM5-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1730802AbeISO4F (ORCPT ); Wed, 19 Sep 2018 10:56:05 -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=rES/CKauT0vKNNuiCnxyajxJ4Jw/bOGMHidRei13ESU=; b=1URLoXje5j2+WXFDa819w2ymhHvRuUZE9Q/F75uNM3QjlDOX30yEfURw0oRvS+YWPtztGnVunFM0F9H42orCEqQ4DkrBN6xqayVzqo8B4vj/o+OHYJTGr+JjtuVlC/Tpvu2gEvdyXyNPwCbj5fEOEO1C9/UHNoRj+JZ2l0BFoU4= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Michal.Vokac@ysoft.com; Received: from iota-build.ysoft.local (89.24.100.190) by AM0PR04MB4658.eurprd04.prod.outlook.com (2603:10a6:208:75::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 09:19:01 +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 1/2] video: ssd1307fb: Use gpiod_set_value_cansleep() for reset Date: Wed, 19 Sep 2018 11:18:43 +0200 Message-Id: <1537348724-22976-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: VI1PR03CA0067.eurprd03.prod.outlook.com (2603:10a6:803:50::38) To AM0PR04MB4658.eurprd04.prod.outlook.com (2603:10a6:208:75::12) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 9746b710-7598-4934-9d79-08d61e10f044 X-Microsoft-Antispam: BCL:0;PCL:0;RULEID:(7020095)(4652040)(8989299)(4534165)(4627221)(201703031133081)(201702281549075)(8990200)(5600074)(711020)(2017052603328)(7153060)(7193020);SRVR:AM0PR04MB4658; X-Microsoft-Exchange-Diagnostics: 1;AM0PR04MB4658;3:cQi1td2RQS1M0Gejh+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mlgjGLj8warnSTUuLyGPSkUPDJ+xZTDHjsInYZpOiPKYXDL+Kd99Eza/8ynftDrm8W8h3uITXV7zYtZu3;4:gov+7F60ii75EuUpSKkRC0dv5ufNKVgZrq1kd5bzL+rvzHJrPsu/IJuu0v7ToEQ1OS8LpY0+atC32Xm6fdJv2SfsK8Cv0t2W8GzsAzS/4oT0OJ52v44uEkqXyzO9yNsYbVWX/D1vjPufd7G2Ol7gETySuiCYo7mlLygutnAFCQBVnZA5vo2ZfX4ZGRCHRrDHsABD8ll7fADV5w+Icgb55CtaBi89BqZdjm3nQ6/5AY7qJfvrOxO3KvCT6gw78a1VAb7TXl9gTjPSYEAmgvEQJw== 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)(3002001)(3231355)(944501410)(52105095)(10201501046)(149027)(150027)(6041310)(20161123562045)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123558120)(20161123564045)(201708071742011)(7699050);SRVR:AM0PR04MB4658;BCL:0;PCL:0;RULEID:;SRVR:AM0PR04MB4658; X-Forefront-PRVS: 0800C0C167 X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10009020)(366004)(346002)(136003)(396003)(376002)(39850400004)(189003)(199004)(66066001)(110136005)(50226002)(476003)(486006)(68736007)(23676004)(956004)(72206003)(2616005)(26005)(6512007)(6486002)(53936002)(54906003)(2906002)(186003)(81156014)(81166006)(6666003)(2870700001)(8676002)(7736002)(107886003)(6506007)(386003)(105586002)(36756003)(47776003)(16526019)(5660300001)(305945005)(316002)(86362001)(3846002)(50466002)(478600001)(52116002)(97736004)(25786009)(106356001)(4326008)(8936002)(6116002);DIR:OUT;SFP:1101;SCL:1;SRVR:AM0PR04MB4658;H:iota-build.ysoft.local;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;MX:1;A:1; Received-SPF: None (protection.outlook.com: ysoft.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?utf-8?B?MTtBTTBQUjA0TUI0NjU4OzIzOjVxMUh0RjZTSWV3cDA2cUh2dWxINS9PL3VV?= =?utf-8?B?NjJXRHJ4aWRDVFBGb01UYWQ5TFgwR1ROUDEzNkdyaG5mMXkzVjhwMDdrbkpn?= =?utf-8?B?OUd5K2JXTEFEUHNTaHBsejdidElIR0RPeTVicjNYcDdMdkVJUFZwNkl1RU13?= =?utf-8?B?YTVNY1JXMHZPTkVKTEt0SHJtR2pWRDFpOEhtM0RDQlBUWkxFRjZ1MHhGRStB?= =?utf-8?B?aHdWdVlHYWFJdHpKNHRvOUVpeFNrK2J5NWg2RTVyekhjMVJnL3psNUx1OFVr?= =?utf-8?B?RlZtUHA4cHp3WTEzdk1qYk93d0FMbUVQOHRXWU5UUVRmMkdScTNHUnM2aWJN?= =?utf-8?B?R2pkV290dFRQQlRDV3Q2VFZTUCswK0FsbmRJNCt2U2pXNUpwcG82NVg4VTh3?= =?utf-8?B?c1F6ZWowejVXdEpmSzRPSFlXem5aSCtyb0llcHI1dk9nSnh2MVpSc1A1RkhJ?= =?utf-8?B?NTFXRlRkU3V5cEt2U3YxaDVuN05aSG1hdFVpN3ZCZTk1K28rZUVGMzBUc0Zu?= =?utf-8?B?Q1NsbXU5QlBSWGxZY3Z3UlN6OWpncWp1NTk1ZlkxYjdndWNMYlFzN1lXTkFC?= =?utf-8?B?a1JzZDBybWVWN3BSK1FBaTFRWDl0Um5NNll0NXJqcWhMSGRzV1FrdkpnMU0w?= =?utf-8?B?dHZCTS9Dd29pemFiSlM1bVE3cFRpUFkwVmV1VTV3WGhWUXQ0b1htaHFFZllE?= =?utf-8?B?L3lSQllPRXlyaWF0a2FsdDBINUV6ZUJFKy9HT0xVTkRqT0t5Zkwra1VuM0Ja?= =?utf-8?B?ZGYvNVhXRmZUcnF4OVBZaHpDOEhzTnhyVUdG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ok5ntHgNFT1JYD6kTRD37/D2fEnHbTGGOIZbHPBuety6J6eiIKy1fu8cOT/bvByoFThJ0eNzbISQjhxIQsrC+JgVD8tKHB/eOAXYpLWsEq SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: ysoft.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Sep 2018 09:19:01.5092 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 9746b710-7598-4934-9d79-08d61e10f044 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: b5839965-430f-4be2-b282-d7a3149f2b37 X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR04MB4658 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áč --- 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