From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8BF4CE7D0A4 for ; Thu, 21 Sep 2023 18:56:53 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230131AbjIUS45 (ORCPT ); Thu, 21 Sep 2023 14:56:57 -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 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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