]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commit
mfd: do tcb6393xb state restore on resume only if requested
authorDmitry Baryshkov <dbaryshkov@gmail.com>
Wed, 24 Sep 2008 21:46:10 +0000 (23:46 +0200)
committerSamuel Ortiz <samuel@sortiz.org>
Sun, 19 Oct 2008 20:54:10 +0000 (22:54 +0200)
commitf98a0bd0e4b77b12e49ce01f4c9f04503931c291
tree6197077b24c880eb79d7d2864b60372c358df1b0
parent1c1b6ffce5737d764cc474b9bd6677bb9a344094
mfd: do tcb6393xb state restore on resume only if requested

As requested by Ian make state restore only if it's requested
by platform data: some platforms do correctly save the state of
the chip during suspend/resume, but some (like tosa) incorrectly
power off the chip at suspend, so the driver supports restoring
some bits of the tc6393xb state (not full, merely enough to support
resume on tosa). With this patch this code is disabled by default.

Signed-off-by: Dmitry Baryshkov <dbaryshkov@gmail.com>
Acked-by: Ian Molton <spyro@f2s.com>
Signed-off-by: Samuel Ortiz <sameo@openedhand.com>
arch/arm/mach-pxa/tosa.c
drivers/mfd/tc6393xb.c
include/linux/mfd/tc6393xb.h