net: phy: Also request modules for C45 IDs
authorJose Abreu <jose.abreu@synopsys.com>
Sun, 2 Dec 2018 15:33:14 +0000 (16:33 +0100)
committerDavid S. Miller <davem@davemloft.net>
Tue, 4 Dec 2018 00:32:35 +0000 (16:32 -0800)
commit30fcd6a9edf1a169a07c3558f3a6e6a0007760fb
tree1eaf2df5dc2628379236dcf14a10d8cf6543815d
parent3eaf3ca6a183a45993ff04a8a824b25d4093b262
net: phy: Also request modules for C45 IDs

Logic of phy_device_create() requests PHY modules according to PHY ID
but for C45 PHYs we use different field for the IDs.

Let's also request the modules for these IDs.

Changes from v1:
- Only request C22 modules if C45 are not present (Andrew)

Signed-off-by: Jose Abreu <joabreu@synopsys.com>
Cc: Andrew Lunn <andrew@lunn.ch>
Cc: Florian Fainelli <f.fainelli@gmail.com>
Cc: "David S. Miller" <davem@davemloft.net>
Cc: Joao Pinto <joao.pinto@synopsys.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/phy_device.c