]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - drivers/usb/gadget/function/fsl_updater.c
FSL: usb: gadget: utp:
[karo-tx-linux.git] / drivers / usb / gadget / function / fsl_updater.c
index 83dcd568efb5171860e37e5bbfa482a0440cb58d..618df6e29deaba977fb28f02bcef3f23824ec6f6 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;
        }