Skip to content
Snippets Groups Projects
Forked from Reform / reform-boundary-uboot
Source project has a limited visibility.
  • Bin Meng's avatar
    ea7fad91
    dm: usb: storage: Fix broken read/write when both EHCD and xHCD are enabled · ea7fad91
    Bin Meng authored
    
    When EHCD and xHCD are enabled at the same time, USB storage device
    driver will fail to read/write from/to the storage device attached
    to the xHCI interface, due to its transfer blocks exceeds the xHCD
    driver limitation.
    
    With driver model, we have an API to get the controller's maximum
    transfer size and we can use that to determine the storage driver's
    capability of read/write.
    
    Note: the non-DM version driver is still broken with xHCD and the
    intent here is not to fix the non-DM one, since the xHCD itself is
    already broken in places like 3.0 hub support, etc.
    
    Signed-off-by: default avatarBin Meng <bmeng.cn@gmail.com>
    ea7fad91
    History
    dm: usb: storage: Fix broken read/write when both EHCD and xHCD are enabled
    Bin Meng authored
    
    When EHCD and xHCD are enabled at the same time, USB storage device
    driver will fail to read/write from/to the storage device attached
    to the xHCI interface, due to its transfer blocks exceeds the xHCD
    driver limitation.
    
    With driver model, we have an API to get the controller's maximum
    transfer size and we can use that to determine the storage driver's
    capability of read/write.
    
    Note: the non-DM version driver is still broken with xHCD and the
    intent here is not to fix the non-DM one, since the xHCD itself is
    already broken in places like 3.0 hub support, etc.
    
    Signed-off-by: default avatarBin Meng <bmeng.cn@gmail.com>