Felix Held has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/37641 )
Change subject: superio/aspeed/ast2400: Add AST2500 support
......................................................................
Patch Set 5:
(1 comment)
https://review.coreboot.org/c/coreboot/+/37641/5/src/superio/aspeed/ast2400/...
File src/superio/aspeed/ast2400/superio.c:
https://review.coreboot.org/c/coreboot/+/37641/5/src/superio/aspeed/ast2400/...
PS5, Line 112: pnp_dev_info[5].function = -1;
: pnp_dev_info[6].function = -1;
i'd prefer iteration over the array elements and matching on the defines assigned to .function instead of hoping that the offsets won't change when the code gets some refactoring.
also assigning a negative number to an unsigned variable is a bad idea; I'd suggest rebasing this onto 37741 and assign PNP_SKIP_FUNCTION to .function instead
--
To view, visit
https://review.coreboot.org/c/coreboot/+/37641
To unsubscribe, or for help writing mail filters, visit
https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: Iea45740427ad56656040e6342f5316ec9d38122f
Gerrit-Change-Number: 37641
Gerrit-PatchSet: 5
Gerrit-Owner: Patrick Rudolph
patrick.rudolph@9elements.com
Gerrit-Reviewer: Angel Pons
th3fanbus@gmail.com
Gerrit-Reviewer: Christian Walter
christian.walter@9elements.com
Gerrit-Reviewer: Felix Held
felix-coreboot@felixheld.de
Gerrit-Reviewer: Frans Hendriks
fhendriks@eltan.com
Gerrit-Reviewer: Kyösti Mälkki
kyosti.malkki@gmail.com
Gerrit-Reviewer: Patrick Rudolph
patrick.rudolph@9elements.com
Gerrit-Reviewer: build bot (Jenkins)
no-reply@coreboot.org
Gerrit-Reviewer: Дмитрий Понаморев
dponamorev@gmail.com
Gerrit-CC: Patrick Rudolph
siro@das-labor.org
Gerrit-CC: Paul Menzel
paulepanter@users.sourceforge.net
Gerrit-Comment-Date: Sun, 15 Dec 2019 13:12:02 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Gerrit-MessageType: comment