Skip to content
Snippets Groups Projects
Select Git revision
4 results

xhci.c

Blame
  • Forked from Reform / reform-boundary-uboot
    Loading
    • Bin Meng's avatar
      b5aa857b
      usb: xhci: Fix max packet size for full speed device endpoint 0 · b5aa857b
      Bin Meng authored
      
      In xhci_check_maxpacket(), the control endpoint 0 max packet size
      is wrongly taken from the interface's endpoint descriptor. However
      the default endpoint 0 does not come with an endpoint descriptor
      hence is not included in the interface structure. Change to use
      epmaxpacketin[0] instead.
      
      The other bug in this routine is that when setting max packet size
      to the xHC endpoint 0 context, it does not clear its previous value
      at all before programming a new one.
      
      Signed-off-by: default avatarBin Meng <bmeng.cn@gmail.com>
      b5aa857b
      History
      usb: xhci: Fix max packet size for full speed device endpoint 0
      Bin Meng authored
      
      In xhci_check_maxpacket(), the control endpoint 0 max packet size
      is wrongly taken from the interface's endpoint descriptor. However
      the default endpoint 0 does not come with an endpoint descriptor
      hence is not included in the interface structure. Change to use
      epmaxpacketin[0] instead.
      
      The other bug in this routine is that when setting max packet size
      to the xHC endpoint 0 context, it does not clear its previous value
      at all before programming a new one.
      
      Signed-off-by: default avatarBin Meng <bmeng.cn@gmail.com>