Commit Graph

5 Commits

Author SHA1 Message Date
Tanya Finkel 23f6d9a63b dock: msm: Moved Ethernet reset and HUB reset to be optional
In the Liquid8994 we don't need the USB HUB reset and Ethernet reset
from software.

Change-Id: I577ef9d2772b46e125c6d9059834b3b2af493429
Signed-off-by: Tanya Finkel <tfinkel@codeaurora.org>
2014-10-06 23:08:08 +03:00
Jack Pham 5e36674d64 misc: liquid_dock: Defer probe until USB host is ready
The LiQUID dock driver might probe and attempt to add/remove
the USB host controller device before it has even probed.
Though not fatal, this could lead to the hub ports not being
functional when booting up initially docked. Instead, make
sure USB host controller is ready first by deferring probe
until its driver is present.

Change-Id: Icc51a9459be6f3202dcf90df632465f7d7a61914
Signed-off-by: Jack Pham <jackp@codeaurora.org>
2014-07-08 21:13:22 -07:00
Jack Pham 5933776106 misc: liquid_dock: Make dock_enable GPIO optional
The MSM8994 LiQUID docking station does not have a
pin for a dock_enable GPIO, as the USB and Ethernet
ports are always powered via the DC source. Make
this GPIO optional.

As the power to the hub and Ethernet ports may now
be always-on, also make sure to assert the reset lines
prior to adding the USB host controller. This way the
deassertion of the resets will happen after the USB
stack is fully initialized to kick off enumeration.

Change-Id: I864ebcfa94d58e741e7378db0c24fdc6220dc18f
Signed-off-by: Jack Pham <jackp@codeaurora.org>
2014-07-08 21:13:21 -07:00
Jack Pham f25bc4cdb9 misc: liquid_dock: Check for NULL notifier parameter
Check nb parameter of register_liquid_dock_notify() in
order to avoid a potential NULL pointer reference if passed
to blocking_notifier_chain_register().

Change-Id: I8d2971d32a1562559e7b27b021efd688beec5494
Signed-off-by: Jack Pham <jackp@codeaurora.org>
2014-07-08 21:13:20 -07:00
Jack Pham 83c40d8ad8 misc: Rename apq8084_dock to liquid_dock
The LiQUID dock support driver is not specific to the
APQ8084 SoC. Rename it to reflect its generality since
it can be used for other MSM/APQ LiQUID platforms.

Change-Id: I4a969077c543cd84e98dd198d3d7670b6071605a
Signed-off-by: Jack Pham <jackp@codeaurora.org>
2014-06-27 11:14:13 -07:00
Renamed from drivers/misc/apq8084_dock.c (Browse further)