Page MenuHomeFreeBSD

clkdev: Pass methods to parent device by default
ClosedPublic

Authored by jmcneill on Mar 26 2016, 7:53 PM.
Tags
Referenced Files
F156527538: D5750.diff
Thu, May 14, 10:42 AM
Unknown Object (File)
Fri, Apr 24, 7:53 AM
Unknown Object (File)
Tue, Apr 21, 9:22 AM
Unknown Object (File)
Tue, Apr 21, 9:14 AM
Unknown Object (File)
Sun, Apr 19, 7:43 PM
Unknown Object (File)
Sat, Apr 18, 7:49 PM
Unknown Object (File)
Apr 13 2026, 2:17 AM
Unknown Object (File)
Apr 11 2026, 10:43 AM
Subscribers

Details

Summary

This change makes the default clkdev_if methods pass through to the parent device.

For Allwinner, I have a device attaching to the /clocks node that implements clkdev_if, and a bunch of clock drivers under it. This saves me from having to implement clkdev_if on all child drivers using the clk_gate, clk_mux, and clk_div helpers.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

jmcneill retitled this revision from to clkdev: Pass methods to parent device by default.
jmcneill updated this object.
jmcneill edited the test plan for this revision. (Show Details)
jmcneill added reviewers: mmel, ARM.
jmcneill set the repository for this revision to rS FreeBSD src repository - subversion.
jmcneill added a project: ARM.
mmel edited edge metadata.
This revision is now accepted and ready to land.Mar 27 2016, 8:13 AM
adrian added a reviewer: adrian.
adrian added a subscriber: adrian.

ok, I'm okay with it; please check with #bsdmips for further review first!

This revision was automatically updated to reflect the committed changes.