Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp1013221pxj; Thu, 27 May 2021 17:54:39 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwKqgSijUnYGODXpNmvzIxmPMcPyYNCUiRQoRDK28f6V/6m54whSRn8bheLCPSJzKEQlEZN X-Received: by 2002:a6b:d103:: with SMTP id l3mr4920230iob.159.1622163279758; Thu, 27 May 2021 17:54:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622163279; cv=none; d=google.com; s=arc-20160816; b=xtuaHNQGxc7bPiChaxcte5pBH2Kpg4Rv1U7FT3VoSNbJAwA78h76NlIs9YRwWV4nV6 cjveviwCb2hfp9q88+0g+HWAV1cUHqV0ob4HhvbkAZ8m9bJVR8ftSNbeHnNx4KpB614b chA05ukJ+5UwqLF1noQxuxiOkuCSH4B6BDN2MUazIpZsDqI4vo02tFOZZy+YShkuvup+ N7Rh3cFN5C9pRE6r+aDIbj8mREP+yzy535YL13jCnG6e9UWKXxX87NelPqmarkEPV7mr MvmpEfGR8Dj0ZS3xUqlHHM8BW/osxi4ExVrECm7emjZl/0T3v4c71/c7HutJDUx8ulK0 MlUQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=vbX6pM+seZu9wlyfbAeur9NPZdT7LDl780JRgegZV7Y=; b=DTZFc085P2NTAKOR2qWaxSTkhjj6HI6XzbvpUNUn871KAFnkHEcQDaPvsBugVYiAoc PP4U6nxESJyJVKxCHlVPPM3LcU6SE7mJiqCM/IAa29ntxEzjQa9y22wePBYoBLymQU/m NEOjJQligG46HZdsIGJdaQkPIQqeB68mPqNIqp0lLSqfElFKU4ulTovahDAyNqCn9pNQ 4iQLv24mNoSZ80VipNN+e66lt+5NAE8qi2cjUxskTLnDfIHpyE+21rwb5d8is4wNvMPp pXGEza7UTZBLoVSzuS8FHEfAuBgyrlVlK/VOaAyQCpIvt5oHmo8jlWziTggngu6wq7gH 0qmg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=GFq0cmtE; 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 l11si4717632jak.61.2021.05.27.17.54.25; Thu, 27 May 2021 17:54:39 -0700 (PDT) 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=GFq0cmtE; 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 S235763AbhE1Ayy (ORCPT + 99 others); Thu, 27 May 2021 20:54:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48348 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234783AbhE1Ayx (ORCPT ); Thu, 27 May 2021 20:54:53 -0400 Received: from mail-lf1-x12f.google.com (mail-lf1-x12f.google.com [IPv6:2a00:1450:4864:20::12f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F3A61C061574 for ; Thu, 27 May 2021 17:53:17 -0700 (PDT) Received: by mail-lf1-x12f.google.com with SMTP id f30so2854217lfj.1 for ; Thu, 27 May 2021 17:53:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=vbX6pM+seZu9wlyfbAeur9NPZdT7LDl780JRgegZV7Y=; b=GFq0cmtEv7xS+1fzxOfXQ7FjbeJRs3m631Nx2J4Cd/9cvIuSueyKLRXo2PBC92s7BO GefnKuBO6SiDsBzraZmhlg5wmODvAqPQ4OKhuhy4QiRfAxKbK8XSX/3mapffw4Hsauqj umsgZrH5g5PvNs+862RKm51R6xLlfIkYAFpM2tqbZUNg4S29CKWimpROvIv0wFoR+3HV t5lqsbfBbHkdDiFHewL1XZKrcv4ffuINTPyrKS+3Wv9XJZpqE/tcv59wP06YOjBE7YVQ 37c05LHLqvWAsTzb1zgW5AaRgODruiy5oskubd+WZhcSHw9Dg342JNDkv3qPSD2aid4e +MWw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=vbX6pM+seZu9wlyfbAeur9NPZdT7LDl780JRgegZV7Y=; b=bPHgL8KRVFIseTL5GdnQZsPll/pC7aQJhKjC/WUol0jR3uFrM6tbyMoaTqjYWwULrT 3oNtv5KX57iputUXO+1nYWDvgiuz1lrf0p96Hue1MKf/5tQzxjsj6MiBGvcHzWKuc7ZK rEwGwAQPN4xdnKmMsk6Q61+TmgwxPEZZgysfFHIivKIGsDKZ664rJqasRcWRHJZlj7GB LVPiFY4xe6gOu6nujwSI4A3ruyjLK6d9UFXADpsJ8pc21I3Fl7VbP5W8f2CoDBBV+gSO Zg8oC9kQqmsmnzi5FnuRxQ7CWPgqQktJ5YYOXQoS3Z/lZXR6aitwHxBN2+gHesogBkwf 4lag== X-Gm-Message-State: AOAM531GWANdAThFcGqz8Nl9CV4K6fZy7I6g3rY6HHBtr9LRe3ASFPWd yMmZ9B4+lctmcpQlrOjaH/5loFPjgBmr3HNjC1tkfw== X-Received: by 2002:a19:f616:: with SMTP id x22mr3976589lfe.291.1622163196370; Thu, 27 May 2021 17:53:16 -0700 (PDT) MIME-Version: 1.0 References: <0c2a8ffab666ef31f5cee50b8b47767285dfe829.camel@fi.rohmeurope.com> In-Reply-To: <0c2a8ffab666ef31f5cee50b8b47767285dfe829.camel@fi.rohmeurope.com> From: Linus Walleij Date: Fri, 28 May 2021 02:53:05 +0200 Message-ID: Subject: Re: [PATCH v4 0/3] gpio: gpio-regmap: Support few custom operations To: Matti Vaittinen Cc: Bartosz Golaszewski , Michael Walle , Florian Fainelli , bcm-kernel-feedback-list , Jonas Gorski , =?UTF-8?B?w4FsdmFybyBGZXJuw6FuZGV6IFJvamFz?= , "open list:GPIO SUBSYSTEM" , linux-kernel , linux-power@fi.rohmeurope.com, Linux ARM , Andy Shevchenko Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, May 27, 2021 at 8:32 AM Matti Vaittinen wrote: > I think that the disagreement boils down to few styling issues - and > one more pragmatic one. And only what comes to how we allow > implementing the IC specific call-backs for these more complex HW > specific cases. "Styling" boils down to providing getter-functions for > well-defined gpio_regmap properties like regmap, device and fwnode > pointers Vs. exposing these in a well-defined structure as function > parameters. Just do it the way the maintainer likes it I guess? Michael wrote the driver so do it in his fashion. > So > at the end of the day it's fair to go on in a way Michael and You find > easiest to maintain. What makes things easy for me to maintain is active and happy driver maintainers, so it is paramount that the file looks to Michael like something he wants to keep maintaining. This removes work from me and Bartosz. Maintainer style quirks are common, I have some myself (like never allowing __underscore_functions) we just adapt to their quirks and be good diplomats. Yours, Linus Walleij