Page MenuHomeFreeBSD

qcom_mdio: add initial IPQ4018 MDIO support
ClosedPublic

Authored by adrian on Jan 30 2022, 9:48 PM.
Tags
None
Referenced Files
F109255912: D34110.diff
Sun, Feb 2, 4:41 PM
Unknown Object (File)
Sun, Jan 26, 2:53 AM
Unknown Object (File)
Mon, Jan 20, 2:02 PM
Unknown Object (File)
Fri, Jan 17, 9:16 PM
Unknown Object (File)
Fri, Jan 17, 2:29 PM
Unknown Object (File)
Fri, Jan 17, 1:41 PM
Unknown Object (File)
Fri, Jan 17, 1:22 PM
Unknown Object (File)
Thu, Jan 16, 4:06 AM
Subscribers

Details

Summary

This adds support for the IPQ4018/IPQ4019 MDIO bus. This is used to
talk to external PHYs and switches. (There's an internal switch
in the IPQ4018/IPQ4019 as well, but it's accessible via MMIO/AXI.)

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 44180
Build 41068: arc lint + arc unit

Event Timeline

sys/dev/qcom_mdio/qcom_mdio_ipq4018.c
294

1/ Does it needs to be that early ? INTERRUPT is really early in the boot, we have BUS_PASS_SUPPORTDEV that usually work for driver like that.
2/ Do you really need to be on simplebus and ofwbus ? In the DTS it's under /soc which is simple-bus compatible so I don't think you need the ofwbus declaration.

mdio and ofw* part looks good, only two questions for me.

adrian added inline comments.
sys/dev/qcom_mdio/qcom_mdio_debug.h
35

....... whoops, i should fix that

This revision is now accepted and ready to land.Feb 2 2022, 7:35 AM
This revision now requires review to proceed.Feb 3 2022, 5:19 AM
This revision is now accepted and ready to land.Feb 3 2022, 9:20 AM
This revision was automatically updated to reflect the committed changes.