Subrata Banik has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/63625 )
Change subject: soc/intel/cmn/fast_spi: Add API to clear outstanding SPI status
......................................................................
Patch Set 6:
(1 comment)
File src/soc/intel/common/block/fast_spi/fast_spi.c:
https://review.coreboot.org/c/coreboot/+/63625/comment/aa0bc3d7_38e06690
PS6, Line 437: SPIBAR_HSFSTS_W1C_BITS
If I see it right here on EHL bit 15 is the flash lock config bit. Setting it here is not something you want, right? And there are other settings in the lower bits of MSB that are R/W which you will set with 0xffff as well.
Valid point, but looks like flashrom is doing the same
https://github.com/flashrom/flashrom/blob/master/ichspi.c#L1402
And I also think the risk is none with 0xFFFF as `fast_spi_lock_bar` function getting called right after `fast_spi_clear_outstanding_status()` is setting the BIT15 FLOCKDN.
CB:63777 to fix this issue, can you please check?
--
To view, visit
https://review.coreboot.org/c/coreboot/+/63625
To unsubscribe, or for help writing mail filters, visit
https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I62adba0d0cef1d4c53b24800f90b4fe76a9d78b7
Gerrit-Change-Number: 63625
Gerrit-PatchSet: 6
Gerrit-Owner: Subrata Banik
subratabanik@google.com
Gerrit-Reviewer: Angel Pons
th3fanbus@gmail.com
Gerrit-Reviewer: Arthur Heymans
arthur@aheymans.xyz
Gerrit-Reviewer: Eric Lai
eric_lai@quanta.corp-partner.google.com
Gerrit-Reviewer: Lean Sheng Tan
sheng.tan@9elements.com
Gerrit-Reviewer: Subrata Banik
subratabanik@google.com
Gerrit-Reviewer: Tim Wawrzynczak
twawrzynczak@chromium.org
Gerrit-Reviewer: Werner Zeh
werner.zeh@siemens.com
Gerrit-Reviewer: build bot (Jenkins)
no-reply@coreboot.org
Gerrit-CC: 9elements QA
hardwaretestrobot@gmail.com
Gerrit-CC: Paul Menzel
paulepanter@mailbox.org
Gerrit-Comment-Date: Fri, 22 Apr 2022 08:09:18 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Subrata Banik
subratabanik@google.com
Comment-In-Reply-To: Angel Pons
th3fanbus@gmail.com
Comment-In-Reply-To: Werner Zeh
werner.zeh@siemens.com
Gerrit-MessageType: comment