Re: [PATCH] tty: max310x: work around regmap->regcache data corruption

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Dec 04, 2023 at 02:41:36PM -0500, Hugo Villeneuve wrote:

> But that is not was my question was about. Here a pseudo code
> example to select "page" 1:

> 1. save original value of LCR register.
> 2. write 0xBF to LCR register
> 3. access desired register in page 1
> 4. restore original LCR value saved in step 1

> How do you do that with regmap range?

Are you saying that the selector has other, non-selector functions?
This is truly innovative hardware, generally the selector is just a
bitfield that you write paging values to.  You'd need to extend the core
so that it knows about this quirk, right now that's not possible and
we'll just leave the window pointing at whatever was last accessed.

Attachment: signature.asc
Description: PGP signature


[Index of Archives]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Linux PPP]     [Linux FS]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Linmodem]     [Device Mapper]     [Linux Kernel for ARM]

  Powered by Linux