Page MenuHomeFreeBSD

Use SoC ID - based detection in CESA
ClosedPublic

Authored by mw_semihalf.com on Jan 19 2017, 5:54 PM.
Tags
None
Referenced Files
F152825015: D9247.id24230.diff
Fri, Apr 17, 8:52 AM
Unknown Object (File)
Wed, Apr 15, 1:37 PM
Unknown Object (File)
Wed, Apr 15, 7:56 AM
Unknown Object (File)
Mon, Apr 13, 10:15 PM
Unknown Object (File)
Mon, Apr 13, 5:29 AM
Unknown Object (File)
Sat, Apr 11, 1:49 PM
Unknown Object (File)
Thu, Apr 9, 9:16 PM
Unknown Object (File)
Fri, Mar 27, 5:31 AM
Subscribers

Details

Summary

This commit introduces following changes in order to get rid of
ifdef's from all around the driver.

  • Introduce sc_soc_id field in cesa_softc structure - this value is obtained in cesa_attach() anyway, so make use of it.
  • Replace ifdefs with SoC ID checks.
  • Perform PM control status only for relevant SoC's.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

mw_semihalf.com retitled this revision from to Use SoC ID - based detection in CESA.
mw_semihalf.com updated this object.
mw_semihalf.com edited the test plan for this revision. (Show Details)
mw_semihalf.com added reviewers: ian, imp, zbb, fabient.
mw_semihalf.com set the repository for this revision to rS FreeBSD src repository - subversion.
mw_semihalf.com added subscribers: ARM, mmel.
zbb edited edge metadata.
zbb added inline comments.
sys/dev/cesa/cesa.c
1204 ↗(On Diff #24204)

Found it! Style ;-)

This revision is now accepted and ready to land.Jan 19 2017, 6:09 PM
mw_semihalf.com edited edge metadata.

Fix style in one of assignments.

This revision now requires review to proceed.Jan 20 2017, 12:33 PM
This revision was automatically updated to reflect the committed changes.