1. 31 May, 2013 3 commits
    • Michal Simek's avatar
      net: emaclite: Let's make xemaclite_adjust_link static · 3fb99fa7
      Michal Simek authored
      xemaclite_adjust_link is used locally.
      It removes sparse warning:
      drivers/net/ethernet/xilinx/xilinx_emaclite.c:916:6: warning:
      symbol 'xemaclite_adjust_link' was not declared. Should it be static?
      Signed-off-by: default avatarMichal Simek <michal.simek@xilinx.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      3fb99fa7
    • Michal Simek's avatar
      net: emaclite: Support multiple phys connected to one MDIO bus · e0a3bc65
      Michal Simek authored
      For system which contains at least two ethernet IP where
      one IP manage MDIO bus with several PHYs.
      
      Example dts node:
      ethernet_mac0: ethernet@81000000 {
      	compatible = "xlnx,xps-ethernetlite-1.00.a";
      	device_type = "network";
      	interrupt-parent = <&xps_intc_0>;
      	interrupts = < 1 0 >;
      		local-mac-address = [ 00 0a 35 00 db bb ];
      	phy-handle = <&ethernet_mac0_phy0>;
      	reg = < 0x81000000 0x10000 >;
      	xlnx,duplex = <0x1>;
      	xlnx,family = "spartan3e";
      	xlnx,include-internal-loopback = <0x0>;
      	xlnx,include-mdio = <0x1>;
      	xlnx,rx-ping-pong = <0x0>;
      	xlnx,tx-ping-pong = <0x0>;
      	ethernet_mac0_mdio {
      		#address-cells = <1>;
      		#size-cells = <0>;
      		ethernet_mac0_phy0: phy@1 {
      			reg = <0x1>;
      		} ;
      		ethernet_mac0_phy1: phy@3 {
      			reg = <0x3>;
      		} ;
      	} ;
      } ;
      ethernet_mac2: ethernet@81040000 {
      	compatible = "xlnx,xps-ethernetlite-1.00.a";
      	device_type = "network";
      	interrupt-parent = <&xps_intc_0>;
      	interrupts = < 11 0 >;
      		local-mac-address = [ 00 0a 35 00 db bb ];
      	phy-handle = <&ethernet_mac0_phy1>;
      	reg = < 0x81040000 0x10000 >;
      	xlnx,duplex = <0x1>;
      	xlnx,family = "spartan3e";
      	xlnx,include-internal-loopback = <0x0>;
      	xlnx,include-mdio = <0x0>;
      	xlnx,rx-ping-pong = <0x0>;
      	xlnx,tx-ping-pong = <0x0>;
      } ;
      Signed-off-by: default avatarMichal Simek <michal.simek@xilinx.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      e0a3bc65
    • Michal Simek's avatar
      net: emaclite: Report failures in mdio setup · ccfecdfe
      Michal Simek authored
      Be more verbose when any problem happens.
      Signed-off-by: default avatarMichal Simek <michal.simek@xilinx.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      ccfecdfe
  2. 30 May, 2013 7 commits
  3. 29 May, 2013 30 commits