Commit 723cda5b authored by Thanneeru Srinivasulu's avatar Thanneeru Srinivasulu Committed by David S. Miller

net: thunderx: Force to load octeon-mdio before bgx driver.

Signed-off-by: default avatarThanneeru Srinivasulu <tsrinivasulu@caviumnetworks.com>
Signed-off-by: default avatarSunil Goutham <sgoutham@cavium.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 83e4bf7a
...@@ -1009,6 +1009,9 @@ static int bgx_probe(struct pci_dev *pdev, const struct pci_device_id *ent) ...@@ -1009,6 +1009,9 @@ static int bgx_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
struct bgx *bgx = NULL; struct bgx *bgx = NULL;
u8 lmac; u8 lmac;
/* Load octeon mdio driver */
octeon_mdiobus_force_mod_depencency();
bgx = devm_kzalloc(dev, sizeof(*bgx), GFP_KERNEL); bgx = devm_kzalloc(dev, sizeof(*bgx), GFP_KERNEL);
if (!bgx) if (!bgx)
return -ENOMEM; return -ENOMEM;
......
...@@ -182,6 +182,7 @@ enum MCAST_MODE { ...@@ -182,6 +182,7 @@ enum MCAST_MODE {
#define BCAST_ACCEPT 1 #define BCAST_ACCEPT 1
#define CAM_ACCEPT 1 #define CAM_ACCEPT 1
void octeon_mdiobus_force_mod_depencency(void);
void bgx_add_dmac_addr(u64 dmac, int node, int bgx_idx, int lmac); void bgx_add_dmac_addr(u64 dmac, int node, int bgx_idx, int lmac);
unsigned bgx_get_map(int node); unsigned bgx_get_map(int node);
int bgx_get_lmac_count(int node, int bgx); int bgx_get_lmac_count(int node, int bgx);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment