1. 22 4月, 2017 8 次提交
  2. 07 4月, 2017 1 次提交
  3. 05 4月, 2017 1 次提交
  4. 31 3月, 2017 8 次提交
  5. 28 3月, 2017 2 次提交
  6. 22 3月, 2017 4 次提交
  7. 17 3月, 2017 1 次提交
  8. 09 3月, 2017 1 次提交
    • C
      net: ibm: emac: fix regression caused by emac_dt_phy_probe() · b793f081
      Christian Lamparter 提交于
      Julian Margetson reported a panic on his SAM460EX with Kernel 4.11-rc1:
      | Unable to handle kernel paging request for data at address 0x00000014
      | Oops: Kernel access of bad area, sig: 11 [#1]
      | PREEMPT
      | Canyonlands
      | Modules linked in:
      | CPU: 0 PID: 1 Comm: swapper Not tainted [...]
      | task: ea838000 task.stack: ea836000
      | NIP: c0599f5c LR: c0599dd8 CTR: 00000000
      | REGS: ea837c80 TRAP: 0300   Not tainted [...]
      | MSR: 00029000 <CE,EE,ME>
      |  CR: 24371242  XER: 20000000
      | DEAR: 00000014 ESR: 00000000
      | GPR00: c0599ce8 ea837d30 ea838000 c0e52dcc c0d56ffb [...]
      | NIP [c0599f5c] emac_probe+0xfb4/0x1304
      | LR [c0599dd8] emac_probe+0xe30/0x1304
      | Call Trace:
      | [ea837d30] [c0599ce8] emac_probe+0xd40/0x1304 (unreliable)
      | [ea837d80] [c0533504] platform_drv_probe+0x48/0x90
      | [ea837da0] [c0531c14] driver_probe_device+0x15c/0x2c4
      | [ea837dd0] [c0531e04] __driver_attach+0x88/0xb0
      | ---[ end trace ... ]---
      
      The problem is caused by emac_dt_phy_probe() returing success (0)
      for existing device-trees configurations that do not specify a
      "phy-handle" property. This caused the code to skip the existing
      phy probe and setup. Which led to essential phy related
      data-structures being uninitialized.
      
      This patch also removes the unused variable in emac_dt_phy_connect().
      
      Fixes: a577ca6b ("net: emac: add support for device-tree based PHY discovery and setup")
      Reported-by: NJulian Margetson <runaway@candw.ms>
      Signed-off-by: NChristian Lamparter <chunkeey@googlemail.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      b793f081
  9. 08 3月, 2017 2 次提交
  10. 23 2月, 2017 1 次提交
    • C
      net: emac: add support for device-tree based PHY discovery and setup · a577ca6b
      Christian Lamparter 提交于
      This patch adds glue-code that allows the EMAC driver to interface
      with the existing dt-supported PHYs in drivers/net/phy.
      
      Because currently, the emac driver maintains a small library of
      supported phys for in a private phy.c file located in the drivers
      directory.
      
      The support is limited to mostly single ethernet transceiver like the:
      CIS8201, BCM5248, ET1011C, Marvell 88E1111 and 88E1112, AR8035.
      
      However, routers like the Netgear WNDR4700 and Cisco Meraki MX60(W)
      have a 5-port switch (AR8327N) attached to the EMAC. The switch chip
      is supported by the qca8k mdio driver, which uses the generic phy
      library. Another reason is that PHYLIB also supports the BCM54610,
      which was used for the Western Digital My Book Live.
      
      This will now also make EMAC select PHYLIB.
      Signed-off-by: NChristian Lamparter <chunkeey@googlemail.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      a577ca6b
  11. 20 2月, 2017 3 次提交
  12. 16 2月, 2017 2 次提交
  13. 15 2月, 2017 1 次提交
    • T
      ibmvnic: Fix initial MTU settings · f39f0d1e
      Thomas Falcon 提交于
      In the current driver, the MTU is set to the maximum value
      capable for the backing device. This decision turned out to
      be a mistake as it led to confusion among users. The expected
      initial MTU value used for other IBM vNIC capable operating
      systems is 1500, with the maximum value (9000) reserved for
      when Jumbo frames are enabled. This patch sets the MTU to
      the default value for a net device.
      
      It also corrects a discrepancy between MTU values received from
      firmware, which includes the ethernet header length, and net
      device MTU values.
      
      Finally, it removes redundant min/max MTU assignments after device
      initialization.
      Signed-off-by: NThomas Falcon <tlfalcon@linux.vnet.ibm.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      f39f0d1e
  14. 12 2月, 2017 2 次提交
  15. 06 2月, 2017 1 次提交
  16. 31 1月, 2017 1 次提交
  17. 25 1月, 2017 1 次提交
    • T
      ibmveth: Add a proper check for the availability of the checksum features · 23d28a85
      Thomas Huth 提交于
      When using the ibmveth driver in a KVM/QEMU based VM, it currently
      always prints out a scary error message like this when it is started:
      
       ibmveth 71000003 (unregistered net_device): unable to change
       checksum offload settings. 1 rc=-2 ret_attr=71000003
      
      This happens because the driver always tries to enable the checksum
      offloading without checking for the availability of this feature first.
      QEMU does not support checksum offloading for the spapr-vlan device,
      thus we always get the error message here.
      According to the LoPAPR specification, the "ibm,illan-options" property
      of the corresponding device tree node should be checked first to see
      whether the H_ILLAN_ATTRIUBTES hypercall and thus the checksum offloading
      feature is available. Thus let's do this in the ibmveth driver, too, so
      that the error message is really only limited to cases where something
      goes wrong, and does not occur if the feature is just missing.
      Signed-off-by: NThomas Huth <thuth@redhat.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      23d28a85