1. 15 2月, 2015 1 次提交
    • H
      r8152: restore hw settings · 65bab84c
      hayeswang 提交于
      There is a capability which let the hw could change the settings
      automatically when the power change to ON. However, the USB reset
      would reset the settings to the hw default, so the driver has to
      restore the relative settings. Otherwise, it would influence the
      functions of the hw, and the compatibility for the USB hub and
      USB host controller.
      
      The relative settings are as following.
       - set the power down scale to 96.
       - enable the power saving function of USB 2.0.
       - disable the ALDPS of ECM mode.
       - set burst mode depending on the burst size.
       - enable the flow control of endpoint full.
       - set fifo empty boundary to 32448 bytes.
       - enable the function of exiting LPM when Rx OK occurs.
       - set the connect timer to 1.
      Signed-off-by: NHayes Wang <hayeswang@realtek.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      65bab84c
  2. 13 2月, 2015 1 次提交
    • A
      hso: fix rx parsing logic when skb allocation fails · 04166055
      Aleksander Morgado 提交于
      If skb allocation fails once the IP header has been received, the rx state is
      being set to WAIT_SYNC. The logic, though, shouldn't directly return, as the
      buffer may contain a full packet, and therefore the WAIT_SYNC state needs to be
      processed (resetting state to WAIT_IP, clearing rx_buf_size and re-initializing
      rx_buf_missing).
      
      So, just let the while loop continue so that in the next iteration the WAIT_SYNC
      state cleanly stops the loop. The WAIT_SYNC processing will be done just after
      that, only if the end of packet is flagged.
      Signed-off-by: NAleksander Morgado <aleksander@aleksander.es>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      04166055
  3. 12 2月, 2015 14 次提交
  4. 10 2月, 2015 5 次提交
  5. 09 2月, 2015 19 次提交