Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp15024071rwd; Sun, 25 Jun 2023 08:40:23 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5/e91wKD/6oFf2FO8qXeJZ4TdydSGFQtXZg6dCLbpxOK6yvQmNd+LSw4jujJpFueXbnlfI X-Received: by 2002:aa7:d74a:0:b0:51b:e6e9:8fe5 with SMTP id a10-20020aa7d74a000000b0051be6e98fe5mr11841895eds.12.1687707622771; Sun, 25 Jun 2023 08:40:22 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1687707622; cv=pass; d=google.com; s=arc-20160816; b=EajM3370i1GPQgl/rQp7bQOAvkMshFHNRg3wVvvczNrjp97kOHo1U9Ow5ezCp6qVI6 XyCFkfQMnTFJtQ0dFUIlN4YJ0SmvozYCkcSTZvt1gNlDgbQzXF+BzhoN4lG+6Hea6JVL afgPQ97SSi+1GhxLKQVaVIMqaQLn7SgiW41d+JBNZ9sIltJeMvtIVuV96zE3efBVj1/j R1+laq0tg1rhXijIa1YtOhoQun0WKZ1dbqZteQy0HjzcwM/NvgRB0UYJ9xbVBFHo9Tik e0aWM9C+Xqyli3TsQo1HecFK4LGGLhSYMjrc3SCuKXs4+2Lz2Bi3tmokr7K9lZSfa4A4 NkCQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :msip_labels:content-language:accept-language:message-id:date :thread-index:thread-topic:subject:cc:to:from:dkim-signature; bh=aLfAPeFQeAJ3m/RPTMp2h0zHiacLma+VhXWtrvxXKb8=; fh=wSOhJIEhpLONWCFH5fAFdi2fNc0sHVW2P072hW6QiY4=; b=nRlwNTNxPTM7Bs/spam97BuS27yZPfjdItwWw7CH874LMKvmbTL2P/5PirXCsCJae7 TxAKHxAhTdAEIRTng3QNjKrXxMNRzQNUH+7buqRY1L2uAOxx7lqzsreXme7NIiHwfog1 RxF9g16u2HT7rXGtY2p+tD31kRzAoE80iltWTES3Z6ryf+t9ELfLVG4tLXtibaHcx3lb FG2x6AJx1FXS/NAEtBCw+FpDYYqbIZwIrC4lKpVy33HcjCouSUqkpOqLqR0j0sXv5RSD oQDQ9MUM6jr97i8OzLhnyjy0xsAehRAeAoMRdupTofoBSZJD9xpMpxPz/vnBF0MUuHXQ 6Pbg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@connect.ust.hk header.s=selector2 header.b="FQCpw0/w"; arc=pass (i=1 spf=pass spfdomain=connect.ust.hk dkim=pass dkdomain=connect.ust.hk dmarc=pass fromdomain=connect.ust.hk); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id bo6-20020a0564020b2600b0051a481747a7si1659252edb.256.2023.06.25.08.39.58; Sun, 25 Jun 2023 08:40:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@connect.ust.hk header.s=selector2 header.b="FQCpw0/w"; arc=pass (i=1 spf=pass spfdomain=connect.ust.hk dkim=pass dkdomain=connect.ust.hk dmarc=pass fromdomain=connect.ust.hk); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229880AbjFYOpU (ORCPT + 99 others); Sun, 25 Jun 2023 10:45:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57298 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229452AbjFYOpT (ORCPT ); Sun, 25 Jun 2023 10:45:19 -0400 Received: from JPN01-OS0-obe.outbound.protection.outlook.com (mail-os0jpn01on2119.outbound.protection.outlook.com [40.107.113.119]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 495EF13E; Sun, 25 Jun 2023 07:45:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ktlZ2iCIORQ9HKd9WUMXr0yZ+11Hwmhiw0XtyZzcJanw3cJl//5xx/4ZV86Bc8mLu7s8/76PJRf3lz4IUlzGRM3DTV2xXQ0Yk9ruoaZHveJUD0wWUCHisq6DUNNEo3APUJv+xIuITCgtb6lEYQdkJD1I+hFYouCf6U86B4IAePPwLvsaN7QDFcRaU6bob8nglu1YPCPof0+XL47oGjlsfAGKO+v1RxohvTB6225dxsYQwlms2Hb9zMmRbIjqB7/g3Ri4Pz31lKpLFkwVJxttYz7tI+3cIabT9nQVPe1jiDOaVpCUUaPoSmOo2mYRJxKnNS1IOsfD3QODpmbNUZ3Ejw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=aLfAPeFQeAJ3m/RPTMp2h0zHiacLma+VhXWtrvxXKb8=; b=Iizh5UW/TGB2niqMxJRWU8E4J/MsKsGcINlJ7ThVupTzCgs3T0lJMeaGEByuQUwbaHIfrJA2XtJOPU7WOVJMssGGx+kxl8rR1wWnfOKUzq7T03pbY/DAhumWSuO0MiBrHbpgGY5duKxHibaBgWMMHcpj97X1KrnoFQc3mZrRg3AAWxLcrZYLUfyg1NuvooUK5nDtU2fo6TANREGbpJq3zH7wW8b1RmWFVQWcAlCTd6BB/YaV6PFR0WxL7PwvYEykSW3pAgjUAArKKkHC1kC4bRAQ7Aockd6f/ua7Q/o7Gap2qRfvdhkZg3ABo3gOWtP0+5d9bVrxGEovP0W3BjBTOA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=connect.ust.hk; dmarc=pass action=none header.from=connect.ust.hk; dkim=pass header.d=connect.ust.hk; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=connect.ust.hk; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=aLfAPeFQeAJ3m/RPTMp2h0zHiacLma+VhXWtrvxXKb8=; b=FQCpw0/wKBFxOrGyOSQ3D0ZK/6wehazQ0rrpnxvfJE3jk0HhLN8jDL7aXF1GbwXL9f8iQk5GJszlNyYM4GLUH9pmUjY1PSMdQm0qrNR27MHapYQskqENXcVI0aJvzbt7XvYHjmqM/MDXjucZORcyGKLB8Pw4vPEZY8/9J6kkZlI= Received: from TYCP286MB1188.JPNP286.PROD.OUTLOOK.COM (2603:1096:400:b7::8) by TY1P286MB3392.JPNP286.PROD.OUTLOOK.COM (2603:1096:400:2ef::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6521.26; Sun, 25 Jun 2023 14:45:13 +0000 Received: from TYCP286MB1188.JPNP286.PROD.OUTLOOK.COM ([fe80::b429:5aa3:12f1:6b8]) by TYCP286MB1188.JPNP286.PROD.OUTLOOK.COM ([fe80::b429:5aa3:12f1:6b8%4]) with mapi id 15.20.6521.026; Sun, 25 Jun 2023 14:45:13 +0000 From: YE Chengfeng To: "linus.walleij@linaro.org" , "brgl@bgdev.pl" , "andy@kernel.org" CC: "linux-gpio@vger.kernel.org" , "linux-kernel@vger.kernel.org" Subject: [PATCH] gpio: gpiolib-cdev: Fix potential &lr->wait.lock deadlock issue Thread-Topic: [PATCH] gpio: gpiolib-cdev: Fix potential &lr->wait.lock deadlock issue Thread-Index: AQHZp3MKCKremSKpfUKxLQfpASRqlQ== Date: Sun, 25 Jun 2023 14:45:12 +0000 Message-ID: Accept-Language: zh-CN, en-US Content-Language: zh-CN X-MS-Has-Attach: X-MS-TNEF-Correlator: msip_labels: authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=connect.ust.hk; x-ms-publictraffictype: Email x-ms-traffictypediagnostic: TYCP286MB1188:EE_|TY1P286MB3392:EE_ x-ms-office365-filtering-correlation-id: bf081694-7031-4843-6e1a-08db758ac851 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: 7ZUjEelxDbFQBUCXCaq3/DKKzQa75kKa9LcH+/rxO4gxNyCxxmtLtNv9UoAHe46xERi0TvWDdWxSZWdCiFSv8q9vT/b73nweln3DLlxZI93RCym0tZHsEv9CeOxRcUjTfvs8341sCOxYLNUGw8NsxU/qoaPsvghkiNpd5NGAKkQODaPvEEah6FeN6BAyLfG64d8rqpouqvlePW3d9NXu2NcYD3pRb0Ecu12vd4Qf8V1B7/MzAQ0RdHaecu6jdmSvRvEFO73xd9Jyr7qUuN+VEPdppeO0XoGl+WQKUX+zf9xxESdkBwapoMfKiABjqPHPor3nPaH5/PhfCwbepPOuEKJG1L4fLYGO9/v17EUc50XxOSfjP8czyC/0RdahzUV+U+TVFSCXceK9Z/LnZWoTuto1jKdTlHc3FKqdBngMR1/o9oEGM4bJkTB1JafVOKnfzxskP1kxc2zK4LvfMYLo+NqF4hwSY6XmVhHKmauUKyYbKZxnVO4gBOFHfUebXbpNFjCutJwpx+976QWqKKv07D8jlLNWmgHr0NU0IpJOW3QTDC7Jh9FBt0PqCC54D1LRsrHzJIl+CaUMLkCp0p4pTVu5DuKVp4ZHipbcudP53tnjkFedbQWBXF/YTTdRvPkM x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:TYCP286MB1188.JPNP286.PROD.OUTLOOK.COM;PTR:;CAT:NONE;SFS:(13230028)(4636009)(366004)(39860400002)(136003)(396003)(346002)(376002)(451199021)(2906002)(26005)(186003)(71200400001)(786003)(38100700002)(122000001)(9686003)(6506007)(52536014)(5660300002)(83380400001)(41300700001)(8936002)(66446008)(66476007)(76116006)(64756008)(66556008)(66946007)(91956017)(8676002)(33656002)(55016003)(38070700005)(54906003)(7696005)(86362001)(4326008)(316002)(110136005)(478600001);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?gb2312?B?aSt3WjZkNXpMMGxGRzZRZDRjVW5XT1FjaUFOOXRkTmFXSXRtSExlcENLbTlm?= =?gb2312?B?d3BsN2VEc0JjWTZ0SytwajRHUXJLY2xDaExMa2NBRmljTnlJQkswNmIxRXk3?= =?gb2312?B?SGJseVQxRnY1akU5UUE0aXF3bTBDZFA0SEUwVXEycnhrMkNMOWVkQzY3eEc2?= =?gb2312?B?NlZ5LytYa1FhZmFVeEE5MnhYTFYvT1U0dEZXcUNha1JlR1F1Z1d1S29leWdx?= =?gb2312?B?d0F4SWg0N3BYZCtzT1lsYkpWaUs3Uk5tT0xSbDNxVy9ONTNvc3VvL3Fuc2hF?= =?gb2312?B?UFd1UU9vVXprSExnMzc5dUt0NllhZ04yaG1rbTFQck83cGtrNEttblZYTUMx?= =?gb2312?B?Nyt6UTVwS1JwRWgzc05jelVieVZxUkVDWTU3YWhvM1JLclkweGtwcWRRMENK?= =?gb2312?B?RUpjZDRPM25IVkUxTEpHUFpHYkNvTDRrbkYyd1VwVDdXbks3YVU5YmxpaXc2?= =?gb2312?B?MDRyYjBIRXRBZ0piUWZaSkYwZkVYWjlIa2RZUU9Gc0pqaVlpQWNSUW5BNTM4?= =?gb2312?B?aUFSQXh3TWZXQUhRZmw0M3dQYlE0Zm5wTjNoL3NLWmZaY2pjVzMzdWF4RXJp?= =?gb2312?B?bFNJWE1QTXpwUE4xVTdqRlhtTWxPNWxiSStuSzlMQkdJL3ptbmJGTk94cTIr?= =?gb2312?B?RDN1c2h3RmIrM3NnZDVoWWdSWHdPdWo0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1aHFlMjlKRDg2ZHcwang0UlBUOTcrNDZYZ1E1OFFI?= =?gb2312?B?VHJ6VkFIRy9kOXoxVUMrcjdjMVZSTUJTcjZEbm9FemxmUmNhQWlNUWRjbjdy?= =?gb2312?B?K3kwL1VqSTNxME9jSmRvbTJHWFVNVTIwRTF2ek5jUStQdVFLeXdoSHRiUXNT?= =?gb2312?B?Q2VKMDhteVFNL1lLVEh1UG9wd2Z2aytxMmhPZ0E5cVo3RnZWMUNsN3J1cWE0?= =?gb2312?B?cVlMdW8wZmhXVXpqRGNBYk5jTGRUcUZ5WU1Demltc0thR1FoUlYveFRaUHJa?= =?gb2312?B?VjkwbDlUTTRPbUlXT1hGeCsvb2hBdk1lWTJOd0U4ODZQV3JSdzIvdjR3VWNu?= =?gb2312?B?aXVqOUVNWjA4T3EwV3QvNkoxcEJUdVpPRlVsejBTaXBnMGNEL0o4SVI5bW8r?= =?gb2312?B?ODBVaTlIRSsyTTBBYzdkQ0FhSnZ4K2xjTGJtL3pZNjBZN0N1Y3FkYzZrbEZn?= =?gb2312?B?OXJ2Q2hwSjI5emxqSmpOWGp2Q2V2RHA4LzVuWHFqMUZlSVdPbXpyMVRtUkQz?= =?gb2312?Q?nOqztp5Z+kvcdTGmIn/h/1fCf?= Content-Type: text/plain; charset="gb2312" Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-OriginatorOrg: connect.ust.hk X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: TYCP286MB1188.JPNP286.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-Network-Message-Id: bf081694-7031-4843-6e1a-08db758ac851 X-MS-Exchange-CrossTenant-originalarrivaltime: 25 Jun 2023 14:45:12.9239 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 6c1d4152-39d0-44ca-88d9-b8d6ddca0708 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: RNnxSwYCarz9lZmhSrgf2sbvul8P0L9HLyLgMZ9Hr4HF7rGUEvES6g7SIDgCHRK+Ek7Xf+6N4SOwhwrnKKGuGw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: TY1P286MB3392 X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2, SPF_HELO_PASS,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org bGluZXJlcV9wdXRfZXZlbnQgaXMgY2FsbGVkIGZyb20gYm90aCBpbnRlcnJ1cHQgY29udGV4dCAo ZS5nLiwKZWRnZV9pcnFfdGhyZWFkKSBhbmQgcHJvY2VzcyBjb250ZXh0IChwcm9jZXNzX2h3X3Rz X3RocmVhZCkuClRoZXJlZm9yZSwgaW50ZXJydXB0IHNob3VsZCBiZSBkaXNhYmxlZCBiZWZvcmUg YWNxdWlyaW5nIGxvY2sKJmxyLT53YWl0LmxvY2sgaW5zaWRlIGxpbmVyZXFfcHV0X2V2ZW50IHRv IGF2b2lkIGRlYWRsb2NrIHdoZW4KdGhlIGxvY2sgaXMgaGVsZCBpbiBwcm9jZXNzIGNvbnRleHQg YW5kIGVkZ2VfaXJxX3RocmVhZCBjb21lcy4KClNpbWlsYXJseSwgbGluZXJlcV9yZWFkX3VubG9j a2VkIHJ1bm5pbmcgaW4gcHJvY2VzcyBjb250ZXh0CmFsc28gYWNxdWllcyB0aGUgc2FtZSBsb2Nr LiBJdCBhbHNvIG5lZWQgdG8gZGlzYWJsZSBpbnRlcnJ1cHQKb3RoZXJ3aXNlIGRlYWRsb2NrIGNv dWxkIGhhcHBlbiBpZiB0aGUgaXJxIGVkZ2VfaXJxX3RocmVhZApjb21lcy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