1. 17 12月, 2009 2 次提交
    • D
      NET: Add Ethernet driver for Octeon MGMT devices. · d6aa60a1
      David Daney 提交于
      The Octeon MGMT Ethernet ports are present in some members of the
      Octeon SOC family (cn52XX and cn56XX have them).
      
      The mdio bus connected to the MGMT PHYs is shared with the main
      octeon-ethernet driver, we force it to be loaded first by calling
      octeon_mdiobus_force_mod_depencency.  The platform devices for the
      MGMT Ethernet ports are added in
      arch/mips/cavium-octeon/octeon-platform.c, and the register
      definitions for the ports live in arch/mips/include/asm/octeon/ along
      with their ilk.
      
      Although it currently is the only driver in drivers/net/octeon, the
      directory was created looking forward to the day that octeon-ethernet
      will move there from its current home in drivers/staging.
      Signed-off-by: NDavid Daney <ddaney@caviumnetworks.com>
      Acked-by: NDavid S. Miller <davem@davemloft.net>
      Signed-off-by: NRalf Baechle <ralf@linux-mips.org>
      d6aa60a1
    • D
      NET: Add driver for Octeon MDIO buses. · 25d967b7
      David Daney 提交于
      The Octeon SOC has two types of Ethernet ports, each type with its own
      driver.  However, the PHYs for all the ports are controlled by a
      common MDIO bus.  Because the mdio driver is not associated with a
      particular driver, but is instead a system level resource, we create s
      stand-alone driver for it.
      
      As for the driver, we put the register definitions in
      arch/mips/include/asm/octeon where most of the other Octeon register
      definitions live.  This is a platform driver with the platform device
      for "mdio-octeon" being registered in the platform startup code.
      Signed-off-by: NDavid Daney <ddaney@caviumnetworks.com>
      Acked-by: NDavid S. Miller <davem@davemloft.net>
      Signed-off-by: NRalf Baechle <ralf@linux-mips.org>
      25d967b7
  2. 16 12月, 2009 7 次提交
  3. 15 12月, 2009 2 次提交
  4. 14 12月, 2009 8 次提交
  5. 12 12月, 2009 15 次提交
  6. 11 12月, 2009 4 次提交
  7. 09 12月, 2009 2 次提交
    • A
      gianfar: Fix build with CONFIG_NET_POLL_CONTROLLER=y · 43de004b
      Anton Vorontsov 提交于
      commit 46ceb60c ("gianfar: Add
      Multiple group Support") introduced the following build error
      with CONFIG_NET_POLL_CONTROLLER=y:
      
        CC      ggianfar.o
      ggianfar.c: In function 'gfar_netpoll':
      ggianfar.c:2653: error: invalid storage class for function 'gfar_interrupt'
      ggianfar.c:2652: warning: ISO C90 forbids mixed declarations and code
      ggianfar.c:2681: error: invalid storage class for function 'adjust_link'
      ggianfar.c:2764: error: invalid storage class for function 'gfar_set_multi'
      ggianfar.c:2855: error: invalid storage class for function 'gfar_clear_exact_match'
      ggianfar.c:2877: error: invalid storage class for function 'gfar_set_hash_for_addr'
      ggianfar.c:2898: error: invalid storage class for function 'gfar_set_mac_for_addr'
      ggianfar.c:2922: error: invalid storage class for function 'gfar_error'
      ggianfar.c:3020: warning: ISO C90 forbids mixed declarations and code
      ggianfar.c:3032: error: invalid storage class for function 'gfar_init'
      ggianfar.c:3037: error: invalid storage class for function 'gfar_exit'
      ggianfar.c:3041: error: initializer element is not constant
      ggianfar.c:3042: error: initializer element is not constant
      ggianfar.c:3042: warning: ISO C90 forbids mixed declarations and code
      ggianfar.c:3042: error: expected declaration or statement at end of input
      make[1]: *** [ggianfar.o] Error 1
      
      This patch fixes the issue.
      Reported-by: NBenjamin Herrenschmidt <benh@kernel.crashing.org>
      Signed-off-by: NAnton Vorontsov <avorontsov@ru.mvista.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      43de004b
    • S
      b44 WOL setup: one-bit-off stack corruption kernel panic fix · e0188829
      Stanislav Brabec 提交于
      About 50% of shutdowns of b44 Ethernet adapter ends by kernel panic
      with kernels compiled with stack-protector.
      
      Checking b44_magic_pattern() return values, one call of
      b44_magic_pattern() returns 127. It means, that set_bit(128, pmask)
      was called on line 1509. It means that bit 0 of 17th byte of pmask was
      overwritten. But pmask has only 16 bytes. Stack corruption happens.
       
      It seems that set_bit() on line 1509 always writes one bit off.
      
      The fix does not only solve the stack corruption, but also makes Wake
      On LAN working on my onboard B44 on Asus A7V-333X mainboard.
      
      It seems that this problem affects all kernel versions since commit
      725ad800 ([PATCH] b44: add wol for old nic) on 2006-06-20.
      Signed-off-by: NStanislav Brabec <sbrabec@suse.cz>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      e0188829