uasp: COMMAND IU implementation
Subsystems (2)
PATCH 3/4 uasp: COMMAND IU implementation
This patch implements the handling of different SCSI commands received in a COMMAND IU packets
Signed-off-by Tatyana Brokhman <[email protected]>
--- drivers/usb/gadget/f_uasp.c | 2 +- drivers/usb/gadget/f_uasp.h | 9 + drivers/usb/gadget/uasp_cmdiu.c | 1206 ++++++++++++++++++++++++++++++++++++++- 3 files changed, 1201 insertions(+), 16 deletions(-)
drivers/usb/gadget/f_uasp.c +1 -1
@@ -1858,7 +1858,7 @@ sleep:* This function should be called when fsg_common->filesem is * taken! */ -static void close_lun (struct uasp_lun *ulun) +void close_lun (struct uasp_lun *ulun) {struct fsg_lun *fsglun = ulun->lun;/*TODO: stop lun task and clear all queues!*/
drivers/usb/gadget/f_uasp.h +9 -0
@@ -411,4 +411,13 @@ void run_lun_threads(struct uasp_dev *udev, int state);*/ int all_lun_state_non_processing (struct uasp_dev *udev); +/** +* close_lun() - Close the backing file of the given LUN +* @ulun: pointer to the LUn to close +* +* This function should be called when fsg_common->filesem is +* taken! +*/ +void close_lun (struct uasp_lun *ulun); +#endif /* _F_UASP_H */
drivers/usb/gadget/uasp_cmdiu.c +1191 -15
1,293 lines not on this page · raw message
Signature · 4 lines
1.6.3.3 -- Sent by a Consultant for Qualcomm Innovation Center, Inc. Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum