usb: musb: dsps: fix polling in device-only mode
authorBin Liu <b-liu@ti.com>
Wed, 16 Sep 2015 19:49:28 +0000 (14:49 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 22 Oct 2015 21:43:23 +0000 (14:43 -0700)
commit29a6161885e2fe7638e271a406521ba9ddd9e89c
tree2036a73196815361dfbddd95220a5853ec3fae7d
parenta8ca14b73cf8b141c48d3ac47821b260b00d2462
usb: musb: dsps: fix polling in device-only mode

commit b8239dcc03afbd0886c1d9b91ba8fee7c6c9a6cb upstream.

Fix the regression caused by commit ad78c918602 ("usb: musb: dsps: just
start polling already") which causes polling the ID pin status even in
device-only mode.

Fixes: ad78c918602c ("usb: musb: dsps: just start polling already")
Signed-off-by: Bin Liu <b-liu@ti.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/musb/musb_dsps.c