On Thu, Dec 20, 2018 at 05:01:15AM +0000, DUNG NGUYEN wrote:
> > The quirk code currently detects all compatible I2C chips with a shared IRQ 
> > line
> > on all I2C busses, adds them into a list, and registers a bus notifier. For 
> > every
> > chip for which the bus notifier triggers, the quirk code performs I2C 
> > transfer on
> > that I2C bus for all addresses in the list.
> > The problem is that this may generate transfers to non-existing chips on
> > systems with multiple I2C busses.
> > 
> > This patch adds a check to verify that the I2C bus to which the chip with 
> > shared
> > IRQ is attached to matches the I2C bus of the chip which triggered the bus
> > notifier and only starts the I2C transfer if they match.
> > 
> > Signed-off-by: Marek Vasut <[email protected]>
> > Cc: Geert Uytterhoeven <[email protected]>
> > Cc: Kuninori Morimoto <[email protected]>
> > Cc: Simon Horman <[email protected]>
> > Cc: Wolfram Sang <[email protected]>
> > Cc: Yoshihiro Shimoda <[email protected]>
> > Cc: [email protected]
> > ---
> Hi Mr Marek
> 
> Tested-by: Nguyen Viet Dung <[email protected]>
> 
> I have tested this patch on H2 Lager with mainline v4.20-rc4 kernel.
> Confirmed that the problem is improved by this patch.
> 
> Best regards,

Thanks, applied for v4.22.

Reply via email to