Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp282903rwi; Sun, 9 Oct 2022 23:31:22 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5jdy3q5PNpcK2lkB4KidlsUP1s4snZ+FdVPW2kbMoYU921WW0WUf+avL41MhxHBpf9sSBP X-Received: by 2002:a05:6402:380a:b0:451:ae08:7a6c with SMTP id es10-20020a056402380a00b00451ae087a6cmr15775248edb.161.1665383481803; Sun, 09 Oct 2022 23:31:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665383481; cv=none; d=google.com; s=arc-20160816; b=npnwVa5F6K1aGfvSKOJbuU5jQBPWP265oj7qEJB8j62xQ+DLUO56nluIBxmMQNaSxP FwzjMi15vyLhKZ2teGiPymselcutOiPtC22vRnVegd9HL7PlWG2lo2cGFyg3ZQebRHST KQXRzyinGCSMw3wsX0wMRBqJZGXjd0ojONtSlz3TRZMHOml728wmGyJ7oOL4uGcGrjf3 1JKINrBAtJ9G9yzvtcg39VPX0F0/lo6jtbWUVTaUHDBHv97m+dEICnF6ZPih/cMh5BUQ NjskgSmgU9m3jQIJ8tGID/0d/ch5JGKa2URgbUHRyWUImPy4BfRGpFUMa35cf0R2r7Y8 yvFQ== 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 :dkim-signature; bh=sRmE8dnhC7yWIs/WHs8Zo/m6MdT56cKIiGAXAKG7HHU=; b=BOZpj6J42V5HoqRS0E2v/VDW3NnGBVIEV6N0baSuuhQrdqB0PPTUFH6DISO3kGgBOJ VZjW1KqKV62cx/m53qXobdHxewFkuAsQpNkHbw7FEgn5cx4EkNoZqqnlmH/2kWzHkIOu h5K0c2DQxHyDTH2CA9tEKk9f5MuK5S90Lx/HQi4fERHmSloWV8PS5FbQvNMVJpXapkqV Uh8xY/VnEBd/DXxp9noVYvJ/svpdx8gpHw5I8Zn72BZdZsE3lotA8LgOn+F/FTMk9nrv 9KxZ5O1B2KIOg03t0Ucskn7G5fkoq+BtyqrW3+fLAixLSEFUAaG+5CyVi0KUfCFbfBdC tRPw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=UICwrgI9; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a68-20020a509eca000000b0044f2fb68fe6si9136295edf.495.2022.10.09.23.30.52; Sun, 09 Oct 2022 23:31:21 -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=@intel.com header.s=Intel header.b=UICwrgI9; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231596AbiJJGM5 (ORCPT + 99 others); Mon, 10 Oct 2022 02:12:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38004 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231218AbiJJGMz (ORCPT ); Mon, 10 Oct 2022 02:12:55 -0400 Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EC4504598D; Sun, 9 Oct 2022 23:12:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1665382374; x=1696918374; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=H643CzjwglCD2im/BP3mUFP7xikWejGDiUrJCN9KSGM=; b=UICwrgI9KMC7XsFLPs4rv4XatylgUPvcfJsIHpiEOYNaVdo+2V9BUodl yVDVPPJiAPXKUPwdb8S0csl4bc5Er+prujU1jBSN9D04VUVeAjBiMncrs JeacW6olu+40/yTZyr4a/YZAR0b0f5ruFt4a1fraLHqQLc8Zas73qAvQa H6cfQ34DhqPPBA5ifGIdadsHzUa3OOJurboeMjVgJA3Q4UebJhVZfAZ6N r2jOqR7orWzG01orb4TjF+Rhr5bEI7CSU6tYKHfRWUXWnyQ+yb/F2QW56 6z0uY/A5I07dknwzm8s7UzS0K80BBst/mobxVMmdd2s3JLhDxAQF8CMrH g==; X-IronPort-AV: E=McAfee;i="6500,9779,10495"; a="301760176" X-IronPort-AV: E=Sophos;i="5.95,173,1661842800"; d="scan'208";a="301760176" Received: from orsmga005.jf.intel.com ([10.7.209.41]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 09 Oct 2022 23:12:54 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10495"; a="800971680" X-IronPort-AV: E=Sophos;i="5.95,173,1661842800"; d="scan'208";a="800971680" Received: from smile.fi.intel.com ([10.237.72.54]) by orsmga005.jf.intel.com with ESMTP; 09 Oct 2022 23:12:51 -0700 Received: from andy by smile.fi.intel.com with local (Exim 4.96) (envelope-from ) id 1ohm1x-004kBY-1y; Mon, 10 Oct 2022 09:12:49 +0300 Date: Mon, 10 Oct 2022 09:12:49 +0300 From: Andy Shevchenko To: Matti Vaittinen Cc: Matti Vaittinen , Jonathan Cameron , Lars-Peter Clausen , Rob Herring , Krzysztof Kozlowski , Jagath Jog J , Nikita Yushchenko , Cosmin Tanislav , linux-iio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [RFC PATCH v2 1/5] regulator: Add devm helpers for get and enable Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo X-Spam-Status: No, score=-7.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_HI,SPF_HELO_NONE, SPF_NONE 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 On Mon, Oct 10, 2022 at 07:13:23AM +0300, Matti Vaittinen wrote: > On 10/6/22 19:17, Andy Shevchenko wrote: > > On Thu, Oct 06, 2022 at 05:36:52PM +0300, Matti Vaittinen wrote: > > > A few regulator consumer drivers seem to be just getting a regulator, > > > enabling it and registering a devm-action to disable the regulator at > > > the driver detach and then forget about it. > > > > > > We can simplify this a bit by adding a devm-helper for this pattern. > > > Add devm_regulator_get_enable() and devm_regulator_get_enable_optional() ... > > > (cherry picked from commit b6058e052b842a19c8bb639798d8692cd0e7589f) > > > > Not sure: > > - why this is in the commit message > > - what it points to, since > > $ git show b6058e052b842a19c8bb639798d8692cd0e7589f > > fatal: bad object b6058e052b842a19c8bb639798d8692cd0e7589f > > > > > Already in Mark's regulator tree. Not to be merged. Included just for > > > the sake of the completeness. Will be dropped when series is rebased on > > > top of the 6.1-rc1 > > > > Ah, I see, but does it mean the commit has been rebased or you used wrong SHA? > > I did probably cherry-pick this from my local development branch and not > from Mark's tree. Sorry for the confusion. I thought people would ignore > these first two patches when reviewing as was requested in cover-letter. The solution as pointed out by LKP and which will removes the need of the noise in email and a lot of confusions is to use --base parameter to the patch(es). -- With Best Regards, Andy Shevchenko