mfd: tc6393xb: Fail ohci suspend if full state restore is required
authorDmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Fri, 24 Oct 2014 17:19:57 +0000 (21:19 +0400)
committerBen Hutchings <ben@decadent.org.uk>
Fri, 20 Feb 2015 00:49:25 +0000 (00:49 +0000)
commit7010f0f36b3b2e6ae6a584060449a3100feee71e
tree534629f12760a46595b23d4e9d0a4985695fc87f
parente9c1f59bfa6b9dc69445b389ef657271d7778b0e
mfd: tc6393xb: Fail ohci suspend if full state restore is required

commit 1a5fb99de4850cba710d91becfa2c65653048589 upstream.

Some boards with TC6393XB chip require full state restore during system
resume thanks to chip's VCC being cut off during suspend (Sharp SL-6000
tosa is one of them). Failing to do so would result in ohci Oops on
resume due to internal memory contentes being changed. Fail ohci suspend
on tc6393xb is full state restore is required.

Recommended workaround is to unbind tmio-ohci driver before suspend and
rebind it after resume.

Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
drivers/mfd/tc6393xb.c