USB: gadget: s3c-hsotg: skip suspend and resume when usb cable wasn't inserted
authorByungsoo Kim <bs1770.kim@samsung.com>
Fri, 25 Oct 2013 12:37:19 +0000 (21:37 +0900)
committerMarek Szyprowski <m.szyprowski@samsung.com>
Thu, 15 May 2014 05:25:58 +0000 (07:25 +0200)
commitc3bb19cd849c2db9fa92edbd6c419a5f9002d2a6
tree415b717048b172a34b14bede0aef35b509ef545e
parent6aba383ba66bcdcd2e36a386ce825da0e063174f
USB: gadget: s3c-hsotg: skip suspend and resume when usb cable wasn't inserted

Although we didn't insert usb cable, s3c_hsotg_suspend and s3c_hsotg_resume were always called and failed.

[  519.686485] s3c-hsotg 12480000.hsotg: Failed to get CSftRst asserted
[  519.686539] s3c-hsotg 12480000.hsotg: ep0: failed to become enabled (DxEPCTL=0x00000000)

Signed-off-by: Byungsoo Kim <bs1770.kim@samsung.com>
Change-Id: I084c0436992e5be76b0dd692da44d5a45761c934
drivers/usb/gadget/s3c-hsotg.c