Page MenuHomeFreeBSD

clkdev: Pass methods to parent device by default
ClosedPublic

Authored by jmcneill on Mar 26 2016, 7:53 PM.
Tags
Referenced Files
F165561703: D5750.diff
Sat, Aug 8, 4:32 PM
Unknown Object (File)
Sat, Aug 8, 5:17 AM
Unknown Object (File)
Fri, Aug 7, 3:37 AM
Unknown Object (File)
Fri, Aug 7, 3:18 AM
Unknown Object (File)
Thu, Aug 6, 11:42 PM
Unknown Object (File)
Wed, Aug 5, 4:59 AM
Unknown Object (File)
Wed, Aug 5, 2:22 AM
Unknown Object (File)
Tue, Jul 28, 11:13 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.