]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC r345855: cpsw: use `phy-handle` in FDT to find PHY address
authorEd Maste <emaste@FreeBSD.org>
Wed, 17 Apr 2019 17:19:19 +0000 (17:19 +0000)
committerEd Maste <emaste@FreeBSD.org>
Wed, 17 Apr 2019 17:19:19 +0000 (17:19 +0000)
commitd3aca40d70cd589cf6e66b385ea689a7db4908e0
tree4ba9422789af1a8ee470c6057793d06cc0706924
parent80f48d0a5928560b83395166d262fe75301b0117
MFC r345855: cpsw: use `phy-handle` in FDT to find PHY address

In r337703 DTS files were updated to Linux 4.18, including Linux commit
4d8b032d3c03f4e9788a18bbb51b10e6c9e8a56b which removed the `phy_id`
property from am335x-bone-common (as the property was deprecated).

Use `phy-handle` via fdt_get_phyaddr, keeping the existing code as a
fallback for old DTBs.

PR: 236624
Submitted by: manu, Gerald Aryeetey <aryeeteygerald_rogers.com>
Reported by: Gerald Aryeetey
Reviewed by: manu
Sponsored by: The FreeBSD Foundation
sys/arm/ti/cpsw/if_cpsw.c
sys/dev/fdt/fdt_common.c