OSDN Git Service

platform: msm: Check USB ID state on probe
authorSriharsha Allenki <sallenki@codeaurora.org>
Tue, 26 Sep 2017 12:39:32 +0000 (18:09 +0530)
committerGerrit - the friendly Code Review server <code-review@localhost>
Tue, 26 Sep 2017 19:09:44 +0000 (12:09 -0700)
commit3ef7befadd2ce581a9fc07236c324dcb5110b7d0
treeefb5148f91678e15699f4d04c436dce26b7f88bc
parentb56464c7cb37be7ddd498ccff8cc11124cea39e6
platform: msm: Check USB ID state on probe

If the device is booted up with OTG cable connected,
the device does not switch to host mode. The trigger
is lost because the irqs are enabled at a later time.
Fix this by checking the ID state during probe.

CRs-Fixed: 2106351
Change-Id: I742d0839832219e757348e102252f97d95a8335b
Signed-off-by: Sriharsha Allenki <sallenki@codeaurora.org>
drivers/platform/msm/gpio-usbdetect.c