Received: by 2002:a25:ef43:0:0:0:0:0 with SMTP id w3csp824653ybm; Wed, 27 May 2020 08:53:13 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzRmGGiBKBmzDyAuAHJqE/YTOKbe2d3VTJINZ8PJzZImhZQTqnamfPEGO71j4rPyvM9i+CE X-Received: by 2002:a17:906:b31a:: with SMTP id n26mr6567056ejz.441.1590594793343; Wed, 27 May 2020 08:53:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590594793; cv=none; d=google.com; s=arc-20160816; b=FYGu3lnfiR9ZGkcVlxyGvYfeBa/I+oiV8WmqD3rpZypXudRQBZkTvHxve2/3BGYQni PLj19wHCWuCbkflAmmmoLcM0vMs8C7RcqxPQYd73JXCzKBbDeVHBtmqy/9ItaBvJvmiw 1BZq6xzcYFt1L5RJr4doyhebn2TtdURVLuBXKbqBnKbRfBgq1PrSxkJL1BjNapRCgpR5 LZPrpUHV0YHRg8m7QLjsiuINNS9ILMYweE8XnKm3BdD/opXRoCNsEP2TmCTvMU1HRcOa TawekR21UASBB8CTitZLPHr+XMo6zZYhV2hRzot2pC3HwnXPFN/YAk/g0C9hoGks/syX 7rCQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=KV6zG4cB1TmvCG+onKER+oAfw/b83fhJrAY9mKJ4IX4=; b=r233n6ByD4R5m4XH8w+9L4u6RDPPdVBxJT3x1v3Ho2A91PsAd9YqaMjA9cby/lr3zz pU6LixtkNMyXJoggy+Dm3QyY8y+NKv+8ZbwvQGeP9hWLiNo8ZxvH4CNvhtF/5RkzhxGU Q1ci5Tlg6LvYtw6Z5VdVmkRfe3YlzHKoWYYL0/cxMwqw4WNLFTmLwsAppbSBOG03kNWe GwKnKJvlXFftWuqbtCMx23BL+ecakQG4gyPADWExDL7/Gvr82bvbnZ7lyjiIsLLi1BAm LcHVRFvV5PKKEGy4ARg2+sPWosflu3by5Ea8CBdwDrzCO/QBtz8wuVIysFk1zl1UzaKa l8qA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=kEdFbISx; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ny24si2167268ejb.445.2020.05.27.08.52.49; Wed, 27 May 2020 08:53:13 -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=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=kEdFbISx; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730275AbgE0NUe (ORCPT + 99 others); Wed, 27 May 2020 09:20:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33646 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730258AbgE0NUd (ORCPT ); Wed, 27 May 2020 09:20:33 -0400 Received: from mail-qv1-xf42.google.com (mail-qv1-xf42.google.com [IPv6:2607:f8b0:4864:20::f42]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 41116C08C5C1 for ; Wed, 27 May 2020 06:20:32 -0700 (PDT) Received: by mail-qv1-xf42.google.com with SMTP id z9so11065232qvi.12 for ; Wed, 27 May 2020 06:20:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=KV6zG4cB1TmvCG+onKER+oAfw/b83fhJrAY9mKJ4IX4=; b=kEdFbISxbLAlPlOnpWxFL041LUl3yybQwYa8/qJu8zfW/RMBvv95nieJdalNvuqmtB K4B0VQ2ac6lOYqbG4+P6tmbToSbSkL7l9znId/SY95HKrXBqJpgDPugxuBh8pe+/wQS7 pCn3ui+rJ6v+DN2mtdfnKC+nAF4JwecNz+rs8jn+99lAOp7IolN0Uhqq4iwJI3jo+Hq/ 70lMSRPSD1jkjdpOj1cGufOdYPb/aHCnki+YR9qxBO25C1wxrxx/s9OvzSCss6CDtXpC p1vgiPDXuzT3T5ZwbeFR/u93j1s7Ltjc8VV1IN2eJe4weXd26qlRF06/2OsXIRFMh8oq V2MQ== 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:content-transfer-encoding; bh=KV6zG4cB1TmvCG+onKER+oAfw/b83fhJrAY9mKJ4IX4=; b=JR1btOUq8cjAPpg9OBrExVqN1XPVbpjF69mu9Qt9FF5X1NscUOuZhY7iez+nBQuUH/ op401dlhLJ5UXeJMttUsEpo8zMM+yHGSNfK6TTJ20jMmOnLO5IIhVQHmtXSvJUB+sbp/ 57kx6JGeCce1Vac73dJKA128ZD0lUHXcUlzndjy6xRRgiOMOBtuhjjYXHHrWVAXAZmWt q8OqyFf0wnh4FNGPexnStTzJNBUF02nIgneKtWt/b8Ve69PPYkA9T9+ody0wPK7+aXMD tNsyCqtDNSRxiSgBnNZq8lhtlG4PEiSSInZpvgIx3TfaSrvWnWLp/kdghxccOT37w2KT CPdg== X-Gm-Message-State: AOAM531DdLU7JHtBrQuK0eJUiz5mq9xcpVP8/Z7pwns9DJ/PVKlg9lxP Fxz8gB1kF1LeDwuYdWNsAFT5rzNqI5eTinVbZvn2zw== X-Received: by 2002:a05:6214:1506:: with SMTP id e6mr25590948qvy.61.1590585631524; Wed, 27 May 2020 06:20:31 -0700 (PDT) MIME-Version: 1.0 References: <20200525160741.21729-1-michael@walle.cc> In-Reply-To: <20200525160741.21729-1-michael@walle.cc> From: Bartosz Golaszewski Date: Wed, 27 May 2020 15:20:20 +0200 Message-ID: Subject: Re: [PATCH v4 0/2] gpio: generic regmap implementation To: Michael Walle Cc: LKML , linux-gpio , Linus Walleij , Mark Brown , Pierre-Louis Bossart Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org pon., 25 maj 2020 o 18:07 Michael Walle napisa=C5=82(a): > > This series is a split off of the sl28cpld series: > https://lore.kernel.org/linux-gpio/20200423174543.17161-1-michael@walle.c= c/ > > I wasn't sure if I should also include the gpiochip_irqchip_add_domain() > patch here. So feel free to skip it. OTOH if you use interrupts with > gpio-regmap it is quite handy. > > For an actual user see the patch 11/16 ("gpio: add support for the sl28cp= ld > GPIO controller") of the series above. > > Changes since v3: > - set reg_dat_base, that was actually broken > - fix typo > - fix swapped reg_in_dir/reg_out_dir documentation > - use "goto err" in error path in gpio_regmap_register() > > Changes since v2: > See changelog in the former patch series. > > Michael Walle (2): > gpiolib: Introduce gpiochip_irqchip_add_domain() > gpio: add a reusable generic gpio_chip using regmap > > drivers/gpio/Kconfig | 4 + > drivers/gpio/Makefile | 1 + > drivers/gpio/gpio-regmap.c | 343 ++++++++++++++++++++++++++++++++++++ > drivers/gpio/gpiolib.c | 20 +++ > include/linux/gpio-regmap.h | 69 ++++++++ > include/linux/gpio/driver.h | 3 + > 6 files changed, 440 insertions(+) > create mode 100644 drivers/gpio/gpio-regmap.c > create mode 100644 include/linux/gpio-regmap.h > > -- > 2.20.1 > Both patches look good to me. I'd say we should apply them now and then fix any potential problems during the v5.8 release cycle. It's not like it's a user-space facing, stable interface, we don't have to be super careful when merging this kind of stuff. Bart