Received: by 2002:ac0:8c9a:0:0:0:0:0 with SMTP id r26csp3860712ima; Mon, 4 Feb 2019 06:26:50 -0800 (PST) X-Google-Smtp-Source: AHgI3IYrFPZLW8s91LCehCJuKFnOZRyxUYSR8eur/mJtJJB3FYgDDOMKwbbfM5KFJgjKmSPVBDgE X-Received: by 2002:a63:3206:: with SMTP id y6mr7690108pgy.338.1549290410708; Mon, 04 Feb 2019 06:26:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549290410; cv=none; d=google.com; s=arc-20160816; b=e+ixd0Dnr32oUF+Yx9uUSkE6EbBw4oNPVcE8JN6BO4mtpve2kz1ICEImB3kt45LYbi nPqd75zNAJakiZuGZBQYU/fhc8rJLIi5JLRT73VnI+AwcPqcNIlpCfx7k8dQ8V0TUTA7 4/0GTXrFkIxhOE9EhFEfSsk6Pwo+4GjD6CmrE6DQQpmZkmXMH5bjHrocXQDzPn0AOY+v /AlHDzhHPHQW/JoUM/uLmT4WT112uw5snA1gir0HTFWYnANG4YoSXs1D2h18ALhOA+YM l1eqtcTGDK4EtyHZh4+SJjmLkP88XehuWzuPRRfZhydCo4lf0JIkwWa/1V1RUWBqdWfH igFA== 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=c+J7dprR/p6h3cne06HEZhzVzP5Q9j+bcCHkd43MRJ0=; b=kvA5ujxETMXkZv9PqwiFYVjtRCB8ZAVlAQbDHVsnpb9xjjM1bOtyy5hBt4c7L6pwi6 6x9sz251C14OZlq07H/jLu+Ups5VtW+ptC0dJZi3a3h7AoXrGjCBZ/Eo0jMcRhSX4yHj QEmHAsQNbDdHpeqkEL05rcPgbhNLv2IfHMc2T7xccLlH30UgKTu/z+YcTq9ICTUPBT+4 HU0fiouE7RzxIPbgdEi2vYV1lpad3lA+TpO0GmOvKK/Yf2PSJ50/L7OBi/PHfKeNegWz bOP5CduN5AV9ZPBzvLFG2E0IdmQEhF2GL+dK5qezYMVQGEHzqzH0fVpYhHgfPYe1fVjS /W8A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=QFoI8zUz; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b28si136458pgm.409.2019.02.04.06.26.33; Mon, 04 Feb 2019 06:26:50 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=QFoI8zUz; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731173AbfBDMxZ (ORCPT + 99 others); Mon, 4 Feb 2019 07:53:25 -0500 Received: from mail-ot1-f65.google.com ([209.85.210.65]:45150 "EHLO mail-ot1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728455AbfBDMxY (ORCPT ); Mon, 4 Feb 2019 07:53:24 -0500 Received: by mail-ot1-f65.google.com with SMTP id 32so12654841ota.12 for ; Mon, 04 Feb 2019 04:53:23 -0800 (PST) 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=c+J7dprR/p6h3cne06HEZhzVzP5Q9j+bcCHkd43MRJ0=; b=QFoI8zUz+j3wZAihuvZ0WDFI6M7Frwh0yVTKmQoltuhC2DscA20GclVrV3eWC5NECk 75Tjinfd/6aO/rO742P60q8Ucwh0rd79CXT3G0QekHxZxL58jYsq5PdjZvhnnjMh6g0T QZ8xWXxGwNwOKacDv+4PlpkzLpquKD3NbjctNytzdsXRUg/YkHGRspmpE77krIRDT/ht 4NF6aQb+d801rVSCxHcdbF1mUOfqPdNoWDosRXh8+/3Jq5+RVFcDnn/74NMH1PYTlXT3 zeyRs06fl7lJwt0gN/qLA/u05J/sIu2KFJGu/Jr5g68yUERs+lIOmQYQ4mvS0PXn1h4p 0F+A== 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=c+J7dprR/p6h3cne06HEZhzVzP5Q9j+bcCHkd43MRJ0=; b=i/uitVXhuFEpARvYfUSgwFCjdZiBD2olxRCS05uEy6dEJ/4b+Wds/h8uQbFQajgiRD EQ5pf38jwOIisg8FTgyw+3rfvYfvUU/8aZXBnAqvrBBTap8EZFr0RRZwNOl0owD3P30n ghlegoUFtPojkbao4Fq001PlKqYC9nXptqwbrQ36kiz/Zobd4FbSYejgTrkfTSfoa71z jUb8mB0V9nKmZXRM5SrjSx3omlAUEFe+z/qoXsRkRi6M4IqRRb08W1w+wnyy1qnFqN2n WfXkN+KCcx9R7fiR0ttqgYrdWnqZNxsMqlqCMxhGkkX1MB+GiUSTyglQXFTzFtHwcmIS BmPQ== X-Gm-Message-State: AJcUukegZv+WzSKTIjIp7vvu4sTmUDV0hqbohhJZcmKhnyTE51Lk9Fj1 BmqepVrBOJ7ajAM7T+3ztf6vTyeD9gzq9AFQx2Zt9A== X-Received: by 2002:aca:57d7:: with SMTP id l206mr26770403oib.277.1549284803540; Mon, 04 Feb 2019 04:53:23 -0800 (PST) MIME-Version: 1.0 References: <5f63684b62c7a320c514088bcf9091ed7efbd2cc.1548935790.git.matti.vaittinen@fi.rohmeurope.com> In-Reply-To: From: Bartosz Golaszewski Date: Mon, 4 Feb 2019 13:53:12 +0100 Message-ID: Subject: Re: [RFC PATCH v4 07/10] gpio: Initial support for ROHM bd70528 GPIO block 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 BINDINGS" , "linux-kernel@vger.kernel.org" , linux-clk , "open list:GPIO SUBSYSTEM" , Linux PM list , linux-rtc@vger.kernel.org, LINUXWATCHDOG 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., 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