Page MenuHomeFreeBSD

clkdev: Pass methods to parent device by default
ClosedPublic

Authored by jmcneill on Mar 26 2016, 7:53 PM.
Tags
Referenced Files
F149096561: D5750.id14633.diff
Sun, Mar 22, 6:47 AM
F149082197: D5750.id.diff
Sun, Mar 22, 4:59 AM
F149036737: D5750.id.diff
Sat, Mar 21, 10:49 PM
Unknown Object (File)
Tue, Mar 17, 7:59 AM
Unknown Object (File)
Wed, Mar 11, 5:01 AM
Unknown Object (File)
Sun, Mar 1, 11:28 AM
Unknown Object (File)
Jan 31 2026, 8:34 AM
Unknown Object (File)
Jan 25 2026, 1:06 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.