FSL: usb: gadget: utp:
authorOliver Wendt <ow@karo-electronics.de>
Wed, 18 Mar 2015 09:22:21 +0000 (10:22 +0100)
committerOliver Wendt <ow@karo-electronics.de>
Wed, 18 Mar 2015 09:22:21 +0000 (10:22 +0100)
added secondary value for 3.16 syntax/data compatiblity.

drivers/usb/gadget/fsl_updater.c

index 83dcd56..618df6e 100644 (file)
@@ -206,7 +206,7 @@ static int utp_do_read(struct fsg_dev *fsg, void *data, size_t size)
                /* Wait for the next buffer to become available */
                bh = fsg->common->next_buffhd_to_fill;
                while (bh->state != BUF_STATE_EMPTY) {
-                       rc = sleep_thread(fsg->common);
+                       rc = sleep_thread(fsg->common, true);
                        if (rc)
                                return rc;
                }
@@ -336,7 +336,7 @@ static int utp_do_write(struct fsg_dev *fsg, void *data, size_t size)
                }
 
                /* Wait for something to happen */
-               rc = sleep_thread(fsg->common);
+               rc = sleep_thread(fsg->common, true);
                if (rc)
                        return rc;
        }
@@ -461,7 +461,7 @@ static int utp_send_status(struct fsg_dev *fsg)
        /* Wait for the next buffer to become available */
        bh = fsg->common->next_buffhd_to_fill;
        while (bh->state != BUF_STATE_EMPTY) {
-               rc = sleep_thread(fsg->common);
+               rc = sleep_thread(fsg->common, true);
                if (rc)
                        return rc;
        }