From 5b6d8a7224a7963be4cd27c4e7a4f52313d1903b Mon Sep 17 00:00:00 2001 From: supriya karanth Date: Fri, 8 Jun 2012 11:07:00 +0200 Subject: usb: gadget: storage: Add short_not_ok flag The short_not_ok flag is needed by the musb driver to allow mass storage data to go over DMA in mode1. Signed-off-by: supriya karanth --- drivers/usb/gadget/f_mass_storage.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/usb/gadget/f_mass_storage.c b/drivers/usb/gadget/f_mass_storage.c index 8473424e31f..63108da7589 100644 --- a/drivers/usb/gadget/f_mass_storage.c +++ b/drivers/usb/gadget/f_mass_storage.c @@ -960,6 +960,7 @@ static int do_write(struct fsg_common *common) * the bulk-out maxpacket size. */ set_bulk_out_req_length(common, bh, amount); + bh->outreq->short_not_ok = 1; if (!start_out_transfer(common, bh)) /* Dunno what to do if common->fsg is NULL */ return -EIO; @@ -1617,6 +1618,7 @@ static int throw_away_data(struct fsg_common *common) * the bulk-out maxpacket size. */ set_bulk_out_req_length(common, bh, amount); + bh->outreq->short_not_ok = 1; if (!start_out_transfer(common, bh)) /* Dunno what to do if common->fsg is NULL */ return -EIO; -- cgit v1.2.3