Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp3968747pxb; Tue, 17 Nov 2020 08:07:02 -0800 (PST) X-Google-Smtp-Source: ABdhPJxLMZwyWud7W+2sPZ6nMtxUDNqWBFY15BsgAWx0b4PSaHgM9c6VlWJC5UuTZhqwfMdqbHSx X-Received: by 2002:a17:906:b783:: with SMTP id dt3mr19549262ejb.534.1605629221899; Tue, 17 Nov 2020 08:07:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605629221; cv=none; d=google.com; s=arc-20160816; b=A3QiM7eAEs4eqinyf9sePFyB7rGgb6y1iz43bqActEWLkdJKyp8bPZlM/2mhx8c4rt IZkPaN1lBF0tmGulYwkKfrUsD2D5kMcooxoYC6q3XAfTB1dZT7xHFeZ6M2Et7Uvp4x6O jWGxSk9gJyvPzOfA7poBC7v/mN+7CxF+bXQOERW31eSj2XBTEm0EyuEHZeZNg4KCk5dX AytNmqbRkTOdrQwTm5vc458XsZ6zJBBGxWj1xFOUMcvPtVIsVokQOpOG37wShpWa1eVn MLWy61S29HmAqW/l1Jb1O1LbSaOsnW5UjMuyiXQ0K6kyP5gZqVkosb5lAjSPpk9Jf17d xJNQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=eeHttLgR79pcdp9MMr/QfOUcrgRAzex1AqWx+Q75Fcw=; b=NFpwUV/GEihZc58SPlUJgkxhPXh794MCdE1Uf9ZcbElzVY0vVP2kXtK8zRsYf6TQb6 LMX7KfEK8iCCA5brU68vWRH7/PEXXeVY4vyRQIevc7xp/ES2wEjQC8i8fcyF3Fo+b/Ce /6oV0BM0AFZQtErYp+f+yz0DobWpofwXz4cs+KYN17fs/ZM2cpvb8IGyQMiP9sBkRd2c /1gRsTToeZ9i31QIdhXh7EmWi/CldWgrV5BMU+kCcvdYb7eg5MH/FcwGDkgBNa69q47P 57UXQaq1KdC6k72YptI1BmcksvdAKTdTb7DwHYxVm7QwlAXAtXjSwISLOOq1O1cxBpw9 NSlQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=o+0axMYg; 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=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g21si14097510edu.395.2020.11.17.08.06.38; Tue, 17 Nov 2020 08:07:01 -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=@linaro.org header.s=google header.b=o+0axMYg; 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=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726929AbgKQQFG (ORCPT + 99 others); Tue, 17 Nov 2020 11:05:06 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56536 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725767AbgKQQFG (ORCPT ); Tue, 17 Nov 2020 11:05:06 -0500 Received: from mail-wm1-x344.google.com (mail-wm1-x344.google.com [IPv6:2a00:1450:4864:20::344]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3DF71C0613CF for ; Tue, 17 Nov 2020 08:05:05 -0800 (PST) Received: by mail-wm1-x344.google.com with SMTP id h2so3778069wmm.0 for ; Tue, 17 Nov 2020 08:05:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to; bh=eeHttLgR79pcdp9MMr/QfOUcrgRAzex1AqWx+Q75Fcw=; b=o+0axMYg87OlMQK+SQlz3DpQV+Qp9LXbvtweaiFGcpijjHCCKCsOFpS7Dx9iByn18w FvCU2w472NopCnEBQhJP3Yydj2MryLjNEMjsJN+G3M6nYKVL0VlfONdGhJHTSDl7HfiK b8Y3lGQH5o6lj1l6QlK4TnS4wEwZUWEXMqYHNMUeZykbwyDV8TdI0NfAlllJKUCBR77h srXwXLiClYt4JDSLC2TVDSOT+EILrvx448BjfHP6rJOvEpx4YJ22oL7kNSA65+6iF3C/ N+4hKyKAdAoxVucdcSnWAE4XUnuiTjaHfRiKT0P6oA3kSDEox7E4zfvvI2jvKF90T30o PmZA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to; bh=eeHttLgR79pcdp9MMr/QfOUcrgRAzex1AqWx+Q75Fcw=; b=Yq9gUegfpGIOutd7hSXRMkYZ5EkiF9az7AKchrQ2qrIhGdzY2f54TFqThoGVm5V/BP A7KpwozPyUGm2EpEV++CM8++DQpP/3iDudUgF3iBa/UpVEru5y2+LBdDagw0hFEE7gdD GfdOp3HHQJryShFcfzpPzgAOFBrc43UkbCeQgIYXv2HNo+z0yZDkeDh5+hTg03RSxYcF sci1U6mBs/AE8ZNReTchVARh9SrcbjRieyLysKNvTSNR5E4lR6ayGFdsK/2EAjeEWivR qLomAIakBBMIAQqOcRcH5w0OtJreaqKOhmtimb5Q8d5ZivTpNUAfowtP/i6j35Spn46r np5g== X-Gm-Message-State: AOAM5334FDQCUdHJo/0HydXze/ccS5dtM80R9m6Jvr9g3KZPZ+lpLt5W dQMjrYARbY9JpDQlh27++4c2GWqfxiFGAPAH X-Received: by 2002:a05:600c:255:: with SMTP id 21mr351246wmj.69.1605629103973; Tue, 17 Nov 2020 08:05:03 -0800 (PST) Received: from dell ([91.110.221.159]) by smtp.gmail.com with ESMTPSA id m3sm24339559wrv.6.2020.11.17.08.05.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Nov 2020 08:05:03 -0800 (PST) Date: Tue, 17 Nov 2020 16:05:01 +0000 From: Lee Jones To: Matthias Brugger Cc: Enric Balletbo i Serra , linux-kernel@vger.kernel.org, Collabora Kernel ML , Nicolas Boichat , Arnd Bergmann Subject: Re: [PATCH v2] mfd: syscon: Add syscon_regmap_lookup_by_phandle_optional() function. Message-ID: <20201117160501.GJ1869941@dell> References: <20201110161338.18198-1-enric.balletbo@collabora.com> <20201113101940.GH3718728@dell> <20201117123741.GH1869941@dell> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 17 Nov 2020, Matthias Brugger wrote: > > > 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? I don't usually provide immutable branches/tags unless I'm sharing topic branches for other maintainers to pick-up, in order to avoid merge conflicts. It's highly irregular (in fact this is a first for me) for a contributor to request one to base their work on top of. -- Lee Jones [李琼斯] Senior Technical Lead - Developer Services Linaro.org │ Open source software for Arm SoCs Follow Linaro: Facebook | Twitter | Blog