diff options
author | supriya karanth <supriya.karanth@stericsson.com> | 2012-06-08 11:07:00 +0200 |
---|---|---|
committer | Philippe Langlais <philippe.langlais@stericsson.com> | 2012-06-11 09:40:52 +0200 |
commit | 1a6aad9e0785b7327809620d9e78c3ec01feb1d8 (patch) | |
tree | ac32b8ab5823e39d898bc6c1b93efcdef69189f8 | |
parent | 37055bd474bfd00f0f378297f9e542737d51f2c7 (diff) |
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 <supriya.karanth@stericsson.com>
-rw-r--r-- | drivers/usb/gadget/f_mass_storage.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/usb/gadget/f_mass_storage.c b/drivers/usb/gadget/f_mass_storage.c index ee8ceec0156..57d0ef7a05b 100644 --- a/drivers/usb/gadget/f_mass_storage.c +++ b/drivers/usb/gadget/f_mass_storage.c @@ -961,6 +961,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; @@ -1618,6 +1619,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; |