Re: [PATCH v2] usb: usb_storage: do not align length of request for CBW to maxp size

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, 24 Mar 2011, Mian Yousaf Kaukab wrote:

> Mass-storage and file-storage gadgets align the length to maximum-packet-size
> when preparing the request to receive CBW. This is unnecessary and prevents the
> controller driver from knowing that a short-packet is expected.
> 
> It is incorrect to set short_not_ok when preparing the request to receive CBW.
> CBW will be a short-packet so short_not_ok must not be set.
> 
> This makes bh->bulk_out_intended_length unnecessary so it is also removed.
> 
> Signed-off-by: Mian Yousaf Kaukab <mian.yousaf.kaukab@xxxxxxxxxxxxxx>

For the file_storage.c and storage_common.c parts:

Acked-by: Alan Stern <stern@xxxxxxxxxxxxxxxxxxx>

--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux