aboutsummaryrefslogtreecommitdiff
path: root/drivers/net/mdio/mdio-thunder.c
AgeCommit message (Collapse)AuthorFilesLines
2023-03-23net: mdio: thunder: Add missing fwnode_handle_put()Liang He1-0/+1
In device_for_each_child_node(), we should add fwnode_handle_put() when break out of the iteration device_for_each_child_node() as it will automatically increase and decrease the refcounter. Fixes: 379d7ac7ca31 ("phy: mdio-thunder: Add driver for Cavium Thunder SoC MDIO buses.") Signed-off-by: Liang He <[email protected]> Signed-off-by: David S. Miller <[email protected]>
2023-01-13net: mdio: cavium: Separate C22 and C45 transactionsAndrew Lunn1-2/+4
The cavium IP can perform both C22 and C45 transfers. Create separate functions for each and register the C45 versions in both the octeon and thunder bus driver. Signed-off-by: Andrew Lunn <[email protected]> Signed-off-by: Michael Walle <[email protected]> Signed-off-by: Jakub Kicinski <[email protected]>
2021-05-13net: mdio: thunder: Fix a double free issue in the .remove functionChristophe JAILLET1-1/+0
'bus->mii_bus' have been allocated with 'devm_mdiobus_alloc_size()' in the probe function. So it must not be freed explicitly or there will be a double free. Remove the incorrect 'mdiobus_free' in the remove function. Fixes: 379d7ac7ca31 ("phy: mdio-thunder: Add driver for Cavium Thunder SoC MDIO buses.") Signed-off-by: Christophe JAILLET <[email protected]> Reviewed-by: Russell King <[email protected]> Reviewed-by: Andrew Lunn <[email protected]> Signed-off-by: David S. Miller <[email protected]>
2021-03-16net: mdio: Alphabetically sort header inclusionCalvin Johnson1-5/+5
Alphabetically sort header inclusion Signed-off-by: Calvin Johnson <[email protected]> Signed-off-by: David S. Miller <[email protected]>
2020-08-27net: mdio: Move MDIO drivers into a new subdirectoryAndrew Lunn1-0/+152
Move all the MDIO drivers and multiplexers into drivers/net/mdio. The mdio core is however left in the phy directory, due to mutual dependencies between the MDIO core and the PHY core. Take this opportunity to sort the Kconfig based on the menuconfig strings, and move the multiplexers to the end with a separating comment. v2: Fix typo in commit message Acked-by: Florian Fainelli <[email protected]> Signed-off-by: Andrew Lunn <[email protected]> Signed-off-by: David S. Miller <[email protected]>