Skip to content
  • Chanho Park's avatar
    usb: dwc3: set up burst size only superspeed mode · d2e9a13a
    Chanho Park authored
    
    
    When connection is established non-ss mode, endpoint.maxburst is correctly set
    to 0, this means that current code will set maxburst bitfield on DEPCFG's
    parameter 0 to the highest possible value (0x0f) which is wrong.
    
    Even though this hasn't caused any issues so far (HW seems to ignore that when
    not running in SS mode) we want to make sure maxburst bitfield is only set to
    anything other than zero if we're running on SuperSpeed mode. In order to
    achieve that, let's check for gadget's operating speed before setting maxburst
    bitfield when issuing DEPCFG command.
    
    [ balbi@ti.com : improved commit log a bit in order to clarify the situation ]
    
    Signed-off-by: default avatarChanho Park <chanho61.park@samsung.com>
    Signed-off-by: default avatarKyungmin Park <kyungmin.park@samsung.com>
    Signed-off-by: default avatarFelipe Balbi <balbi@ti.com>
    d2e9a13a