Re: [PATCH] regcache: disable cache_only before rewriting paging registers
From: Mark Brown
Date: Mon Jul 13 2026 - 08:00:44 EST
On Mon, Jul 13, 2026 at 02:30:58PM +0700, phucduc.bui@xxxxxxxxx wrote:
> From: bui duc phuc <phucduc.bui@xxxxxxxxx>
>
> cache_only must be disabled before re-writing the paging selector
> registers. Otherwise, _regmap_write() would update only the cache
> and return without calling map->reg_write(), leaving the selector
> register on the hardware unwritten and out of sync with the cache.
No, any access to the hardware is buggy - the whole point of cache only
mode is that we can't access the hardware. The paging register is part
of the context that needs to be rewritten when resyncing the cache.
Attachment:
signature.asc
Description: PGP signature