diff options
author | Felipe Balbi <balbi@ti.com> | 2015-02-26 11:01:03 -0600 |
---|---|---|
committer | Felipe Balbi <balbi@ti.com> | 2015-03-10 15:33:27 -0500 |
commit | f860f0b1ea76b9f15d24db8fa98823eb15273afb (patch) | |
tree | d9ec6b11e794cde59ad67632b190fcd0cd44062c /drivers/usb/musb | |
parent | 52b9e6eb07f739207bd7d4257fdfbb24592d096a (diff) | |
download | blackbird-op-linux-f860f0b1ea76b9f15d24db8fa98823eb15273afb.tar.gz blackbird-op-linux-f860f0b1ea76b9f15d24db8fa98823eb15273afb.zip |
usb: musb: dsps: check for the single bit
We want to check if that particular bit is
set. It could very well be that bootloader
(or romcode) has fiddled with MUSB before
us which could leave other bits set in this
register.
Tested-by: Bin Liu <b-liu@ti.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'drivers/usb/musb')
-rw-r--r-- | drivers/usb/musb/musb_dsps.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/musb/musb_dsps.c b/drivers/usb/musb/musb_dsps.c index 8f96e79dd069..e210b75fb6f2 100644 --- a/drivers/usb/musb/musb_dsps.c +++ b/drivers/usb/musb/musb_dsps.c @@ -475,7 +475,7 @@ static int dsps_musb_init(struct musb *musb) * logic enabled. */ val = dsps_readb(musb->mregs, MUSB_BABBLE_CTL); - if (val == MUSB_BABBLE_RCV_DISABLE) { + if (val & MUSB_BABBLE_RCV_DISABLE) { glue->sw_babble_enabled = true; val |= MUSB_BABBLE_SW_SESSION_CTRL; dsps_writeb(musb->mregs, MUSB_BABBLE_CTL, val); |