Page MenuHomeFreeBSD

[BHND] Fix typo in name of bhnd_bus_deactivate_resource dev method and cross-compilation (plus bootverbose information)
AbandonedPublic

Authored by mizhka on Mar 14 2016, 1:16 PM.
Tags
None
Referenced Files
Unknown Object (File)
Feb 23 2024, 11:23 AM
Unknown Object (File)
Jan 10 2024, 3:44 PM
Unknown Object (File)
Dec 20 2023, 3:07 AM
Unknown Object (File)
Nov 2 2023, 5:17 PM
Unknown Object (File)
Sep 1 2023, 10:23 PM
Unknown Object (File)
Jul 12 2023, 10:48 AM
Unknown Object (File)
May 26 2023, 9:49 PM
Unknown Object (File)
May 18 2023, 3:10 PM
Subscribers

Details

Summary

This patch is intended to fix typo in name of bhnd_bus_deactivate_resource dev method and cross-compilation (plus bootverbose information).

Disclaimer: it's my first experience of work with phabricator :)

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

mizhka retitled this revision from to [BHND] Fix typo in name of bhnd_bus_deactivate_resource dev method and cross-compilation (plus bootverbose information).
mizhka updated this object.
mizhka edited the test plan for this revision. (Show Details)
mizhka added reviewers: adrian, landon_landonf.org.
mizhka set the repository for this revision to rS FreeBSD src repository - subversion.
adrian edited edge metadata.

other than that, lgtm

sys/dev/bhnd/bcma/bcma.c
302

spacing

311

spacing

sys/dev/bhnd/bhnd_subr.c
187

use ()'s, like the rest of the returns above!

595
  • spacing
  • you don't need to use { }s for a single line device_printf()
600

spacing, parens.

This revision is now accepted and ready to land.Mar 14 2016, 5:25 PM
mizhka edited edge metadata.

@adrian, corrected.

This revision now requires review to proceed.Mar 17 2016, 1:13 PM
landon_landonf.org edited edge metadata.

Requested changes inline as source comments; sorry for the delay, I accidentally left my comments unsubmitted (I'm new to phabricator too).

sys/dev/bhnd/bcma/bcma.c
254

Since the BHND_PORT_* values are a typedef'd enum, leaving out the default case allows the compiler to give us a warning if we add an additional BHND_PORT type and fail to update this switch()

302

Since this is likely only useful during platform bring-up, I'd suggest conditionalizing this on a debug tunable, similar to 'bhndb_debug' used in bhndb.

sys/dev/bhnd/bcma/bcma_subr.c
138

Since this function isn't defined as returning NULL, this should either be a __unreachable() or should be omitted.

(The only way that NULL can be returned is if a new BHND_PORT_* enum value is added without updating this switch() statement)

sys/dev/bhnd/bhnd_subr.c
186

Same BHND_PORT_* default switch statement issue. I'll stop noting cases after this one.

584

These RID allocation debugging statements should either be removed, or centralized in the bhnd bus_* resource handling functions.

The other bring-up debugging statements below (e.g. CHIPC pre-read) should probably be removed entirely before integration; I'll stop noting them after this point.

This revision now requires changes to proceed.Mar 27 2016, 10:11 PM
mizhka marked 5 inline comments as done.