diff options
author | Octavian Purdila <octavian.purdila@intel.com> | 2015-01-19 12:51:36 +0100 |
---|---|---|
committer | Lee Jones <lee.jones@linaro.org> | 2015-01-22 16:56:01 +0100 |
commit | 3daa122d6b710762aff5fa6aae534ed7cc45c2d6 (patch) | |
tree | 603f21f381dd8f8a10379ff4e8a5e31e6c3d2059 /drivers/mfd/wm8994-core.c | |
parent | mfd: dln2: Add start/stop RX URBs helpers (diff) | |
download | linux-3daa122d6b710762aff5fa6aae534ed7cc45c2d6.tar.xz linux-3daa122d6b710762aff5fa6aae534ed7cc45c2d6.zip |
mfd: dln2: Add suspend/resume functionality
Without suspend/resume functionality in the USB driver the USB core
will disconnect and reconnect the DLN2 port and because the GPIO
framework does not yet support removal of an in-use controller a
suspend/resume operation will result in a crash.
This patch provides suspend and resume functions for the DLN2 driver
so that the above scenario is avoided, if the host controller does not
drop VBUS during suspend, since in this case the device state is
preserved.
We chose not implemented reset_resume so that if the host controller
does drop VBUS the resume path will go through above the
disconnect/reconnect process since it is probably better to fix the
GPIO framework disconnect issue then to save and restore the device
state for every driver.
Signed-off-by: Octavian Purdila <octavian.purdila@intel.com>
Reviewed-by: Johan Hovold <johan@kernel.org>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Diffstat (limited to 'drivers/mfd/wm8994-core.c')
0 files changed, 0 insertions, 0 deletions