Page MenuHomeFreeBSD

Make ofwbus as a subclass of simplebus.
ClosedPublic

Authored by ian on Mar 1 2015, 10:45 AM.
Tags
None
Referenced Files
Unknown Object (File)
Dec 20 2023, 2:57 AM
Unknown Object (File)
Nov 15 2023, 6:39 PM
Unknown Object (File)
Nov 6 2023, 1:29 PM
Unknown Object (File)
Oct 14 2023, 5:36 PM
Unknown Object (File)
Oct 5 2023, 12:28 PM
Unknown Object (File)
Aug 10 2023, 3:37 PM
Unknown Object (File)
Aug 10 2023, 3:37 PM
Unknown Object (File)
Aug 10 2023, 3:35 PM
Subscribers

Details

Summary

Remove duplicated code from ofwbus.c.
Move all useful methods into simplebus.c.
Remove excluded names/types handling.
Don't display devices without "compatible" property in simplebus_probe_nomatch().

Test Plan

This patch is tested on ARM platform only. Please, test it on other platforms too...

Diff Detail

Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

mmel retitled this revision from to Make ofwbus as a subclass of simplebus..
mmel updated this object.
mmel edited the test plan for this revision. (Show Details)
mmel added reviewers: ian, nwhitehorn, imp, andrew.
mmel set the repository for this revision to rS FreeBSD src repository - subversion.
mmel added a subscriber: jchandra.
imp edited edge metadata.
This revision is now accepted and ready to land.Mar 1 2015, 5:01 PM

Generally looks OK but see inline comment about cpufreq.

sys/dev/ofw/ofwbus.c
100

Why is this here? This will break cpufreq on PowerPC.

sys/dev/ofw/ofwbus.c
100

I'd love to see these all go away...

sys/dev/ofw/ofwbus.c
100

There's actually no need for them. All they do if left is make verbose dmesg a little more verbose and fill up the output of devinfo with a handful of pointless entries.

mmel updated this object.
mmel edited edge metadata.
mmel set the repository for this revision to rS FreeBSD src repository - subversion.

V2:
Remove excluded names/types handling.
Don't display devices without "compatible" property in simplebus_probe_nomatch().

This revision now requires review to proceed.Mar 9 2015, 12:14 PM
ian edited reviewers, added: mmel; removed: ian.

taking control so it will auto-close when I commit

ian added a reviewer: ian.

bogus "accept" so it can be closed.

This revision is now accepted and ready to land.Mar 27 2015, 11:24 PM