RE: [PATCH] usb: uas: fix usb subsystem hang after power off hub port

2019-04-15 Thread Kento.A.Kobayashi
Hi, >On Mon, 15 Apr 2019, Alan Stern wrote: > >> On Mon, 15 Apr 2019 kento.a.kobaya...@sony.com wrote: >> >> > Hi >> > >> > >The unbind happens from inside the SCSI EH callback. If that really is >> > >not allowed, we'll need to change it. Or we can just change it >> > >regardless, since the

RE: [PATCH] usb: uas: fix usb subsystem hang after power off hub port

2019-04-14 Thread Kento.A.Kobayashi
Hi >The unbind happens from inside the SCSI EH callback. If that really is not >allowed, we'll need to change it. Or we can just change it regardless, since >the effort required is pretty small. > >Kento, please try the patch below. Does it help with your problem? Thank you for suggestion ab

RE: [PATCH] usb: uas: fix usb subsystem hang after power off hub port

2019-04-08 Thread Kento.A.Kobayashi
Hi, >So it looks as though the SCSI subsystem doesn't like to have a reset handler >call scsi_remove_host. Commands dispatched by the removal routines are forced >to wait for the reset recovery to finish, which won't happen until those >commands have been completed. You mean reset handeler sh

[PATCH] usb: uas: fix usb subsystem hang after power off hub port

2019-03-08 Thread Kento.A.Kobayashi
The issue happens with following steps: Access usb3.0/3.1 device that uses uas driver. Power off hub port connecting device by ioctl(USBDEVFS_CONTROL). Wait longer than 30s(scsi layer timeout period is 30s). Execute commands like lsusb, no response and usb subsytem hangs. After scsi layer timeout,