Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp3935841pxb; Tue, 17 Nov 2020 07:20:41 -0800 (PST) X-Google-Smtp-Source: ABdhPJx5B3+X4v6/rpCbX+h+rt5EHzrI6tTOJpGTVxC0FvW3zRRW5bXSM0DRvTiPSPG0T0kQFmJn X-Received: by 2002:a17:906:4c99:: with SMTP id q25mr20842000eju.67.1605626441628; Tue, 17 Nov 2020 07:20:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605626441; cv=none; d=google.com; s=arc-20160816; b=Xw7/fTD3fV1i6q5pQUxNog8cO/EiqHsRaTMiCOUCcMd9hMBHVg22jiWzRAOkWZSFc1 gWX3H51hqTaXhE2kQWlc+H/+QS663WJpCIeG/2KwsWee7x+yKzvwjvlpjuycwMjKtFpm KJiYUolVcK9A2NBGJHYUbmBegILiGDgHthMk8hQdFczjH/PEt4un9ks9+uHddID15Zis MCO50nBLKgquBFddahvvH0if+lgpxmwkviSCudrTtsK5nsXNK2Zyc2thiQwOzF9WZgNG ej4yDoz/8JRevoPUJgFaRwoUpWXllfBg1S3LIPjBi/YsVVwIPeRmo55klFJRsFLU6Ult S8Ow== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=/gRT7DCZRAs7WkGjd79rZ+jaFHWSdQwkgcdc9HOkaGU=; b=Uu9NtwWaXJHBMZ/PvJLTOxHThA6CMBoloUDvbxobxLxVGIE3VkZCRxXz/NuyDHsSG8 0aU4+nNcHM5PRstnmqmueG77UtNQ3NOrqe0t8JwHm0QzOomVWSQNltEfGU8FC3XRY7Xe ydEp7mexWU559d30tLNBqppbnGhfqWXxwvgtUG/dYzHGyJj1t4mPYmaKafHcC5Z4AOlJ s1+YQCV8UOKQ4p9cTcwDgKZLh2vEOQ3i5w4hTvGGuFXzJij+36waiagxXBKeQjc6g1X8 QpZtLOlOMit4b+optaoS/0+uRnuTCvx4bI35MQukE56Llae7VClRlj497UDMaIDR/yhn H0DQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="jZ/Zpeqk"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a17si13667157ejd.500.2020.11.17.07.20.17; Tue, 17 Nov 2020 07:20:41 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="jZ/Zpeqk"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S1730712AbgKQPRz (ORCPT + 99 others); Tue, 17 Nov 2020 10:17:55 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49220 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728855AbgKQPRy (ORCPT ); Tue, 17 Nov 2020 10:17:54 -0500 Received: from mail-wr1-x442.google.com (mail-wr1-x442.google.com [IPv6:2a00:1450:4864:20::442]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6AC7FC0613CF for ; Tue, 17 Nov 2020 07:17:54 -0800 (PST) Received: by mail-wr1-x442.google.com with SMTP id m6so6360698wrg.7 for ; Tue, 17 Nov 2020 07:17:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=/gRT7DCZRAs7WkGjd79rZ+jaFHWSdQwkgcdc9HOkaGU=; b=jZ/ZpeqkBpBc9230T6VHfN1GV9J6RTOUYGwJ0rAkQTv/oaBJgTD4C/kH4bJh/z3XYn xUdkpcKyPPi3+Lopyw0E6KBexuivDeIHfPQuBQdyBhOqWrZLY54RZ+aA340ZQatHxDr9 RGZe/I5RpyEergoZUVbjdbDkBzT0k4/bK+xlUER+k3b7lR/lb5+7cprJRHxSisGwz5YC b8SttCqEIP39iNOY5XeilFut8K4hBKyUDCUJLxqPd0C+SauHyM30lkWb9giwQEQRBl7E QLWcbzG0QC9qbvdBtCXmVSnX+qHIFys5/Pb0D3AzA7ZhmDHB1bHy7qa+X5WCiYLEOS+f k6xw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=/gRT7DCZRAs7WkGjd79rZ+jaFHWSdQwkgcdc9HOkaGU=; b=W6iyMq7BlicloisXfX6HLiSGZXAni4NMt3dNg9WU0EQQ01aBc4UAaDVYJxBNZnvBTM rAAM37DDILckgRKKK34y15u4536O2flogM0nOgKz9u34fG0c+jFZ7d1bUYGHtafb+lCn h9KXvrYIK5vAwB0F2mhLGa5p+RGGEyeXXCXouQH4NGZBuKyJz/YgP0cI4eSh6wpl5fL5 5tsCKcghYSKdN5JmutCzHH7/rlRmV2Bqa9Y/sLV+9EB8oq8/0dBEdrSog0QxMmsynInp a6XQRTSygXT7RZxiqSLpjtUF1SI0uyp6MmV/V2fYfmV35LMm2HaxzB4oOJGLSv0Orm54 niMQ== X-Gm-Message-State: AOAM531I64WppgZJHrCJS+2Ti9k2EWKGqop614wIJ8X2oRccgRkihKzu ncXUNAmwPmIwikxworRsH68= X-Received: by 2002:adf:e74d:: with SMTP id c13mr26678420wrn.277.1605626273150; Tue, 17 Nov 2020 07:17:53 -0800 (PST) Received: from ziggy.stardust ([213.195.112.112]) by smtp.gmail.com with ESMTPSA id f16sm28505102wrp.66.2020.11.17.07.17.52 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 17 Nov 2020 07:17:52 -0800 (PST) Subject: Re: [PATCH v2] mfd: syscon: Add syscon_regmap_lookup_by_phandle_optional() function. To: Lee Jones Cc: Enric Balletbo i Serra , linux-kernel@vger.kernel.org, Collabora Kernel ML , Nicolas Boichat , Arnd Bergmann References: <20201110161338.18198-1-enric.balletbo@collabora.com> <20201113101940.GH3718728@dell> <20201117123741.GH1869941@dell> From: Matthias Brugger Message-ID: Date: Tue, 17 Nov 2020 16:17:51 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.4.0 MIME-Version: 1.0 In-Reply-To: <20201117123741.GH1869941@dell> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 17/11/2020 13:37, Lee Jones wrote: > On Tue, 17 Nov 2020, Matthias Brugger wrote: > >> Hi Lee, >> >> On 13/11/2020 11:19, Lee Jones wrote: >>> On Tue, 10 Nov 2020, Enric Balletbo i Serra wrote: >>> >>>> This adds syscon_regmap_lookup_by_phandle_optional() function to get an >>>> optional regmap. >>>> >>>> It behaves the same as syscon_regmap_lookup_by_phandle() except where >>>> there is no regmap phandle. In this case, instead of returning -ENODEV, >>>> the function returns NULL. This makes error checking simpler when the >>>> regmap phandle is optional. >>>> >>>> Suggested-by: Nicolas Boichat >>>> Signed-off-by: Enric Balletbo i Serra >>>> Reviewed-by: Matthias Brugger >>>> --- >>>> >>>> Changes in v2: >>>> - Add Matthias r-b tag. >>>> - Add the explanation from the patch description to the code. >>>> - Return NULL instead of -ENOTSUPP when regmap helpers are not enabled. >>>> >>>> drivers/mfd/syscon.c | 18 ++++++++++++++++++ >>>> include/linux/mfd/syscon.h | 11 +++++++++++ >>>> 2 files changed, 29 insertions(+) >>> >>> Applied, thanks. >>> >> >> I've a series [1] that's based on this patch, could you provide a stable >> branch for it, so that I can take the series. > > Why can't you base it off of for-mfd-next? > > https://git.kernel.org/pub/scm/linux/kernel/git/lee/mfd.git/log/?h=for-mfd-next > I can do that, if you are willing to not overwrite the commit history. In my case it can happen that I drop a patch from my for-next branch as I realize that it e.g. breaks something. I think that's the reason why normally a stable branch get's created, as the commit ID won't change although you change the commit history of your for-mfd-next branch. If you want to go the route for me rebasing my tree on top of for-mfd-next then I'd like to have at least a stable tag, so that it will be easier to provide the pull-request later on. Would that be a compromise? Regards, Matthias