i225 devices have only one phy->type: copper. There is no point checking
phy->type during the igc_has_link method from the watchdog that
invoked every 2 seconds.
This patch comes to clean up these pointless checkings.
Signed-off-by: Sasha Neftin <email address hidden>
Tested-by: Dvora Fuxbrumer <email address hidden>
Signed-off-by: Tony Nguyen <email address hidden>
(cherry picked from commit 47bca7de6a4fb8dcb564c7ca14d885c91ed19e03)
Signed-off-by: You-Sheng Yang <email address hidden>
i225 devices have only one PHY vendor. There is no point checking
_I_PHY_ID during the link establishment and auto-negotiation process.
This patch comes to clean up these pointless checkings.
Signed-off-by: Sasha Neftin <email address hidden>
Tested-by: Dvora Fuxbrumer <email address hidden>
Signed-off-by: Tony Nguyen <email address hidden>
(cherry picked from commit 7c496de538eebd8212dc2a3c9a468386b264d0d4)
Signed-off-by: You-Sheng Yang <email address hidden>
By registering the software node directly instead of just
the properties in it, the driver can take advantage of also
the other features the software nodes have.
This helper will register a software node and then assign
it to device at the same time. The function will also make
sure that the device can't have more than one software node.