summaryrefslogtreecommitdiff
path: root/arch/parisc/hpux
diff options
context:
space:
mode:
authorRobert Baldyga <r.baldyga@samsung.com>2013-11-21 12:49:18 (GMT)
committerFelipe Balbi <balbi@ti.com>2013-11-25 16:25:58 (GMT)
commitd18f7116a5ddb8263fe62b05ad63e5ceb5875791 (patch)
tree5ca266e3d42770884c722afc93b3b1cbd3cff4ea /arch/parisc/hpux
parent93f599f279ab56b1761c76e53f9753b26aeefe9e (diff)
downloadlinux-fsl-qoriq-d18f7116a5ddb8263fe62b05ad63e5ceb5875791.tar.xz
usb: gadget: s3c-hsotg: fix disconnect handling
This patch moves s3c_hsotg_disconnect function call from USBSusp interrupt handler to SET_ADDRESS request handler. It's because disconnected state can't be detected directly, because this hardware doesn't support Disconnected interrupt for device mode. For both Suspend and Disconnect events there is one interrupt USBSusp, but calling s3c_hsotg_disconnect from this interrupt handler causes config reset in composite layer, which is not undesirable for Suspended state. For this reason s3c_hsotg_disconnect is called from SET_ADDRESS request handler, which occurs always after disconnection, so we do disconnect immediately before we are connected again. It's probably only way we can do handle disconnection correctly. Signed-off-by: Robert Baldyga <r.baldyga@samsung.com> Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com> Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'arch/parisc/hpux')
0 files changed, 0 insertions, 0 deletions