Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp1853881pxv; Fri, 2 Jul 2021 14:07:25 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzn+Q+kvytN5zpms/ZE9wXEguyPAky3xCPIsHwOYD6I8ZxitrGzZXs05i4vl/xX/1gI5l/G X-Received: by 2002:a5e:930e:: with SMTP id k14mr1456740iom.136.1625260045415; Fri, 02 Jul 2021 14:07:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1625260045; cv=none; d=google.com; s=arc-20160816; b=cLPPtu8YdZzeTDoH7UxRQpKBZvwYmpolulbYG8/xdyNsAuwv0emQIdeBrCrt+hzYXG yAfViwep5HOgdj5E3ii6KZwQWbn8JHPgzVZmijSe+5s//GtCm4z108NvZDJljJ8ot1M/ immsO5r4qg5W37WxUZA6R1jJCc0hRTSi9iMLDRQm8UBOOLZpBkOZ6V44M8KG6A2Dqt9o kh21tWppaBzPCT/ZyIlZlfs492ow+s40wSGaRvNFvyfub0yh8IUmyuKdQQ5Xi7PUbvkl i5fdouW8N1XoBergMMz4OTNhDgd32aChLZ125rVbkUhciRHuhd3B5lDjvK17SEgXcoKq dBaw== 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=OpVpNG5PdIOsyE2/baO4DULhvG00e5R4dqnavh04Ink=; b=W/bI0ya5rmqd4V6w0CkSD+FmcI2YFF0QTrb6pwrQl6grjfPb/lY/VjsM5ODbyXdUAv Q8PTe7oyhAynWYbswwek3pietu8bkLsMtVhKU9B1LbqaE5Bxjn+1dNYF88a+QViIQGY0 Jp4y5y+tDSPaFSihPO8Nih6hAbjy8ncYg35U4hEAf3GOQfHgRq1l8s55Os/lCsu8s8RC wQADK+aiXmFL2GisMLwZhd2J0hNgqOlEWzCBV29h6AY523S7CcYItpxB5FzjnP+LexAd hclPBofRSDjcZcsAROaujS5C4Xs8gSg2otOeqRiRP7dZv/avEtMkGoVVzBnsfkXzDVbv 8jag== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@beagleboard-org.20150623.gappssmtp.com header.s=20150623 header.b=YnRY4frE; 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 p31si5007641jac.95.2021.07.02.14.07.12; Fri, 02 Jul 2021 14:07:25 -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=YnRY4frE; 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 S231803AbhGBVI7 (ORCPT + 99 others); Fri, 2 Jul 2021 17:08:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44580 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230429AbhGBVI6 (ORCPT ); Fri, 2 Jul 2021 17:08:58 -0400 Received: from mail-pg1-x52a.google.com (mail-pg1-x52a.google.com [IPv6:2607:f8b0:4864:20::52a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 88615C061765 for ; Fri, 2 Jul 2021 14:06:25 -0700 (PDT) Received: by mail-pg1-x52a.google.com with SMTP id e20so10963122pgg.0 for ; Fri, 02 Jul 2021 14:06:25 -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=OpVpNG5PdIOsyE2/baO4DULhvG00e5R4dqnavh04Ink=; b=YnRY4frEsLOR2X5JQDhXEVJjrrC12WG4u3FQOj+g2HohLvPTbY+W8HqenFA8DYsiBm Jg4IBRVzheBDrtbtPNHBP+bsXQvdg6SWTJpPOzs3rSyVQZt30juoJUu265W/K0miviaA ZSGZBPAFyJAwiDl61isghwjEA8e0uQUqhkbsfgXtoNPZit4sY2BPJJtnFZ7St/El1fXT lePrlDM2Vlc0zgdI6HJrUkJ02fYjf+hz+8TvjDTHr6fOhswBePCqVpqO+GqjrzIEiWuP KL2/npP16iMg8+YiUtwvMR8KbF+9W1KqYUUUuY8TFD2pkZ3Gaj90ggRgBJSw+K/kMBxN BUSg== 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=OpVpNG5PdIOsyE2/baO4DULhvG00e5R4dqnavh04Ink=; b=qdombCz8vdQBTJ8yuFXSh6jJ9rePNTzCHQ1dS/AeUpbgD9lStUP8qaaTqqig6LS8Fm rJ0McKwiWKvXQvCus2lPPMMsaJe5UaBCnYyWc/p5HI3voNS5NSKkNE9BJFSg+bT3l7kH TRZ2JesAsuTUxutoPS8krV31mkch1GtvRyiRhRdabfQiuGtMtp1iYrAz1CSH6Mjsgt66 5O5NRYGgVj2sVLj0VZJa50lfEmnMmAqhs8HKCPiWxB6uYx2rbvkRTWcn2QB2aL8Hwrj6 eazGNkyGdSPWCxkqvUoqM6C/jz7qsr7CphHyDFxjr5wVftZnay7XBl73zCTje1/vCgUY 1cbw== X-Gm-Message-State: AOAM5306anhXi73a1UXRlGCu+3JSTuLsQ/i4IFBsWMVPN6zXiXTtxQhU iEeS5NaKH7hn5SSBugfFiKtveQ== X-Received: by 2002:a65:4389:: with SMTP id m9mr1852746pgp.184.1625259984817; Fri, 02 Jul 2021 14:06:24 -0700 (PDT) Received: from x1 ([2601:1c0:4701:ae70:f236:257f:88f9:445e]) by smtp.gmail.com with ESMTPSA id b65sm4409256pfa.32.2021.07.02.14.06.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 02 Jul 2021 14:06:24 -0700 (PDT) Date: Fri, 2 Jul 2021 14:06:22 -0700 From: Drew Fustini To: Andy Shevchenko Cc: Rob Herring , Linus Walleij , Bartosz Golaszewski , Paul Walmsley , Palmer Dabbelt , Michael Zhu , Geert Uytterhoeven , Fu Wei , Linux Kernel Mailing List , "open list:GPIO SUBSYSTEM" , linux-riscv , devicetree , Emil Renner Berthing , Huan Feng Subject: Re: [RFC PATH 2/2] gpio: starfive-jh7100: Add StarFive JH7100 GPIO driver Message-ID: <20210702210622.GC1035183@x1> References: <20210701002037.912625-1-drew@beagleboard.org> <20210701002037.912625-3-drew@beagleboard.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jul 02, 2021 at 07:03:19PM +0300, Andy Shevchenko wrote: > On Thu, Jul 1, 2021 at 3:23 AM Drew Fustini wrote: > > > > 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 > > Seems some Co-developed-by are missing. Thank you for suggesting this. Huan Feng originally wrote the driver. Emil and I have made some changes to reorganize and clean it up for submission. Do you think all three of us should list Co-developed-by: for our names in addition to the SOB? > Brief look into the code brings the Q. Can't you utilize gpio-regmap > here? Why not? Michael Walle asked about this yesterday and it was my first time looking at regmap and gpio-regmap. I've been reading the code and it does look like I should try convert this driver over to using gpio-regmap. The open question in my mind is how to handle the interrupt type (edge trigged on positive or negative, level triggered on high or low). Hopefully I can find some other examples that can help me think about how to do that correctly. Thanks, Drew