usb: storage: Refactor to use max_xfer_blk from struct us_data
authorBin Meng <bmeng.cn@gmail.com>
Thu, 7 Sep 2017 13:13:20 +0000 (06:13 -0700)
committerMarek Vasut <marek.vasut+renesas@gmail.com>
Wed, 27 Sep 2017 10:12:22 +0000 (12:12 +0200)
commit6158d0b42411165d34635a2ddfea17e12dce3329
tree82f275d5aeb53aef1e7e95da857075b993ccd6a9
parenta23aa66baa3725e8707da46b18c645ad1a7243a0
usb: storage: Refactor to use max_xfer_blk from struct us_data

This adds a new memeber max_xfer_blk in struct us_data to record
the maximum number of transfer blocks for the storage device.

It is set per HCD setting, and so far is to 65535 for EHCD and 20
for everything else.

Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
common/usb_storage.c