Page MenuHomeFreeBSD

clkdev: Pass methods to parent device by default
ClosedPublic

Authored by jmcneill on Mar 26 2016, 7:53 PM.
Tags
Referenced Files
Unknown Object (File)
Tue, Dec 10, 8:33 PM
Unknown Object (File)
Oct 24 2024, 2:37 PM
Unknown Object (File)
Oct 21 2024, 3:01 PM
Unknown Object (File)
Oct 17 2024, 7:02 AM
Unknown Object (File)
Oct 16 2024, 7:13 PM
Unknown Object (File)
Oct 4 2024, 1:45 AM
Unknown Object (File)
Oct 1 2024, 2:58 AM
Unknown Object (File)
Sep 19 2024, 1:29 PM
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 Not Applicable
Unit
Tests Not Applicable

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.