From mboxrd@z Thu Jan 1 00:00:00 1970 From: Linus Walleij Subject: Re: [PATCH v2 2/2] gpio: Add Cadence GPIO driver Date: Mon, 17 Dec 2018 23:21:47 +0100 Message-ID: References: <20181217153652.20056-1-jank@cadence.com> <20181217153652.20056-3-jank@cadence.com> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Return-path: In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org To: Bartosz Golaszewski Cc: Jan Kotas , Rob Herring , Mark Rutland , linux-gpio , linux-devicetree , LKML List-Id: linux-gpio@vger.kernel.org On Mon, Dec 17, 2018 at 4:51 PM Bartosz Golaszewski wrote: > The driver looks good but is there any particular reason not to use > regmap for register IO? I thought we only use regmap for MMIO when the register range is shared (as in a system controller) so that some registers are for this, some register or even bits in a register for some other driver, so they need the spinlock in the regmap to protect the register range. It is also nice for shadowing/caching of register contents I guess, wat does this driver get from regmap MMIO? Yours, Linus Walleij