linux-iio.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Philipp Zabel <p.zabel@pengutronix.de>
To: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: linux-kernel@vger.kernel.org,
	"David S. Miller" <davem@davemloft.net>,
	"Emilio López" <emilio@elopez.com.ar>,
	"Adrian Hunter" <adrian.hunter@intel.com>,
	"Alan Stern" <stern@rowland.harvard.edu>,
	"Alan Tull" <atull@kernel.org>,
	"Alexandre Torgue" <alexandre.torgue@st.com>,
	"Andrew Lunn" <andrew@lunn.ch>, "Ben Skeggs" <bskeggs@redhat.com>,
	"Benjamin Gaignard" <benjamin.gaignard@linaro.org>,
	"Bin Liu" <b-liu@ti.com>,
	"Bjorn Andersson" <bjorn.andersson@linaro.org>,
	"Bjorn Helgaas" <bhelgaas@google.com>,
	"Boris Brezillon" <boris.brezillon@free-electrons.com>,
	"Brian Norris" <computersforpeace@gmail.com>,
	"Chanwoo Choi" <cw00.choi@samsung.com>,
	"Chen Feng" <puck.chen@hisilicon.com>,
	"Chen-Yu Tsai" <wens@csie.org>,
	"Corentin Labbe" <clabbe.montjoie@gmail.com>,
	"Cyrille Pitchen" <cyrille.pitchen@wedev4u.fr>,
	"Dan Williams" <dan.j.williams@intel.com>,
	"Daniel Lezcano" <daniel.lezcano@linaro.org>,
	"David Airlie" <airlied@linux.ie>,
	"David Woodhouse" <dwmw2@infradead.org>,
	"Dmitry Torokhov" <dmitry.torokhov@gmail.com>,
	"Eduardo Valentin" <edubezval@gmail.com>,
	"Felipe Balbi" <balbi@kernel.org>,
	"Florian Fainelli" <f.fainelli@gmail.com>,
	"Giuseppe Cavallaro" <peppe.cavallaro@st.com>,
	"Guenter Roeck" <linux@roeck-us.net>,
	"Hartmut Knaack" <knaack.h@gmx.de>,
	"Heiko Stuebner" <heiko@sntech.de>,
	"Herbert Xu" <herbert@gondor.apana.org.au>,
	"Jaehoon Chung" <jh80.chung@samsung.com>,
	"Jiri Slaby" <jslaby@suse.com>,
	"Joachim Eastwood" <manabian@gmail.com>,
	"John Youn" <johnyoun@synopsys.com>,
	"Jon Hunter" <jonathanh@nvidia.com>,
	"Jonathan Cameron" <jic23@kernel.org>,
	"Jonathan Corbet" <corbet@lwn.net>,
	"Kalle Valo" <kvalo@qca.qualcomm.com>,
	"Kishon Vijay Abraham I" <kishon@ti.com>,
	"Kyungmin Park" <kyungmin.park@samsung.com>,
	"Lars-Peter Clausen" <lars@metafoo.de>,
	"Laxman Dewangan" <ldewangan@nvidia.com>,
	"Lee Jones" <lee.jones@linaro.org>,
	"Liam Girdwood" <lgirdwood@gmail.com>,
	"Linus Walleij" <linus.walleij@linaro.org>,
	"Lucas Stach" <l.stach@pengutronix.de>,
	"Marc Dietrich" <marvin24@gmx.de>,
	"Marek Vasut" <marek.vasut@gmail.com>,
	"Mark Brown" <broonie@kernel.org>,
	"Mark Yao" <mark.yao@rock-chips.com>,
	"Mathias Nyman" <mathias.nyman@intel.com>,
	"Matthias Brugger" <matthias.bgg@gmail.com>,
	"Maxime Coquelin" <mcoquelin.stm32@gmail.com>,
	"Maxime Ripard" <maxime.ripard@free-electrons.com>,
	"Michael Turquette" <mturquette@baylibre.com>,
	"Moritz Fischer" <moritz.fischer@ettus.com>,
	"MyungJoo Ham" <myungjoo.ham@samsung.com>,
	"Ohad Ben-Cohen" <ohad@wizery.com>,
	"Patrice Chotard" <patrice.chotard@st.com>,
	"Peter Chen" <Peter.Chen@nxp.com>,
	"Peter De Schrijver" <pdeschrijver@nvidia.com>,
	"Peter Meerwald-Stadler" <pmeerw@pmeerw.net>,
	"Philippe Cornu" <philippe.cornu@st.com>,
	"Prashant Gaikwad" <pgaikwad@nvidia.com>,
	"Rakesh Iyer" <riyer@nvidia.com>,
	"Ralf Baechle" <ralf@linux-mips.org>,
	"Richard Weinberger" <richard@nod.at>,
	"Richard Zhu" <hongxing.zhu@nxp.com>,
	"Rongrong Zou" <zourongrong@gmail.com>,
	"Ryder Lee" <ryder.lee@mediatek.com>,
	"Salil Mehta" <salil.mehta@huawei.com>,
	"Shawn Lin" <shawn.lin@rock-chips.com>,
	"Srinivas Kandagatla" <srinivas.kandagatla@linaro.org>,
	"Stanimir Varbanov" <svarbanov@mm-sol.com>,
	"Stephen Boyd" <sboyd@codeaurora.org>,
	"Tejun Heo" <tj@kernel.org>,
	"Thierry Reding" <thierry.reding@gmail.com>,
	"Thomas Gleixner" <tglx@linutronix.de>,
	"Ulf Hansson" <ulf.hansson@linaro.org>,
	"Vincent Abriou" <vincent.abriou@st.com>,
	"Vinod Koul" <vinod.koul@intel.com>,
	"Vivien Didelot" <vivien.didelot@savoirfairelinux.com>,
	"Wim Van Sebroeck" <wim@iguana.be>,
	"Wolfram Sang" <wsa@the-dreams.de>,
	"Xinliang Liu" <z.liuxinliang@hisilicon.com>,
	"Xinwei Kong" <kong.kongxinwei@hisilicon.com>,
	"Yannick Fertre" <yannick.fertre@st.com>,
	"Yisen Zhuang" <yisen.zhuang@huawei.com>,
	"Zhang Rui" <rui.zhang@intel.com>,
	alsa-devel@alsa-project.org, ath10k@lists.infradead.org,
	devel@driverdev.osuosl.org, dmaengine@vger.kernel.org,
	dri-devel@lists.freedesktop.org,
	linux-arm-kernel@lists.infradead.org,
	linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org,
	linux-crypto@vger.kernel.org, linux-doc@vger.kernel.org,
	linux-fpga@vger.kernel.org, linux-gpio@vger.kernel.org,
	linux-i2c@vger.kernel.org, linux-ide@vger.kernel.org,
	linux-iio@vger.kernel.org, linux-input@vger.kernel.org,
	linux-media@vger.kernel.org, linux-mediatek@lists.infradead.org,
	linux-mips@linux-mips.org, linux-mmc@vger.kernel.org,
	linux-mtd@lists.infradead.org, linux-pci@vger.kernel.org,
	linux-pm@vger.kernel.org, linux-pwm@vger.kernel.org,
	linux-remoteproc@vger.kernel.org,
	linux-rockchip@lists.infradead.org, linux-serial@vger.kernel.org,
	linux-spi@vger.kernel.org, linux-tegra@vger.kernel.org,
	linux-usb@vger.kernel.org, linux-watchdog@vger.kernel.org,
	linux-wireless@vger.kernel.org, netdev@vger.kernel.org,
	nouveau@lists.freedesktop.org
Subject: Re: [PATCH 000/102] Convert drivers to explicit reset API
Date: Thu, 20 Jul 2017 11:24:24 +0200	[thread overview]
Message-ID: <1500542664.2354.27.camel@pengutronix.de> (raw)
In-Reply-To: <20170720081157.GA11630@kroah.com>

Hi Greg,

The patches in this series are completely independent of each other, and
I would like the subsystem maintainers to apply them at their own
leisure.
Well, except for the last one, which I will apply only after there are
no more users of the transition helpers.

On Thu, 2017-07-20 at 10:11 +0200, Greg Kroah-Hartman wrote:
> On Wed, Jul 19, 2017 at 05:25:04PM +0200, Philipp Zabel wrote:
> > The reset control API has two modes: exclusive access, where the driver
> > expects to have full and immediate control over the state of the reset
> > line, and shared (clock-like) access, where drivers only request reset
> > deassertion while active, but don't care about the state of the reset line
> > while inactive.
> > 
> > Commit a53e35db70d1 ("reset: Ensure drivers are explicit when requesting
> > reset lines") started to transition the reset control request API calls
> > to explicitly state whether the driver needs exclusive or shared reset
> > control behavior.
> > 
> > This series converts all drivers that currently implicitly request
> > exclusive reset controls to the corresponding explicit API call. It is,
> > for the most part, generated from the following semantic patch:
> 
> Hey, I'm all for large api changes, but this really seems ackward, isn't
> there a "better" way to do this?

It is a bit awkward. I am sorry I haven't done this earlier. Quite a few
new drivers started using the old API after the explicit requests were
introduced last year.

> Why not, as you say the "implicit" request is exclusive, just leave
> everything alone and state that the "reset_control_get()" call is
> exclusive 

I think it is better to let the drivers explicitly state what they
expect from the API, and using reset_control_get_exclusive vs _shared
helps driver developers to make a conscious decision.

Further, the implicit API call predates shared reset support, so it is
not clear that all of the old users really need exclusive control.
A few drivers have been switched to the shared API already.

> and make the shared one the "odd" usage as that seems to not
> be the normal case.

I am not sure, there have been people arguing that the "clock-like" case
really is the common one. I suppose some of those drivers touched by the
100 patches in this series could also be changed to shared. But I don't
dare to make this decision for each of them.

> That should be a much smaller patch right?
> 
> That way you don't break everything here, and require 100+ patches to
> just change the name of a function from one to another and do nothing
> else.

I don't break anything here, and I'm absolutely fine with squashing
patches together per subsystem where that is preferable.

regards
Philipp

  reply	other threads:[~2017-07-20  9:24 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-07-19 15:25 [PATCH 000/102] Convert drivers to explicit reset API Philipp Zabel
2017-07-19 15:25 ` [PATCH 031/102] iio: adc: rockchip_saradc: explicitly request exclusive reset control Philipp Zabel
2017-08-20 11:09   ` Jonathan Cameron
2017-07-19 15:25 ` [PATCH 032/102] iio: dac: stm32-dac-core: " Philipp Zabel
2017-08-20 11:07   ` Jonathan Cameron
2017-07-19 19:15 ` [PATCH 000/102] Convert drivers to explicit reset API Thomas Petazzoni
2017-07-20  9:36   ` Philipp Zabel
2017-07-20 10:36     ` Thomas Petazzoni
2017-07-20 12:55       ` Philipp Zabel
2017-07-20 20:46         ` Dmitry Torokhov
2017-07-23 18:41           ` Linus Walleij
2017-07-24  8:33             ` Philipp Zabel
2017-08-12 11:43               ` Wolfram Sang
2017-08-14  7:36                 ` Philipp Zabel
2017-07-20  6:56 ` Maxime Ripard
2017-07-20  8:11 ` Greg Kroah-Hartman
2017-07-20  9:24   ` Philipp Zabel [this message]
2017-07-20 20:32 ` Heiko Stuebner

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1500542664.2354.27.camel@pengutronix.de \
    --to=p.zabel@pengutronix.de \
    --cc=Peter.Chen@nxp.com \
    --cc=adrian.hunter@intel.com \
    --cc=airlied@linux.ie \
    --cc=alexandre.torgue@st.com \
    --cc=alsa-devel@alsa-project.org \
    --cc=andrew@lunn.ch \
    --cc=ath10k@lists.infradead.org \
    --cc=atull@kernel.org \
    --cc=b-liu@ti.com \
    --cc=balbi@kernel.org \
    --cc=benjamin.gaignard@linaro.org \
    --cc=bhelgaas@google.com \
    --cc=bjorn.andersson@linaro.org \
    --cc=boris.brezillon@free-electrons.com \
    --cc=broonie@kernel.org \
    --cc=bskeggs@redhat.com \
    --cc=clabbe.montjoie@gmail.com \
    --cc=computersforpeace@gmail.com \
    --cc=corbet@lwn.net \
    --cc=cw00.choi@samsung.com \
    --cc=cyrille.pitchen@wedev4u.fr \
    --cc=dan.j.williams@intel.com \
    --cc=daniel.lezcano@linaro.org \
    --cc=davem@davemloft.net \
    --cc=devel@driverdev.osuosl.org \
    --cc=dmaengine@vger.kernel.org \
    --cc=dmitry.torokhov@gmail.com \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=dwmw2@infradead.org \
    --cc=edubezval@gmail.com \
    --cc=emilio@elopez.com.ar \
    --cc=f.fainelli@gmail.com \
    --cc=gregkh@linuxfoundation.org \
    --cc=heiko@sntech.de \
    --cc=herbert@gondor.apana.org.au \
    --cc=hongxing.zhu@nxp.com \
    --cc=jh80.chung@samsung.com \
    --cc=jic23@kernel.org \
    --cc=johnyoun@synopsys.com \
    --cc=jonathanh@nvidia.com \
    --cc=jslaby@suse.com \
    --cc=kishon@ti.com \
    --cc=knaack.h@gmx.de \
    --cc=kong.kongxinwei@hisilicon.com \
    --cc=kvalo@qca.qualcomm.com \
    --cc=kyungmin.park@samsung.com \
    --cc=l.stach@pengutronix.de \
    --cc=lars@metafoo.de \
    --cc=ldewangan@nvidia.com \
    --cc=lee.jones@linaro.org \
    --cc=lgirdwood@gmail.com \
    --cc=linus.walleij@linaro.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-arm-msm@vger.kernel.org \
    --cc=linux-clk@vger.kernel.org \
    --cc=linux-crypto@vger.kernel.org \
    --cc=linux-doc@vger.kernel.org \
    --cc=linux-fpga@vger.kernel.org \
    --cc=linux-gpio@vger.kernel.org \
    --cc=linux-i2c@vger.kernel.org \
    --cc=linux-ide@vger.kernel.org \
    --cc=linux-iio@vger.kernel.org \
    --cc=linux-input@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-media@vger.kernel.org \
    --cc=linux-mediatek@lists.infradead.org \
    --cc=linux-mips@linux-mips.org \
    --cc=linux-mmc@vger.kernel.org \
    --cc=linux-mtd@lists.infradead.org \
    --cc=linux-pci@vger.kernel.org \
    --cc=linux-pm@vger.kernel.org \
    --cc=linux-pwm@vger.kernel.org \
    --cc=linux-remoteproc@vger.kernel.org \
    --cc=linux-rockchip@lists.infradead.org \
    --cc=linux-serial@vger.kernel.org \
    --cc=linux-spi@vger.kernel.org \
    --cc=linux-tegra@vger.kernel.org \
    --cc=linux-usb@vger.kernel.org \
    --cc=linux-watchdog@vger.kernel.org \
    --cc=linux-wireless@vger.kernel.org \
    --cc=linux@roeck-us.net \
    --cc=manabian@gmail.com \
    --cc=marek.vasut@gmail.com \
    --cc=mark.yao@rock-chips.com \
    --cc=marvin24@gmx.de \
    --cc=mathias.nyman@intel.com \
    --cc=matthias.bgg@gmail.com \
    --cc=maxime.ripard@free-electrons.com \
    --cc=mcoquelin.stm32@gmail.com \
    --cc=moritz.fischer@ettus.com \
    --cc=mturquette@baylibre.com \
    --cc=myungjoo.ham@samsung.com \
    --cc=netdev@vger.kernel.org \
    --cc=nouveau@lists.freedesktop.org \
    --cc=ohad@wizery.com \
    --cc=patrice.chotard@st.com \
    --cc=pdeschrijver@nvidia.com \
    --cc=peppe.cavallaro@st.com \
    --cc=pgaikwad@nvidia.com \
    --cc=philippe.cornu@st.com \
    --cc=pmeerw@pmeerw.net \
    --cc=puck.chen@hisilicon.com \
    --cc=ralf@linux-mips.org \
    --cc=richard@nod.at \
    --cc=riyer@nvidia.com \
    --cc=rui.zhang@intel.com \
    --cc=ryder.lee@mediatek.com \
    --cc=salil.mehta@huawei.com \
    --cc=sboyd@codeaurora.org \
    --cc=shawn.lin@rock-chips.com \
    --cc=srinivas.kandagatla@linaro.org \
    --cc=stern@rowland.harvard.edu \
    --cc=svarbanov@mm-sol.com \
    --cc=tglx@linutronix.de \
    --cc=thierry.reding@gmail.com \
    --cc=tj@kernel.org \
    --cc=ulf.hansson@linaro.org \
    --cc=vincent.abriou@st.com \
    --cc=vinod.koul@intel.com \
    --cc=vivien.didelot@savoirfairelinux.com \
    --cc=wens@csie.org \
    --cc=wim@iguana.be \
    --cc=wsa@the-dreams.de \
    --cc=yannick.fertre@st.com \
    --cc=yisen.zhuang@huawei.com \
    --cc=z.liuxinliang@hisilicon.com \
    --cc=zourongrong@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).