diff options
author | Jisheng Zhang <jszhang@marvell.com> | 2014-07-25 11:57:46 (GMT) |
---|---|---|
committer | Matthew Weigel <Matthew.Weigel@freescale.com> | 2014-12-11 18:38:51 (GMT) |
commit | 9d6673a9b828c23ae39d8c5b66022f6d4ba135f2 (patch) | |
tree | d5202bc10e0e741a12aa335c81206dd95d45dc20 /crypto/sha1_generic.c | |
parent | 211f21a752cd81324528d33700f17cadc89b31d1 (diff) | |
download | linux-fsl-qoriq-9d6673a9b828c23ae39d8c5b66022f6d4ba135f2.tar.xz |
i2c: pca954x: put the mux to disconnected state after resume
pca954x may be power lost during suspend, so after resume we also suffer
the issue fixed by commit cd823db8b1161ef0d756514d280715a576d65cc3,
"pca954x power-on default is channel 0 connected. If multiple pca954x
muxes are connected to the same physical I2C bus, the parent bus will
see channel 0 devices behind both muxes by default."
What's more, when resume bootloader may also operate the mux, so the
the channel connected after that may not be the one driver thought.
We fix this problem by putting the mux to disconnected state and
clearing last_chan in the resume hook.
Signed-off-by: Jisheng Zhang <jszhang@marvell.com>
Reviewed-by: Jean Delvare <jdelvare@suse.de>
Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
--
Cherry-pickded from linux.git:
f5e596cd9f0ec6c03660fe4196d395bc3da919a4
Change-Id: I43da37cf2f854e023f5ff645d20134b919347142
Reviewed-on: http://git.am.freescale.net:8181/21929
Tested-by: Review Code-CDREVIEW <CDREVIEW@freescale.com>
Reviewed-by: Zhengxiong Jin <Jason.Jin@freescale.com>
Diffstat (limited to 'crypto/sha1_generic.c')
0 files changed, 0 insertions, 0 deletions