diff options
| author | David S. Miller <[email protected]> | 2020-04-22 19:41:26 -0700 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2020-04-22 19:41:26 -0700 |
| commit | ec403d880bcc48ea1f2bdc6589ffcb1301a69f56 (patch) | |
| tree | 8e08f0988a40f304d76a762488d7bead42d39b4b /include/linux | |
| parent | d0f0c55e7c4ca7c66877064d7c1f4795025e88f8 (diff) | |
| parent | 6a64d3cdc5ef89b2ac629701de5ffb3df1fb7937 (diff) | |
Merge branch 'add-TJA1102-support'
Oleksij Rempel says:
====================
add TJA1102 support
changes v5:
- rename __of_mdiobus_register_phy() to of_mdiobus_phy_device_register()
changes v4:
- remove unused phy_id variable
changes v3:
- export part of of_mdiobus_register_phy() and reuse it in tja11xx
driver
- coding style fixes
changes v2:
- use .match_phy_device
- add irq support
- add add delayed registration for PHY1
====================
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/of_mdio.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/include/linux/of_mdio.h b/include/linux/of_mdio.h index 491a2b7e77c1..0f61a4ac6bcf 100644 --- a/include/linux/of_mdio.h +++ b/include/linux/of_mdio.h @@ -30,7 +30,9 @@ extern struct mii_bus *of_mdio_find_bus(struct device_node *mdio_np); extern int of_phy_register_fixed_link(struct device_node *np); extern void of_phy_deregister_fixed_link(struct device_node *np); extern bool of_phy_is_fixed_link(struct device_node *np); - +extern int of_mdiobus_phy_device_register(struct mii_bus *mdio, + struct phy_device *phy, + struct device_node *child, u32 addr); static inline int of_mdio_parse_addr(struct device *dev, const struct device_node *np) @@ -118,6 +120,13 @@ static inline bool of_phy_is_fixed_link(struct device_node *np) { return false; } + +static inline int of_mdiobus_phy_device_register(struct mii_bus *mdio, + struct phy_device *phy, + struct device_node *child, u32 addr) +{ + return -ENOSYS; +} #endif |