]> git.baikalelectronics.ru Git - kernel.git/commit
net/fsl: modify xgmac_mdio for little endian SoCs
authorShaohui Xie <Shaohui.Xie@freescale.com>
Mon, 16 Mar 2015 10:56:29 +0000 (18:56 +0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 16 Mar 2015 20:27:51 +0000 (16:27 -0400)
commit137a0452ff4a618dee116d2d041458ed15028ef9
tree106c0c2d42807aea4d6847c4fdd4de80b08894b7
parentc740435d49139a52b2138ea46e3177cfd27a04c6
net/fsl: modify xgmac_mdio for little endian SoCs

MDIO controller on little endian Socs, e.g. ls2085a is similar to the
controller on big endian Socs, but the MDIO access is little endian,
we use I/O accessor function to handle endianness, so the driver can
run on little endian Socs. A property "little-endian" is used
in DTS to indicate the MDIO is little endian, if driver probes the
property, driver will access MDIO in little endian, otherwise, driver
works in big endian by default.

Signed-off-by: Shaohui Xie <Shaohui.Xie@freescale.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/freescale/xgmac_mdio.c