greybus: arche-platform: Disable HUB3613 only in APB poweroff fn
authorVaibhav Hiremath <vaibhav.hiremath@linaro.org>
Thu, 25 Feb 2016 11:15:45 +0000 (16:45 +0530)
committerGreg Kroah-Hartman <gregkh@google.com>
Fri, 26 Feb 2016 00:28:17 +0000 (16:28 -0800)
commite915ce48bae606b79150a4d799a30037604a93ed
tree7280d8ede9c90eebe95bf9c1ceb9abebaf29734a
parentff788de0b41b960d7b4a650e167cfcc0d3f63644
greybus: arche-platform: Disable HUB3613 only in APB poweroff fn

HUB3613 configuration, either disable (Standby mode) or enable (HUB mode)
is related to APB. So it makes perfect sense to put both of them
together in one function.

HUB3613 enable happens only at one place, in hub_conf_delayed_work() fn,
but disable is initiated from multiple places.
Move all calls to usb3613_hub_mode_ctrl(false) to apb_poweroff().

Testing Done: Tested on DB3.5 platform.

Signed-off-by: Vaibhav Hiremath <vaibhav.hiremath@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
drivers/staging/greybus/arche-platform.c