]> git.sur5r.net Git - u-boot/commit
i2c: Fix deselection of muxes
authorMark Tomlinson <mark.tomlinson@alliedtelesis.co.nz>
Mon, 1 Dec 2014 19:49:18 +0000 (08:49 +1300)
committerHeiko Schocher <hs@denx.de>
Mon, 8 Dec 2014 06:27:06 +0000 (07:27 +0100)
commit2fe50ef4034b69b45413108dd3e736de2548c04a
tree29f55f284566e86ef0d20c41465d686877b666ac
parent97cdf64026c7d749dd7a5c0dbaba7a60a7292ac9
i2c: Fix deselection of muxes

Due to an uninitialised variable, when muxes were deselected, any value
could be written to the mux control register. On the PCA9548, this could
result in multiple channels being selected, thus enabling multiple
pull-up resistors, and much bus capacitance.

The fix is simply to initialise the written value to zero.

Signed-off-by: Mark Tomlinson <mark.tomlinson@alliedtelesis.co.nz>
drivers/i2c/i2c_core.c