Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp479016rwi; Mon, 10 Oct 2022 03:15:37 -0700 (PDT) X-Google-Smtp-Source: AMsMyM423sV5xIuxnhIPrdHA1bD5am5hRZIRkEVeTuR16eRVmu7pB6YM5RHEvWADBSRj7LU0mEFs X-Received: by 2002:a17:903:2284:b0:180:289f:7f09 with SMTP id b4-20020a170903228400b00180289f7f09mr15750902plh.120.1665396936912; Mon, 10 Oct 2022 03:15:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665396936; cv=none; d=google.com; s=arc-20160816; b=YimiZvy8AwLOk05GQXMhfML/DwYGlEEev47Bmt588+nUWlxDPtt9vi1TBO5HRDCC82 of9oVYgYMwobX7r18/gYyJze0MghRuyj5/WxwfqY/EAtAkfS+RN+rnhfbRFrjRGs9oF/ Ds+yw4JBBySLU+vdAC5W5CEcXduW6HgETv6KaurB61872BrIZZszjJSXPEXOuNO2MbKX 3E6TbHaLk9cOIcHKHaRhhJTLyhMM/WgFK6hz47LYe4PgvzJVEcF5fnzDUTPNnLcmfRpn e/5m9ZRCq/TwnlvUKJi2z52n+zHAh1I+wn8pgnXVb29oGV8UHopRpIRu9yeSAn8zxE3U khWg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:subject :from:references:cc:to:content-language:user-agent:mime-version:date :message-id:dkim-signature; bh=l/DdtKBK8Ea5+VN0mXaZrTh/hBVD5+pyM/7jGTjhoig=; b=u/00Y9uGgsN9rMiNdVo4ZoZ71s38UMUm0CWtnFocNb8g3plsJd9mmnt6JGiOh5JJB2 naJ5NM94Uw+lT4+6M3NdM1lpAHc2Mm/SPgmn9+1IBbCQ0Bei0Rm+mbPlKB94SZJJraXV 7eON8nkU/WzmqcoL2hIgrTiIWegHD7ZK0+CpzDWT+tNxT+fXKUTCtA364RGjIGxhBk1O RxQITUcLoZVTzBRzzPpjb/uhw3YVq3AsYtUa8cJTAlIYnbpA6Ys5YMXvG6gfLP/5eFwI LQER4Zg9XH4VN3Q/vKwnX7IX0DmAhIWMGMkA6LiEDCvF6DSJV1ExoO9UqK+zmtc69ur/ 8NcA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=HujBLzhj; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u5-20020a170903124500b0017f7fa141f2si14399186plh.583.2022.10.10.03.15.17; Mon, 10 Oct 2022 03:15:36 -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=@gmail.com header.s=20210112 header.b=HujBLzhj; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231683AbiJJJZJ (ORCPT + 99 others); Mon, 10 Oct 2022 05:25:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45694 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231630AbiJJJZB (ORCPT ); Mon, 10 Oct 2022 05:25:01 -0400 Received: from mail-lf1-x131.google.com (mail-lf1-x131.google.com [IPv6:2a00:1450:4864:20::131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D1170233; Mon, 10 Oct 2022 02:24:57 -0700 (PDT) Received: by mail-lf1-x131.google.com with SMTP id m19so14353695lfq.9; Mon, 10 Oct 2022 02:24:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:in-reply-to:subject:from:references:cc:to :content-language:user-agent:mime-version:date:message-id:from:to:cc :subject:date:message-id:reply-to; bh=l/DdtKBK8Ea5+VN0mXaZrTh/hBVD5+pyM/7jGTjhoig=; b=HujBLzhj+VC8EoLwH8A8tX091NOHhdMVcNKd8PQ3FEfNST49QXU6o816l3ZbldRsF/ 4DUtXnpznZMN4Ay4Xv3c2NL0czEl/SGVF8LzCMAAw9FCkb6zVcdsZST+baFCQ/lq3QTb 02JTQcxNYYglc5BDEs/WK8TgBreC0d6PSq3A2gXSYmAkgmrsNx9JJl7iiXvpJz/X540C frvaxkZkjwkwAV1M8cYSir4+hkeY53apjgd919ctUnLWdh/wqpsqiakMz7tP7h/KSfUb AdQAkLKVbNITv2tgyw5mT/252EXiyS2n5ETCjX0TXyORFG3ZUrHlzu18ivWoCAOGJndE OBpA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:subject:from:references:cc:to :content-language:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=l/DdtKBK8Ea5+VN0mXaZrTh/hBVD5+pyM/7jGTjhoig=; b=60+EEloKznVsFsVj+WgI0JuAAYb4WMh2PvUZbsj8LsOZo01VPZlHo+Z+Vozis7a9Q4 Xj0JELHr2VLrFvSDNrKFC6sjJLXrjv2n+6mKmgN1fa4/ZyFXVJOKr3PktXI9TmlvbNlv M9LefFTp8l8pnwgRmoTZABm3UaJNVkoyr/JyyYPNCtBfBixQR0s/Q2ms54sxKL1GJpRi zgOiKhwglGPUQAPaAaKft6QP5lE0DTJLthCI9sRR829QOj/j8BsvF85Ptrv5iPhROlX0 QVMScwRG/jeP/GgjvdVKlHHE8fEj7o3W5V1u3S4N8M1C/f6hQ2hm8viUrea2sEoWg5HX 1nHA== X-Gm-Message-State: ACrzQf1P5vC80RMHXAo28UhOIY388OIp80qRLzwZ27BE7kR2QroljFMO nR/MECiXR+JjRI1kr01MvhM= X-Received: by 2002:a05:6512:557:b0:4a2:7765:3324 with SMTP id h23-20020a056512055700b004a277653324mr6895777lfl.156.1665393896022; Mon, 10 Oct 2022 02:24:56 -0700 (PDT) Received: from ?IPV6:2001:14ba:16f3:4a00::1? (dc75zzyyyyyyyyyyyyyyt-3.rev.dnainternet.fi. [2001:14ba:16f3:4a00::1]) by smtp.gmail.com with ESMTPSA id 13-20020a05651c128d00b0026dfdcbccdasm1601331ljc.14.2022.10.10.02.24.54 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 10 Oct 2022 02:24:55 -0700 (PDT) Message-ID: Date: Mon, 10 Oct 2022 12:24:51 +0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.3.0 Content-Language: en-US To: Jonathan Cameron , Andy Shevchenko Cc: Matti Vaittinen , 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 References: <20221009132421.6e472385@jic23-huawei> From: Matti Vaittinen Subject: Re: [RFC PATCH v2 1/5] regulator: Add devm helpers for get and enable In-Reply-To: <20221009132421.6e472385@jic23-huawei> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,NICE_REPLY_A, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS 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 Hi Jonathan, On 10/9/22 15:24, Jonathan Cameron wrote: > On Thu, 6 Oct 2022 19:17:39 +0300 > 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 > > These are now upstream in Linus' tree and in my testing branch. > I'd not normally advocate working on top of that (because I rebase it), but > if it is useful for this series go ahead. Thanks for the explanation :) This series will conflict with my fixup series for triggered-buffer attributes. Hence I though I might combine these two series into one if I need to respin the fixup series. I thought of using the v6.1-rc1 when it is out. (I think the 6.1-rc1 should not be that far away) OTOH, I just read your another mail which told that there will be one more driver which will conflict with the fixup coming in during this cycle. If that driver lands in your tree before the fix - then I guess I need to rebase the fixup series (and maybe this too) on top of your tree + add conversion of this new driver. I don't think that would be the testing branch though(?) Yours -- Matti -- Matti Vaittinen Linux kernel developer at ROHM Semiconductors Oulu Finland ~~ When things go utterly wrong vim users can always type :help! ~~