Based on @manu's patch.
Since 'phy_id' is no longer dts as per in r337703, update driver to match device tree.
Details
- Reviewers
emaste manu • ian - Commits
- rS345855: cpsw: use `phy-handle` in FDT to find PHY address
Tested on a beaglebone black
Diff Detail
- Lint
Lint Passed - Unit
No Test Coverage - Build Status
Buildable 23496 Build 22503: arc lint + arc unit
Event Timeline
| sys/arm/ti/cpsw/if_cpsw.c | ||
|---|---|---|
| 761–762 | I don't think this is needed. | |
| sys/arm/ti/cpsw/if_cpsw.c | ||
|---|---|---|
| 763 | This would return ENXIO if the first slave node isn't the one used, I don't know if any boards are like that but if they are they worked before and should after. | |
| sys/arm/ti/cpsw/if_cpsw.c | ||
|---|---|---|
| 763 | You might also want to get phy_id if phy-handle don't exists so people with old DTB could still boot. | |
| sys/arm/ti/cpsw/if_cpsw.c | ||
|---|---|---|
| 763 | Mhm no the old code only check the first slave@ node that matches the full node name based on the port and this is still the case. | |