Furquan Shaikh has posted comments on this change. ( https://review.coreboot.org/19770 )
Change subject: soc/mediatek/mt8173: Move spi driver to use spi_bus_map ......................................................................
Patch Set 1:
(4 comments)
https://review.coreboot.org/#/c/19770/1/src/soc/mediatek/mt8173/spi.c File src/soc/mediatek/mt8173/spi.c:
Line 304: default:
Can take out the flash and the "wrong number" case now because generic code
Yeah, that makes sense.
PS1, Line 311: spi_ctrlr_setup
Should be NULL?
Yeah, then we can get rid of the case for SPI_FLASH_BUS above.
PS1, Line 331: ec
Shouldn't have "ec" in the name in this file. Just spi_ctrlr.
Sounds good.
Line 333: .bus_end = CONFIG_EC_GOOGLE_CHROMEEC_SPI_BUS,
I guess it was never really a great idea to put this Kconfig in here becaus
Yeah, I just tried to keep the changes as minimal as possible from the original logic. Are you suggesting that spi_ctrlr have bus #0 and flash bus #1? But then would we still be providing boards to select bus #? The reason I used the config here is to make sure the expectations matches what the board selected.