Received: by 2002:a05:7412:37c9:b0:e2:908c:2ebd with SMTP id jz9csp2223626rdb; Thu, 21 Sep 2023 12:01:52 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHV6E6wDiNaUXe9FpwH+yheoMbWyhavfH8VgkhFwoTXNcVAxoubvRR0TQEyUHkeTC89AqtT X-Received: by 2002:a05:6358:7253:b0:143:5826:dece with SMTP id i19-20020a056358725300b001435826decemr9630545rwa.25.1695322912511; Thu, 21 Sep 2023 12:01:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695322912; cv=none; d=google.com; s=arc-20160816; b=GTt9T1xsvg6xqK4V3lxW+MngJnLVvP7aRICeick9ujsqqZKrr/71q5Y5nvAznp+OCT /geXzrqsG+XMEF8hlBCOPz2wfDMEMnyVjwz4bytFf/RyOaD1owav7jU0C40tUUaMzboI /sB8lsAzjWl7MO70LNG0hBNl6a+7yMEhQ7foUkHXr6jbsvrZ2qy0ZSoST4XQ77SyAAc1 u+RbBf4KPVTYcA51l8qs8hZcw6Zyc8V3VJmEI3pN/NUk3V4hxabO9EyzEJ77jnPozzGm VChXskXs+JuZ7pgJKPNeWIxrBXdLWkqgw6MO51jnCZKTWScazwXMjBuUOBR3TwTWoTzW DBxA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:organization:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=NR3JlsN+ezNHb+XSleiieexaee1PSp0ds07W22AyAjA=; fh=42XwWkcaVGTmqH7uUo+PZlDqm+nqmQc2mhcEoquXlzc=; b=T0hftM5hP4n1hfBIZNUqnX5dLJBbAhIhU/xBycowA0tLnX1Ea4c+RhRlUrDURQ0poz 8FtPLVgk6QW04BcGNNj8V632LVVpiD/j/CJv4Ze0yR7+ZKc4pguug1Tc8W5CjyC6E9RZ MmbVhOvl/Te3P9Od78Xmeyq7QSh45IpMRDHdv8PFxpUBMRTo3CdH5eY26UcRT8rsr+1o CbDhtkLj6zL/klqeuU0rDy078JYnh9miGA2jrTIc20iAZc7VfJme/Ds9mbguTJ0mDFh/ RFq9IIG1ZpodAHWvVx1SDkXGbQUB1nnTjIetH2LyADANS1CWeF6VjH9iaxl5DPmC1k5W /uDw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from groat.vger.email (groat.vger.email. [2620:137:e000::3:5]) by mx.google.com with ESMTPS id bz14-20020a056a02060e00b00578b8016c3csi2337622pgb.24.2023.09.21.12.01.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Sep 2023 12:01:52 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) client-ip=2620:137:e000::3:5; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id 4EE528096FE7; Thu, 21 Sep 2023 11:57:16 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230347AbjIUS44 (ORCPT + 99 others); Thu, 21 Sep 2023 14:56:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55822 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230089AbjIUS4n (ORCPT ); Thu, 21 Sep 2023 14:56:43 -0400 Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.126]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F358B61091; Thu, 21 Sep 2023 10:55:41 -0700 (PDT) X-IronPort-AV: E=McAfee;i="6600,9927,10840"; a="365633303" X-IronPort-AV: E=Sophos;i="6.03,165,1694761200"; d="scan'208";a="365633303" Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 21 Sep 2023 08:39:54 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10840"; a="696780743" X-IronPort-AV: E=Sophos;i="6.03,165,1694761200"; d="scan'208";a="696780743" Received: from smile.fi.intel.com ([10.237.72.54]) by orsmga003.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 21 Sep 2023 08:39:51 -0700 Received: from andy by smile.fi.intel.com with local (Exim 4.97-RC0) (envelope-from ) id 1qjLmO-0000000Gx11-1HEy; Thu, 21 Sep 2023 18:39:48 +0300 Date: Thu, 21 Sep 2023 18:39:48 +0300 From: Andy Shevchenko To: Wenhua Lin Cc: Linus Walleij , Bartosz Golaszewski , Orson Zhai , Baolin Wang , Chunyan Zhang , linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, wenhua lin , Xiongpeng Wu Subject: Re: [PATCH V2 2/2] gpio: pmic-eic-sprd: Add can_sleep flag for PMIC EIC chip Message-ID: References: <20230921122527.15261-1-Wenhua.Lin@unisoc.com> <20230921122527.15261-3-Wenhua.Lin@unisoc.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230921122527.15261-3-Wenhua.Lin@unisoc.com> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo X-Spam-Status: No, score=-1.0 required=5.0 tests=MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Thu, 21 Sep 2023 11:57:16 -0700 (PDT) On Thu, Sep 21, 2023 at 08:25:27PM +0800, Wenhua Lin wrote: > The drivers uses a mutex and I2C bus access in its PMIC EIC chip > get implementation. This means these functions can sleep and the PMIC EIC > chip should set the can_sleep property to true. > > This will ensure that a warning is printed when trying to get the > value from a context that potentially can't sleep. This deserves a Fixes tag. -- With Best Regards, Andy Shevchenko