Re: [PATCH RFC 1/2] regmap: add option to disable debugfs
From: Mark Brown
Date: Wed Jun 22 2022 - 12:51:14 EST
On Thu, Jun 23, 2022 at 12:42:51AM +0800, Dong Aisheng wrote:
> On Thu, Jun 23, 2022 at 12:27 AM Mark Brown <broonie@xxxxxxxxxx> wrote:
> > cache_bypass is only going to be true if something enabled bypass, why
> > would a device that doesn't use a cache enable bypass? It does get
> > turned on transiently by things like patching but those only make sense
> > if the device can be accessed so caceh_only shouldn't be on then.
> It was enabled by default according to the code:
> __regmap_init -> regcache_init
Ah, right. That makes sense - we should relax the check to only apply
if there is actually a cache.
Attachment:
signature.asc
Description: PGP signature