[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <YrMMzizzE7rIji5x@sirena.org.uk>
Date: Wed, 22 Jun 2022 13:36:30 +0100
From: Mark Brown <broonie@...nel.org>
To: Dong Aisheng <dongas86@...il.com>
Cc: Aisheng Dong <aisheng.dong@....com>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
"l.stach@...gutronix.de" <l.stach@...gutronix.de>,
Peng Fan <peng.fan@....com>,
"shawnguo@...nel.org" <shawnguo@...nel.org>
Subject: Re: [PATCH RFC 1/2] regmap: add option to disable debugfs
On Wed, Jun 22, 2022 at 06:12:49PM +0800, Dong Aisheng wrote:
> NOTE: i didn't fix _regmap_write() as i.MX controls regmap write well in driver
> with power enabled first, so don't have issues in reality.
I can't tell what you think the problem is with _regmap_write()?
> It can be fixed in a separate patch later if needed.
> You may check if it's as your expected solution.
> For syscon, I still have no idea how to fix it if I can't disable it.
>
> diff --git a/drivers/base/regmap/regcache.c b/drivers/base/regmap/regcache.c
> index 2eaffd3224c9..da1702fd57cc 100644
> --- a/drivers/base/regmap/regcache.c
> +++ b/drivers/base/regmap/regcache.c
> @@ -495,7 +495,7 @@ EXPORT_SYMBOL_GPL(regcache_drop_region);
> void regcache_cache_only(struct regmap *map, bool enable)
> {
> map->lock(map->lock_arg);
> - WARN_ON(map->cache_bypass && enable);
> +// WARN_ON(map->cache_bypass && enable);
> map->cache_only = enable;
> trace_regmap_cache_only(map, enable);
> map->unlock(map->lock_arg);
What is the purpose of this change? Why would the combination of cache
only and bypass modes work be a good idea, and how should things behave
in that case?
> diff --git a/drivers/soc/imx/imx8m-blk-ctrl.c b/drivers/soc/imx/imx8m-blk-ctrl.c
> index 7ebc28709e94..12f0f9a24fad 100644
> --- a/drivers/soc/imx/imx8m-blk-ctrl.c
> +++ b/drivers/soc/imx/imx8m-blk-ctrl.c
The changes in here look reasonable, though I'm not familiar with this
driver so might be missing something.
Download attachment "signature.asc" of type "application/pgp-signature" (489 bytes)
Powered by blists - more mailing lists