Page MenuHomeFreeBSD

syscon: Introduce kobj and split out fdt bits
ClosedPublic

Authored by kevans on Dec 17 2017, 3:24 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, May 25, 5:27 PM
Unknown Object (File)
Wed, May 22, 9:02 AM
Unknown Object (File)
Wed, May 22, 8:07 AM
Unknown Object (File)
Sun, May 12, 11:41 PM
Unknown Object (File)
Sun, May 12, 1:07 PM
Unknown Object (File)
Sun, May 12, 7:50 AM
Unknown Object (File)
Sat, May 11, 11:20 PM
Unknown Object (File)
Fri, May 10, 1:27 AM
Subscribers

Details

Summary

Allow more flexibility by kobj'ifying syscon and splitting out fdt specific bits in preparation of a move to the extres framework. The generic fdt driver has been moved to syscon_generic.c and the fdt requirement has been removed from the syscon interface.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 13627

Event Timeline

Everything else looks OK for me.

sys/dev/syscon/syscon.c
90

I don't think that we needs/wants default methods for read/write/modify.
Its better to return error, if driver don't implement these.

227

And whats if single device register multiple syscons? I think that we can store ofw node to struct syscon and then use it for search. OF_device_from_xref() is not right approach I think.
see https://github.com/strejda/tegra/blob/master/sys/dev/extres/phy/phy.c#L93
and its usage.

Something like this, perhaps?

  • Remove default read/write/modify methods
  • Allow creation of syscon node from specific ofw node not necessarily belonging to provider

Re-add context... whoops.

This revision is now accepted and ready to land.Dec 23 2017, 9:20 AM
This revision was automatically updated to reflect the committed changes.