]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
USB: ene_usb6250: implement REQUEST SENSE
authorAlan Stern <stern@rowland.harvard.edu>
Tue, 16 May 2017 15:48:01 +0000 (11:48 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 18 May 2017 14:05:24 +0000 (16:05 +0200)
commitce553bd103c161df2676ff201746bff8ca512715
treed2310f8928ee73a38fa3f2d81dffc134de76671f
parentaa18c4b6e0e39bfb00af48734ec24bc189ac9909
USB: ene_usb6250: implement REQUEST SENSE

In the ene_usb6250 sub-driver for usb-storage, there is no support for
the REQUEST SENSE command.  This command is issued whenever a failure
occurs, and without it the driver has no way to tell the SCSI core
what the reason for the failure was.

This patch adds a do_scsi_request_sense() routine to the driver.  The
new routine reports the error code stored by the previous command.

Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
Reported-and-tested-by: Andreas Hartmann <andihartmann@01019freenet.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/storage/ene_ub6250.c