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)
Wed, Feb 26, 9:35 PM
Unknown Object (File)
Jan 25 2025, 7:24 PM
Unknown Object (File)
Jan 21 2025, 3:30 PM
Unknown Object (File)
Jan 18 2025, 5:31 PM
Unknown Object (File)
Jan 18 2025, 5:27 PM
Unknown Object (File)
Jan 18 2025, 5:23 PM
Unknown Object (File)
Jan 17 2025, 5:54 AM
Unknown Object (File)
Dec 13 2024, 12:21 PM
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 13746

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.