Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp979500pxv; Thu, 1 Jul 2021 13:58:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzAoVq+4AMi1rn6HN7i7TT0x83tmVleOOIS6WRUW8GOjPVaRx81KNkRoCCWpiETekmLgl4I X-Received: by 2002:a6b:8f8d:: with SMTP id r135mr1051543iod.67.1625173096613; Thu, 01 Jul 2021 13:58:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1625173096; cv=none; d=google.com; s=arc-20160816; b=hhaXZ3xxDmj6ervlNx71OeEG+gKJ0lPW9OTZ8X962WDko61WKi//f4ad2oAbXI2PF6 1bjn/OmXFfxQ34mf6Q7fwagpuPTP77RWVmmOZguKx/CRfLZnkvW75dFn8mR7DF3xfUew 7DTLxQzpQafSvx4FYHJd2oKsPsBCf7RoQFkPNQpTJ7+7z7hreND6ICx3SOGErhjzZZAc H+8vgZC3DN3g2ykfLv1lilczxF7nyPN1j9nm5Yc1v8mKHjBNrs88kzysTPd7K2S28IYT Jd49k53+UgOvSAZfqfqvn58FDg3EYxcOPfMKst5nj/fvQyc7jH3ragn6zu8JZ7FnkKdW JJ2g== 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-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=OJw8rDzzQy3DhiLUvJQW+Qdo9Q9Meb8jwgwdAgUtwaA=; b=dxPRc9vwqU/y0HtHzQNfNSIC3Zxk/9RC5r3zfWdl+iQfpoCuJc/rtxpnWEIagj+uOB ErEhGzSRcH5g/V/ojTfVq9hbYLbBpunqwIEGK9UoNFh8KJdFs41Bs2pht8fAly7pKIOa WoqpGNlPOlYdznd8Df6ADA/Pgj5xo0ZP63V0wc2iFMrrLi6ysZy8VKf7BwyFE67A1Z5u 6nlZsO/fE6ZHPdbVSSjDLanGbEaEp4l10UVUEZ728ncFUqA0ygKTmTNsaMZ1bZ4v6HRK PrHhhDikQiAH5dFJgDsV5S9ks/5TfBqLtiop9ggI2bGzZHPip3u8Mf25TvAgH6wkyIlb tnyA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@beagleboard-org.20150623.gappssmtp.com header.s=20150623 header.b=tjNf5cxi; 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 w19si1110592jaq.11.2021.07.01.13.58.04; Thu, 01 Jul 2021 13:58:16 -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=@beagleboard-org.20150623.gappssmtp.com header.s=20150623 header.b=tjNf5cxi; 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 S236492AbhGAUgK (ORCPT + 99 others); Thu, 1 Jul 2021 16:36:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58344 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236866AbhGAUgI (ORCPT ); Thu, 1 Jul 2021 16:36:08 -0400 Received: from mail-pl1-x62a.google.com (mail-pl1-x62a.google.com [IPv6:2607:f8b0:4864:20::62a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3315DC061764 for ; Thu, 1 Jul 2021 13:33:37 -0700 (PDT) Received: by mail-pl1-x62a.google.com with SMTP id d1so4341189plg.6 for ; Thu, 01 Jul 2021 13:33:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=beagleboard-org.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=OJw8rDzzQy3DhiLUvJQW+Qdo9Q9Meb8jwgwdAgUtwaA=; b=tjNf5cxiic1IPqklXIFZcopMA88yLPj7nHk9KKLZZCgnA0o/97EhJzWO3mqfHkg89j kAvRHnAzxJSzeRsj/R1Zs/iQhGksf/npipynnWtszL2uJSpvaki4kcXwIWo7jKepEU9z AkvXC7nruuQI0yxo9nu0Zsq5lpZMHPR9eIKAo33JCgWztrDpK9LqDUDZxTKHqX79Et+0 tOVNAqJxr7h0M31yRL/TyIChS9QJCX8yhqqE2EuHgPEvtzYiYLIRGE2d9f5vgNazBLv+ /UJF+LPAjXVH2hfPv2RyTYowAdt+Bpf0XiS2sEUhUqR5QCAmXajtoo8vcnACnaYC80CW iRHw== 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:in-reply-to; bh=OJw8rDzzQy3DhiLUvJQW+Qdo9Q9Meb8jwgwdAgUtwaA=; b=PD4YZwJkgXVB89GMZKstQnXaYXR6Cox4DUm8rqh1LuqlemLKaA9DecXf/urZ6R7voT 01pVEPloPxFe+AyHKfEXDh1cBIen0q8Fvk1H64HlWLU03yfdK8DjPPj48iND+FtjKLRw g3aEEhcVbl+cFA9ofKOUDDLyVIWSnjHfJw1pS7U6uzj4JTeopMRTNqX+RtBpCA/+fTB0 mIEXGT65X3Wn8skBL1Zknu0xAdF3XeF71SLwSOwKpWwQXCxrCt3BEuEq7w9+RjRKAEXU /H5DtW9MRb0/9NCVuDz/LhQcVbyPhdb1qSk9Xh2vM9l+tHaFwa1B7p3rKq3EzZ8MgQYu AUcw== X-Gm-Message-State: AOAM533lhUU650CIFNYEhcYnQ72vN4KnDkQ0tjnhA/Aho9ih9JJ8uE4Z q9RT5vlN3STSgKsRkz703GsTMA== X-Received: by 2002:a17:902:c086:b029:129:3680:32f0 with SMTP id j6-20020a170902c086b0290129368032f0mr1419861pld.47.1625171616680; Thu, 01 Jul 2021 13:33:36 -0700 (PDT) Received: from x1 ([2601:1c0:4701:ae70:8fd:ccc0:a9a:cf98]) by smtp.gmail.com with ESMTPSA id d3sm501203pjo.31.2021.07.01.13.33.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 01 Jul 2021 13:33:35 -0700 (PDT) Date: Thu, 1 Jul 2021 13:33:33 -0700 From: Drew Fustini To: Michael Walle Cc: Rob Herring , Linus Walleij , Bartosz Golaszewski , Paul Walmsley , Palmer Dabbelt , Michael Zhu , Geert Uytterhoeven , Fu Wei , linux-kernel@vger.kernel.org, linux-gpio@vger.kernel.org, linux-riscv@lists.infradead.org, devicetree@vger.kernel.org, Emil Renner Berthing , Huan Feng Subject: Re: [RFC PATH 2/2] gpio: starfive-jh7100: Add StarFive JH7100 GPIO driver Message-ID: <20210701203333.GA963857@x1> References: <20210701002037.912625-1-drew@beagleboard.org> <20210701002037.912625-3-drew@beagleboard.org> <8c59105d32a9936f8806501ecd20e044@walle.cc> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <8c59105d32a9936f8806501ecd20e044@walle.cc> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jul 01, 2021 at 08:39:40AM +0200, Michael Walle wrote: > Hi Drew, > > Am 2021-07-01 02:20, schrieb Drew Fustini: > > Add GPIO driver for the StarFive JH7100 SoC [1] used on the > > BeagleV Starlight JH7100 board [2]. > > > > [1] https://github.com/starfive-tech/beaglev_doc/ > > [2] https://github.com/beagleboard/beaglev-starlight > > > > Signed-off-by: Emil Renner Berthing > > Signed-off-by: Huan Feng > > Signed-off-by: Drew Fustini > > Could this driver use GPIO_REGMAP and REGMAP_IRQ? See > drivers/gpio/gpio-sl28cpld.c for an example. > > -michael Thank you for the suggestion. I am not familiar with GPIO_REGMAP and REGMAP_IRQ so I will read about it. Is the advantage is that is helps to reduce code duplication by using an abstraction? I did notice that the gpio-sifive.c driver used regmap_update_bits() and regmap_write(). I suppose that is better than writel_relaxed() and iowrite32() which this RFC driver does? thanks, drew