]> git.baikalelectronics.ru Git - kernel.git/commit
net: qcom/emac: move phy init code to separate files
authorTimur Tabi <timur@codeaurora.org>
Thu, 8 Dec 2016 19:24:20 +0000 (13:24 -0600)
committerDavid S. Miller <davem@davemloft.net>
Sat, 10 Dec 2016 03:11:02 +0000 (22:11 -0500)
commitc5fe781b21884b7dde4fb339707e551f2df8c54d
tree2ea604d7ae61ee4b2afffe7adfbf08c2681d6992
parent10a546c33a377dd5dbf132c0bd47d2006462e22a
net: qcom/emac: move phy init code to separate files

The internal PHY of the EMAC differs on each SOC, and the list will
only continue to grow.  By separating the code into individual files,
we can add support for more SOCs more cleanly.

Note: The internal PHY is also sometimes called the SGMII device.

We also stop referring to the various PHY variations by version number,
so no more "v2", "v3", etc.  Instead, the devices are named after the
SOC they are, which is in sync with the device tree property names.

Future patches will probably rearrange more code among the files.

Signed-off-by: Timur Tabi <timur@codeaurora.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/qualcomm/emac/Makefile
drivers/net/ethernet/qualcomm/emac/emac-sgmii-fsm9900.c [new file with mode: 0644]
drivers/net/ethernet/qualcomm/emac/emac-sgmii-qdf2432.c [new file with mode: 0644]
drivers/net/ethernet/qualcomm/emac/emac-sgmii.c
drivers/net/ethernet/qualcomm/emac/emac-sgmii.h