i2c: aspeed: disable additional device addresses on ast2[56]xx
authorZev Weiss <zev@bewilderbeest.net>
Thu, 6 May 2021 20:54:19 +0000 (15:54 -0500)
committerWolfram Sang <wsa@kernel.org>
Thu, 27 May 2021 19:44:19 +0000 (21:44 +0200)
commit3fb2e2aeafb2d28e49d9c069ac392dabe595b1ae
tree94997a1f23c1333e776fdfc5de2b3319967c16f6
parentc8062d11e20c218b310145bc918e116423fb1e83
i2c: aspeed: disable additional device addresses on ast2[56]xx

The ast25xx and ast26xx have, respectively, two and three configurable
slave device addresses to the ast24xx's one.  We only support using
one at a time, but the others may come up in an indeterminate state
depending on hardware/bootloader behavior, so we need to make sure we
disable them so as to avoid ending up with phantom devices on the bus.

Signed-off-by: Zev Weiss <zev@bewilderbeest.net>
Reviewed-by: Brendan Higgins <brendanhiggins@google.com>
Reviewed-by: Joel Stanley <joel@jms.id.au>
Tested-by: Joel Stanley <joel@jms.id.au>
Signed-off-by: Wolfram Sang <wsa@kernel.org>
drivers/i2c/busses/i2c-aspeed.c