]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
ENGR00217716 mfgtool host frequently reset bus during transfer
authorTony LIU <junjie.liu@freescale.com>
Fri, 20 Jul 2012 01:28:27 +0000 (09:28 +0800)
committerOliver Wendt <ow@karo-electronics.de>
Mon, 30 Sep 2013 12:12:27 +0000 (14:12 +0200)
- the response in csw to request sense will be 1 due to UTP change
  some storage information
- host will reset the bus if response to request sense is 1
- change the response to 0 if CONFIG_FSL_UTP is defined

Signed-off-by: Tony LIU <junjie.liu@freescale.com>
drivers/usb/gadget/file_storage.c

index 42ded435ed576438e982d96af06afa0c6fe8f9f8..9b4f105f106ad16a5c58dd5fae410b08d9c1ddde 100644 (file)
@@ -2156,7 +2156,11 @@ static int send_status(struct fsg_dev *fsg)
                sd = SS_INVALID_COMMAND;
        } else if (sd != SS_NO_SENSE) {
                DBG(fsg, "sending command-failure status\n");
+#ifdef CONFIG_FSL_UTP
+               status = USB_STATUS_PASS;
+#else
                status = USB_STATUS_FAIL;
+#endif
                VDBG(fsg, "  sense data: SK x%02x, ASC x%02x, ASCQ x%02x;"
                                "  info x%x\n",
                                SK(sd), ASC(sd), ASCQ(sd), sdinfo);