Re: [PATCH 1/2] regmap: cache: Do not panic for REGCACHE_NONE regmap

Mark Brown
2023-03-10T13:02:15Z

[-- Attachment #1: Type: text/plain, Size: 366 bytes --]

On Fri, Mar 10, 2023 at 08:39:10AM +0100, Alexander Stein wrote:
> Most regcache operations do check for REGCACHE_NONE, before ensuring
> doing BUG_ON(!map->cache_ops). The missing regcache_sync* functions
> panic on REGCACHE_NONE regmaps instead. Add an early return for non-cached
> ones.

Why would we be trying to do a regcache_sync() on a device with
no cache?

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]