1. 18 4月, 2013 1 次提交
  2. 12 4月, 2013 11 次提交
  3. 09 4月, 2013 1 次提交
  4. 31 3月, 2013 1 次提交
  5. 30 3月, 2013 1 次提交
  6. 17 3月, 2013 1 次提交
  7. 15 3月, 2013 1 次提交
  8. 13 3月, 2013 1 次提交
    • B
      net: qmi_wwan: set correct altsetting for Gobi 1K devices · b701f16d
      Bjørn Mork 提交于
      commit bd877e48 ("net: qmi_wwan: use a single bind function for
      all device types") made Gobi 1K devices fail probing.
      
      Using the number of endpoints in the default altsetting to decide
      whether the function use one or two interfaces is wrong.  Other
      altsettings may provide more endpoints.
      
      With Gobi 1K devices, USB interface #3's altsetting is 0 by default, but
      altsetting 0 only provides one interrupt endpoint and is not sufficent
      for QMI.  Altsetting 1 provides all 3 endpoints required for qmi_wwan
      and works with QMI. Gobi 1K layout for intf#3 is:
      
          Interface Descriptor:  255/255/255
            bInterfaceNumber        3
            bAlternateSetting       0
            Endpoint Descriptor:  Interrupt IN
          Interface Descriptor:  255/255/255
            bInterfaceNumber        3
            bAlternateSetting       1
            Endpoint Descriptor:  Interrupt IN
            Endpoint Descriptor:  Bulk IN
            Endpoint Descriptor:  Bulk OUT
      
      Prior to commit bd877e48, we would call usbnet_get_endpoints
      before giving up finding enough endpoints. Removing the early
      endpoint number test and the strict functional descriptor
      requirement allow qmi_wwan_bind to continue until
      usbnet_get_endpoints has made the final attempt to collect
      endpoints.  This restores the behaviour from before commit
      bd877e48 without losing the added benefit of using a single bind
      function.
      
      The driver has always required a CDC Union functional descriptor
      for two-interface functions. Using the existence of this
      descriptor to detect two-interface functions is the logically
      correct method.
      Reported-by: NDan Williams <dcbw@redhat.com>
      Signed-off-by: NBjørn Mork <bjorn@mork.no>
      Tested-by: NDan Williams <dcbw@redhat.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      b701f16d
  9. 03 3月, 2013 1 次提交
    • F
      ax88179_178a: ASIX AX88179_178A USB 3.0/2.0 to gigabit ethernet adapter driver · e2ca90c2
      Freddy Xin 提交于
      This is a resubmission.
      Added kfree() in ax88179_get_eeprom to prevent memory leakage.
      Modified "__le16 rxctl" to "u16 rxctl" in "struct ax88179_data" and removed pointless casts.
      Removed asix_init and asix_exit functions and added "module_usb_driver(ax88179_178a_driver)".
      Fixed endianness issue on big endian systems and verified this driver on iBook G4.
      Removed steps that change net->features in ax88179_set_features function.
      Added "const" to ethtool_ops structure and fixed the coding style of AX88179_BULKIN_SIZE array.
      Fixed the issue that the default MTU is not 1500.
      Added ax88179_change_mtu function and enabled the hardware jumbo frame function to support an
      MTU higher than 1500.
      Fixed indentation and empty line coding style errors.
      The _nopm version usb functions were added to access register in suspend and resume functions.
      Serveral variables allocted dynamically were removed and replaced by stack variables.
      ax88179_get_eeprom were modified from asix_get_eeprom in asix_common.
      
      This patch adds a driver for ASIX's AX88179 family of USB 3.0/2.0
      to gigabit ethernet adapters. It's based on the AX88xxx driver but
      the usb commands used to access registers for AX88179 are completely different.
      This driver had been verified on x86 system with AX88179/AX88178A and
      Sitcomm LN-032 USB dongles.
      Signed-off-by: NFreddy Xin <freddy@asix.com.tw>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      e2ca90c2
  10. 28 2月, 2013 2 次提交
    • G
      usb/net/asix_devices: Add USBNET HG20F9 ethernet dongle · 45af3fb4
      Glen Turner 提交于
      This USB ethernet adapter was purchased in anodyne packaging
      from the computer store adjacent to linux.conf.au 2013 in
      Canberra (Australia). A web search shows other recent
      purchasers in Lancaster (UK) and Seattle (USA). Just like an
      emergent virus, our age of e-commerce and airmail allows
      underdocumented hardware to spread around the world instantly
      using the vector of ridiculously low prices.
      
      Paige Thompson, infected via eBay, discovered that the HG20F9
      is a copy of the Asix 88772B; many viruses copy the RNA of
      other viruses. See Paige's work at
      <https://github.com/paigeadele/HG20F9>.
      This patch uses her discovery to update the restructured Asix
      driver in the current kernel.
      
      Just as some viruses inhabit seemingly-healthy cells, the
      HG20F9 uses the Vendor ID 0x066b assigned to Linksys Inc.
      For the present there is no clash of Product ID 0x20f9.
      Signed-off-by: NGlen Turner <gdt@gdt.id.au>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      45af3fb4
    • B
      net: cdc_ncm: tag Huawei devices (e.g. E5331) with FLAG_WWAN · 1f84eab4
      Bjørn Mork 提交于
      Tag all Huawei NCM devices as WWAN modems, as we don't know of any which
      are not.  This is necessary for userspace clients to know that the device
      requires further setup on e.g. an AT-capable serial ports before
      connectivity is available.
      Signed-off-by: NBjørn Mork <bjorn@mork.no>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      1f84eab4
  11. 26 2月, 2013 3 次提交
  12. 19 2月, 2013 1 次提交
  13. 15 2月, 2013 1 次提交
    • B
      net: cdc_ncm: fix probing of devices with multiple control interface altsettings · f350ca03
      Bjørn Mork 提交于
      commit bd329e12 ("net: cdc_ncm: do not bind to NCM compatible MBIM devices")
      added a test for a CDC MBIM altsetting, implementing the cdc_ncm part of
      MBIM backward compatibility support.  This intentionally made the driver
      behave differently for CDC NCM devices with 2 alternate settings for the
      Communication interface, depending on whether or not CONFIG_USB_NET_CDC_MBIM
      was enabled.  This is correct iff alternate setting #1 really *is* a MBIM
      setting.  If not, then NCM probing will use a different altsetting than before,
      possibly causing probing failures depending on CONFIG_USB_NET_CDC_MBIM.
      
      Fix by setting the altsetting back to default after the test, restoring the
      previous behaviour for non MBIM devices.
      
      This bug causes probing of Huawei E3276 devices to fail when the MBIM driver
      is enabled, because these devices have a second alternate setting with no CDC
      functional descriptors.
      
      Cc: Greg Suarez <gsuarez@smithmicro.com>
      Cc: Alexey Orishko <alexey.orishko@stericsson.com>
      Reported-and-tested-by: NJonathan A. <yo.natan@hotmail.com>
      Signed-off-by: NBjørn Mork <bjorn@mork.no>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      f350ca03
  14. 13 2月, 2013 1 次提交
    • B
      net: qmi_wwan: add Yota / Megafon M100-1 4g modem · 1bf014e5
      Bjørn Mork 提交于
      Interface layout:
      
       00 CD-ROM
       01 debug COM port
       02 AP control port
       03 modem
       04 usb-ethernet
      
      Bus=01 Lev=02 Prnt=02 Port=01 Cnt=02 Dev#=  4 Spd=480  MxCh= 0
      D:  Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs=  1
      P:  Vendor=0408 ProdID=ea42 Rev= 0.00
      S:  Manufacturer=Qualcomm, Incorporated
      S:  Product=Qualcomm CDMA Technologies MSM
      S:  SerialNumber=353568051xxxxxx
      C:* #Ifs= 5 Cfg#= 1 Atr=e0 MxPwr=500mA
      I:* If#= 0 Alt= 0 #EPs= 2 Cls=08(stor.) Sub=06 Prot=50 Driver=usb-storage
      E:  Ad=01(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms
      E:  Ad=81(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
      I:* If#= 1 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=ff Prot=ff Driver=(none)
      E:  Ad=82(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
      E:  Ad=02(O) Atr=02(Bulk) MxPS= 512 Ivl=4ms
      I:* If#= 2 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=ff Prot=ff Driver=(none)
      E:  Ad=83(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
      E:  Ad=03(O) Atr=02(Bulk) MxPS= 512 Ivl=4ms
      I:* If#= 3 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=ff Prot=ff Driver=(none)
      E:  Ad=84(I) Atr=03(Int.) MxPS=  64 Ivl=2ms
      E:  Ad=85(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
      E:  Ad=04(O) Atr=02(Bulk) MxPS= 512 Ivl=4ms
      I:* If#= 4 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=ff Prot=ff Driver=(none)
      E:  Ad=86(I) Atr=03(Int.) MxPS=  64 Ivl=2ms
      E:  Ad=87(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
      E:  Ad=05(O) Atr=02(Bulk) MxPS= 512 Ivl=4ms
      Signed-off-by: NBjørn Mork <bjorn@mork.no>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      1bf014e5
  15. 09 2月, 2013 1 次提交
  16. 07 2月, 2013 2 次提交
  17. 05 2月, 2013 2 次提交
    • J
      drivers: net: usb: Remove unnecessary alloc/OOM messages · 38673c82
      Joe Perches 提交于
      alloc failures already get standardized OOM
      messages and a dump_stack.
      Signed-off-by: NJoe Perches <joe@perches.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      38673c82
    • B
      net: usbnet: fix tx_dropped statistics · bf414b36
      Bjørn Mork 提交于
      It is normal for minidrivers accumulating frames to return NULL
      from their tx_fixup function. We do not want to count this as a
      drop, or log any debug messages.  A different exit path is
      therefore chosen for such drivers, skipping the debug message
      and the tx_dropped increment.
      
      The test for accumulating drivers was however completely bogus,
      making the exit path selection depend on whether the user had
      enabled tx_err logging or not. This would arbitrarily mess up
      accounting for both accumulating and non-accumulating minidrivers,
      and would result in unwanted debug messages for the accumulating
      drivers.
      
      Fix by testing for FLAG_MULTI_PACKET instead, which probably was
      the intention from the beginning.  This usage match the documented
      behaviour of this flag:
      
       Indicates to usbnet, that USB driver accumulates multiple IP packets.
       Affects statistic (counters) and short packet handling.
      Signed-off-by: NBjørn Mork <bjorn@mork.no>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      bf414b36
  18. 31 1月, 2013 2 次提交
  19. 28 1月, 2013 2 次提交
  20. 24 1月, 2013 1 次提交
    • B
      net: cdc_mbim: send ZLP only for the specific buggy device · 844e88f0
      Bjørn Mork 提交于
      Reverting 328d7b8a and instead adding an exception for the
      Sierra Wireless MC7710.
      
      commit 328d7b8a (net: cdc_mbim: send ZLP after max sized NTBs)
      added a workaround for an issue observed on one specific device.
      Concerns were raised that this workaround adds a performance
      penalty to all devices based on questionable, if not buggy,
      behaviour of a single device:
      
       "If you add ZLP for NTBs of dwNtbOutMaxSize, you are heavily affecting CPU
        load, increasing interrupt load by factor of 2 in high load traffic
        scenario and possibly decreasing throughput for all other devices
        which behaves correctly."
      
       "The idea of NCM was to avoid extra ZLPs. If your transfer is exactly
        dwNtbOutMaxSize, it's known, you can submit such request on the receiver
        side and you do not need any EOT indicatation, so the frametime can be
        used for useful data."
      
      Adding a device specific exception to prevent the workaround from
      affecting well behaved devices.
      
      The assumption here is that needing a ZLP is truly an *exception*.
      We do not yet have enough data to verify this.  The generic
      workaround in commit 328d7b8a should be considered acceptable despite
      the performance penalty if the exception list becomes a maintainance
      hassle.
      
      Cc: Alexey ORISHKO <alexey.orishko@stericsson.com>
      Cc: Yauheni Kaliuta <y.kaliuta@gmail.com>
      Signed-off-by: NBjørn Mork <bjorn@mork.no>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      844e88f0
  21. 22 1月, 2013 3 次提交