1. 04 Mar, 2016 33 commits
  2. 02 Mar, 2016 2 commits
  3. 29 Feb, 2016 5 commits
    • Stefan Agner's avatar
      usb: chipidea: imx: avoid EPROBE_DEFER printed as error · d3d8425a
      Stefan Agner authored
      Avoid printing an error if adding the device failes with return
      value EPROBE_DEFFER. This may happen e.g. due to missing GPIO for
      the vbus-supply regulator.
      Signed-off-by: default avatarStefan Agner <stefan@agner.ch>
      Signed-off-by: default avatarPeter Chen <peter.chen@nxp.com>
      d3d8425a
    • Peter Chen's avatar
      Revert "usb: chipidea: imx: enable CI_HDRC_SET_NON_ZERO_TTHA" · 1bc7da87
      Peter Chen authored
      This reverts commit e765bfb7.
      
      In the most of cases, we only use one transaction per frame and the
      frame rate may be high, If the platforms want to support multiple
      transactions but less frame rate cases like [1] and [2], it can set
      "non-zero-ttctrl-ttha" at dts.
      
      [1] http://www.spinics.net/lists/linux-usb/msg123125.html
      [2] http://www.spinics.net/lists/linux-usb/msg118679.htmlSigned-off-by: default avatarPeter Chen <peter.chen@nxp.com>
      1bc7da87
    • Peter Chen's avatar
      doc: usb: ci-hdrc-usb2: add property non-zero-ttctrl-ttha · 4670ba6c
      Peter Chen authored
      If this property is not set, the max packet size is 1023 bytes, and if
      the total of packet size for pervious transactions are more than 256 bytes,
      it can't accept any transactions within this frame. The use case is single
      transaction, but higher frame rate.
      
      If this property is set, the max packet size is 188 bytes, it can handle
      more transactions than above case, it can accept transactions until it
      considers the left room size within frame is less than 188 bytes, software
      needs to make sure it does not send more than 90%
      maximum_periodic_data_per_frame. The use case is multiple transactions, but
      less frame rate.
      Signed-off-by: default avatarPeter Chen <peter.chen@nxp.com>
      4670ba6c
    • Peter Chen's avatar
      usb: chipidea: add system interface for ttctrl.ttha · aa738187
      Peter Chen authored
      In chipidea IP RTL, there is a very limited design for siTD, the detail
      like below:
      There is no Max Packet Size at siTD, so it uses one constant for both
      Max Packet Size for packet and the packet size for the last transaction
      when considering schedule.
      If the ttctrl.ttha does not match against Hub Address field in siTD,
      this constant is 188 bytes, else this constant is 1023 bytes.
      
      If the ttctrl.ttha is non-zero value, RTL will use 188 as this constant,
      so it will lose the data if the packet size is larger than 188 bytes, eg,
      if we playback a wav which format is 48khz, 16 bits, 2 channels, the
      packet size will be 192bytes, but the controller will only send 188 bytes
      for this packet, the noise will be heared using USB audio card.
      The use case is single transaction, but higher frame rate.
      
      If the ttctr.ttha is zero value, we can send 1023 bytes within one
      transaction, but the controller will not accept the coming tranaction
      if it considers the schedule time is less than 1023 bytes. So the
      limitation is we can't schedule as many as transactions within frame.
      If the total bytes is already 256 bytes for previous transactions within
      frame, it can't accept another transaction. The use case is multiple
      transactions, but less frame rate.
      Signed-off-by: default avatarPeter Chen <peter.chen@nxp.com>
      aa738187
    • Li Jun's avatar
      usb: chipidea: udc: remove unused value assignment · 34d5732d
      Li Jun authored
      retval is assigned to be -EOVERFLOW but is overwritten later before
      it's used, remove this unused value assignment.
      Signed-off-by: default avatarLi Jun <jun.li@nxp.com>
      Signed-off-by: default avatarPeter Chen <peter.chen@nxp.com>
      34d5732d