From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bartosz Golaszewski Subject: Re: [RFC PATCH v4 07/10] gpio: Initial support for ROHM bd70528 GPIO block Date: Mon, 4 Feb 2019 13:53:12 +0100 Message-ID: References: <5f63684b62c7a320c514088bcf9091ed7efbd2cc.1548935790.git.matti.vaittinen@fi.rohmeurope.com> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org To: Linus Walleij Cc: Matti Vaittinen , Matti Vaittinen , heikki.haikola@fi.rohmeurope.com, mikko.mutanen@fi.rohmeurope.com, Lee Jones , Rob Herring , Mark Rutland , Mark Brown , Greg KH , "Rafael J. Wysocki" , Michael Turquette , Stephen Boyd , Sebastian Reichel , Liam Girdwood , Alessandro Zummo , Alexandre Belloni , Wim Van Sebroeck , Guenter Roeck , open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDIN List-Id: devicetree@vger.kernel.org pon., 4 lut 2019 o 12:30 Linus Walleij napisa=C5= =82(a): > > On Thu, Jan 31, 2019 at 1:08 PM Matti Vaittinen > wrote: > > > ROHM BD70528 PMIC has 4 GPIO pins. Allow them to be > > controlled by GPIO framework. > > > > IRQs are handled by regmap-irq and GPIO driver is not > > aware of the irq usage. > > > > Signed-off-by: Matti Vaittinen > (...) > > I dropped the review-by from Linus Walleij because I would like to > > get a comment on if locking is required when we check the direction > > in order to detect the correct register for getting the pin state. > > I don't know that. You isn't regmap locking inherently? > FYI you can disable regmap locking by setting the disable_locking field in regmap_config to true. Bart > > My initial feeling is that locking makes no sense. > > Mine too. > > > + bdgpio->gpio.get_direction =3D &bd70528_get_direction; > > + bdgpio->gpio.direction_input =3D &bd70528_direction_input; > > + bdgpio->gpio.direction_output =3D &bd70528_direction_output; > > + bdgpio->gpio.set_config =3D &bd70528_gpio_set_config; > > + bdgpio->gpio.can_sleep =3D true; > > + bdgpio->gpio.get =3D &bd70528_gpio_get; > > + bdgpio->gpio.set =3D &bd70528_gpio_set; > > Drop the &ersand in from of the functions. All functions > are pointers. > > With that: > Reviewed-by: Linus Walleij > > Yours, > Linus Walleij