diff options
author | Marek Vasut <marek.vasut@gmail.com> | 2018-12-07 21:28:58 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-04-05 22:34:52 +0200 |
commit | 25fb6c323b55dbb7ec9227a174c36a13697bcb5d (patch) | |
tree | 3fd186abd9fff0604797b0c7ca7eb0f4b2d4d4da /drivers/hv/hv_utils_transport.c | |
parent | 9b0f430450cf230e736bc40f95bf34fbdb99cead (diff) | |
download | talos-obmc-linux-25fb6c323b55dbb7ec9227a174c36a13697bcb5d.tar.gz talos-obmc-linux-25fb6c323b55dbb7ec9227a174c36a13697bcb5d.zip |
ARM: shmobile: Fix R-Car Gen2 regulator quirk
[ Upstream commit 5347a0203709d5039a74d7c94e23519eee478094 ]
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 <marek.vasut+renesas@gmail.com>
Tested-by: Nguyen Viet Dung <dung.nguyen.aj@renesas.com>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'drivers/hv/hv_utils_transport.c')
0 files changed, 0 insertions, 0 deletions