]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commit
drivers: net: xgene: Add backward compatibility
authorIyappan Subramanian <isubramanian@apm.com>
Tue, 26 Jul 2016 00:12:41 +0000 (17:12 -0700)
committerLuis Henriques <luis.henriques@canonical.com>
Tue, 8 Nov 2016 16:44:11 +0000 (16:44 +0000)
commitd10a944419fb79a9944ffe483ccd9fd7255f5f69
tree58e78315cc6cd82d36342715eb9a35281b7ac7d9
parent006e1d7038e021f460e4da67de86828fda6ce481
drivers: net: xgene: Add backward compatibility

BugLink: https://launchpad.net/bugs/1632739
This patch adds xgene_enet_check_phy_hanlde() function that checks whether
MDIO driver is probed successfully and sets pdata->mdio_driver to true.
If MDIO driver is not probed, ethernet driver falls back to backward
compatibility mode.

Since enum xgene_enet_cmd is used by MDIO driver, removing this from
ethernet driver.

Signed-off-by: Iyappan Subramanian <isubramanian@apm.com>
Tested-by: Fushen Chen <fchen@apm.com>
Tested-by: Toan Le <toanle@apm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
(backported from commit 8089a96f601bdfe3e1b41d14bb703aafaf1b8f34 yakkety)
Signed-off-by: Craig Magina <craig.magina@canonical.com>
Acked-by: Tim Gardner <tim.gardner@canonical.com>
Acked-by: Seth Forshee <seth.forshee@canonical.com>
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
drivers/net/ethernet/apm/xgene/xgene_enet_hw.c
drivers/net/ethernet/apm/xgene/xgene_enet_hw.h
drivers/net/ethernet/apm/xgene/xgene_enet_main.c
drivers/net/ethernet/apm/xgene/xgene_enet_main.h
drivers/net/ethernet/apm/xgene/xgene_enet_sgmac.c