[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20201112211429.kfyqzkmmchjo6pll@pengutronix.de>
Date: Thu, 12 Nov 2020 22:14:29 +0100
From: Uwe Kleine-König <u.kleine-koenig@...gutronix.de>
To: Thierry Reding <thierry.reding@...il.com>
Cc: alexandre.belloni@...tlin.com, heiko@...ech.de,
Yangtao Li <tiny.windzz@...il.com>,
linux-kernel@...r.kernel.org, linux-tegra@...r.kernel.org,
linux-riscv@...ts.infradead.org, festevam@...il.com,
f.fainelli@...il.com, shc_work@...l.ru, khilman@...libre.com,
wens@...e.org, jonathanh@...dia.com,
linux-rockchip@...ts.infradead.org,
ludovic.desroches@...rochip.com,
bcm-kernel-feedback-list@...adcom.com, linux-imx@....com,
slemieux.tyco@...il.com, linux-pwm@...r.kernel.org,
rjui@...adcom.com, s.hauer@...gutronix.de, mripard@...nel.org,
vz@...ia.com, linux-mediatek@...ts.infradead.org,
linux-rpi-kernel@...ts.infradead.org, paul.walmsley@...ive.com,
matthias.bgg@...il.com, linux-amlogic@...ts.infradead.org,
Lee Jones <lee.jones@...aro.org>,
linux-arm-kernel@...ts.infradead.org, sbranden@...adcom.com,
nicolas.ferre@...rochip.com, palmer@...belt.com,
kernel@...gutronix.de, shawnguo@...nel.org,
claudiu.beznea@...rochip.com, nsaenzjulienne@...e.de
Subject: Re: [PATCH 01/32] pwm: sun4i: convert to
devm_platform_ioremap_resource
Hello Thierry,
On Thu, Nov 12, 2020 at 08:06:49PM +0100, Thierry Reding wrote:
> I also think that it's overly narrow is scope, so you can't actually
> "blindly" use this helper and I've seen quite a few cases where this was
> unknowingly used for cases where it shouldn't have been used and then
> broke things (because some drivers must not do the request_mem_region()
> for example).
You have a link to such an accident?
> And then there are cases where the driver needs the
> resource for some other purpose, so you can't use the helper either, or
> at least it looses all of its advantages in those cases.
There is devm_platform_get_and_ioremap_resource() for (some of) these
cases.
Best regards
Uwe
--
Pengutronix e.K. | Uwe Kleine-König |
Industrial Linux Solutions | https://www.pengutronix.de/ |
Download attachment "signature.asc" of type "application/pgp-signature" (489 bytes)
Powered by blists - more mailing lists