1. 05 1月, 2016 1 次提交
  2. 09 12月, 2015 1 次提交
    • P
      r8152: fix lockup when runtime PM is enabled · 90186af4
      Peter Wu 提交于
      When an interface is brought up which was previously suspended (via
      runtime PM), it would hang. This happens because napi_disable is called
      before napi_enable.
      
      Solve this by avoiding napi_enable in the resume during open function
      (netif_running is true when open is called, IFF_UP is set after a
      successful open; netif_running is false when close is called, but IFF_UP
      is then still set).
      
      While at it, remove WORK_ENABLE check from rtl8152_open (introduced with
      the original change) because it cannot happen:
      
       - After this patch, runtime resume will not set it during rtl8152_open.
       - When link is up, rtl8152_open is not called.
       - When link is down during system/auto suspend/resume, it is not set.
      
      Fixes: 41cec84c ("r8152: don't enable napi before rx ready")
      Link: https://lkml.kernel.org/r/20151205105912.GA1766@alSigned-off-by: NPeter Wu <peter@lekensteyn.nl>
      Acked-by: NHayes Wang <hayeswang@realtek.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      90186af4
  3. 10 9月, 2015 2 次提交
  4. 01 8月, 2015 1 次提交
  5. 31 7月, 2015 2 次提交
  6. 27 7月, 2015 3 次提交
  7. 23 7月, 2015 1 次提交
  8. 09 7月, 2015 1 次提交
  9. 10 5月, 2015 1 次提交
  10. 01 4月, 2015 1 次提交
  11. 20 2月, 2015 3 次提交
  12. 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
  13. 08 2月, 2015 7 次提交
  14. 20 1月, 2015 2 次提交
  15. 15 1月, 2015 1 次提交
  16. 14 1月, 2015 1 次提交
  17. 13 1月, 2015 2 次提交
  18. 07 1月, 2015 1 次提交
  19. 10 12月, 2014 1 次提交
    • H
      r8152: redefine REALTEK_USB_DEVICE · d9a28c5b
      hayeswang 提交于
      Redefine REALTEK_USB_DEVICE for the desired USB interface for probe().
      There are three USB interfaces for the device. USB_CLASS_COMM and
      USB_CLASS_CDC_DATA are for ECM mode (config #2). USB_CLASS_VENDOR_SPEC
      is for the vendor mode (config #1). However, we are not interesting
      in USB_CLASS_CDC_DATA for probe(), so redefine REALTEK_USB_DEVICE
      to ignore the USB interface class of USB_CLASS_CDC_DATA.
      Signed-off-by: NHayes Wang <hayeswang@realtek.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      d9a28c5b
  20. 22 11月, 2014 2 次提交
  21. 13 11月, 2014 3 次提交
  22. 07 11月, 2014 2 次提交