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

From: Mark Brown
Date: Fri Mar 10 2023 - 08:02:15 EST


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: signature.asc
Description: PGP signature