lkml.org 
[lkml]   [2021]   [May]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 1/1] regmap-irq: Introduce inverted status registers support
On Tue, May 18, 2021 at 12:44:41PM +0300, Maxim Kochetkov wrote:

> + if (chip->status_invert)
> + for (i = 0; i < data->chip->num_regs; i++)
> + data->status_buf[i] = ~data->status_buf[i];
> +

This is the only active change so this only affects readback meaning
that if both read and write are inverted this won't do what's expected,
breaking acks. I'm guessing your device either mixes things or is clear
on read?
[unhandled content-type:application/pgp-signature]
\
 
 \ /
  Last update: 2021-05-18 14:07    [W:0.034 / U:0.060 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site