Kyösti Mälkki has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/43307 )
Change subject: soc/amd/common: Refactor and consolidate code for spi base
......................................................................
Patch Set 6:
(2 comments)
https://review.coreboot.org/c/coreboot/+/43307/6/src/soc/amd/common/block/sp...
File src/soc/amd/common/block/spi/fch_spi_ctrl.c:
https://review.coreboot.org/c/coreboot/+/43307/6/src/soc/amd/common/block/sp...
PS6, Line 33: static inline uint8_t spi_read8(uint8_t reg)
You ack'd the inline and did not address it :(
https://review.coreboot.org/c/coreboot/+/43307/6/src/soc/amd/common/block/sp...
PS6, Line 35: spi_base
Ok, that makes sense.
My comments were mostly about the asymmetry of MMIO accessors. When ACPIMMIO banks don't need function call here, why would SPI need?
But looks like there is no plan to unify these accessors even inside SPI, and there is now three different approaches for fundamentally the same thing.
--
To view, visit
https://review.coreboot.org/c/coreboot/+/43307
To unsubscribe, or for help writing mail filters, visit
https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I50d9de269bcb88fbf510056a6216e22a050cae6b
Gerrit-Change-Number: 43307
Gerrit-PatchSet: 6
Gerrit-Owner: Martin Roth
martinroth@google.com
Gerrit-Reviewer: Aaron Durbin
adurbin@chromium.org
Gerrit-Reviewer: Eric Peers
epeers@google.com
Gerrit-Reviewer: Felix Held
felix-coreboot@felixheld.de
Gerrit-Reviewer: Furquan Shaikh
furquan@google.com
Gerrit-Reviewer: Raul Rangel
rrangel@chromium.org
Gerrit-Reviewer: Rob Barnes
robbarnes@google.com
Gerrit-Reviewer: build bot (Jenkins)
no-reply@coreboot.org
Gerrit-CC: Kyösti Mälkki
kyosti.malkki@gmail.com
Gerrit-CC: Paul Menzel
paulepanter@users.sourceforge.net
Gerrit-Comment-Date: Sun, 19 Jul 2020 11:57:03 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Raul Rangel
rrangel@chromium.org
Comment-In-Reply-To: Martin Roth
martinroth@google.com
Comment-In-Reply-To: Aaron Durbin
adurbin@chromium.org
Gerrit-MessageType: comment