]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - drivers/usb/core/message.c
USB: fix cannot work usb storage when using ohci-sm501
[karo-tx-linux.git] / drivers / usb / core / message.c
index e819e5359d5765e1d2e1540432a6aa4981fa5d0a..3e69266e1f4db327c64f90d693aec503c887722b 100644 (file)
@@ -394,7 +394,9 @@ int usb_sg_init(struct usb_sg_request *io, struct usb_device *dev,
        if (!io->urbs)
                goto nomem;
 
-       urb_flags = URB_NO_TRANSFER_DMA_MAP | URB_NO_INTERRUPT;
+       urb_flags = URB_NO_INTERRUPT;
+       if (dma)
+               urb_flags |= URB_NO_TRANSFER_DMA_MAP;
        if (usb_pipein(pipe))
                urb_flags |= URB_SHORT_NOT_OK;