Skip to contentSkip to conversation

uasp: COMMAND IU implementation

PATCH In review Tatyana Brokhman 1 participant 1 message Jan 21, 2011

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 3/4 uasp: COMMAND IU implementation

This patch implements the handling of different SCSI commands received in a COMMAND IU packets

---
 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
index a0d878f..82f7f8f 100644
@@ -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
index e7cadbc..1e092e3 100644
@@ -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