Skip to content
Commit 53801d2e authored by Daniel Mack's avatar Daniel Mack Committed by Wolfram Sang
Browse files

i2c: core: fix lockdep warning for sparsely nested adapter chain



When adapters are chained in a sparse manner (with intermediate MFD devices,
for instance) the code currently fails to use the correct subclass for
the adapter's bus_lock which leads to false-positive lockdep warnings.

Fix this by walking the entire pedigree of the device and count all
adapters along the way instead of just checking the immediate parent.

Signed-off-by: default avatarDaniel Mack <daniel@zonque.org>
Signed-off-by: default avatarWolfram Sang <wsa@kernel.org>
parent 702c0dd7
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment