<p>Shelley Chen has uploaded this change for <strong>review</strong>.</p><p><a href="https://review.coreboot.org/22909">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">spi/tpm: Clear pending irqs during tpm2_init<br><br>Seeing some instances were cr50 spi driver is starting a new<br>transaction without getting a ready interrupt from cr50, which means<br>that there are pending interrupts.  Clearing these to be sure there<br>are not any stale irqs for the next transaction.<br><br>BUG=b:69567837<br>BRANCH=None<br>TEST=run FAFT and see if any 0x2b recovery boots occur<br><br>Change-Id: Ie099da9f2b3c4da417648ae10a5ba356b7a093ff<br>Signed-off-by: Shelley Chen <shchen@chromium.org><br>---<br>M src/drivers/spi/tpm/tpm.c<br>1 file changed, 3 insertions(+), 0 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://review.coreboot.org:29418/coreboot refs/changes/09/22909/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">diff --git a/src/drivers/spi/tpm/tpm.c b/src/drivers/spi/tpm/tpm.c<br>index e1fec28..ceec0b0 100644<br>--- a/src/drivers/spi/tpm/tpm.c<br>+++ b/src/drivers/spi/tpm/tpm.c<br>@@ -429,6 +429,9 @@<br> <br>   memcpy(spi_slave, spi_if, sizeof(*spi_if));<br> <br>+       /* clear any pending irqs */<br>+ tis_plat_irq_status();<br>+<br>     /*<br>     * 150 ms should be enough to synchronize with the TPM even under the<br>          * worst nested reset request conditions. In vast majority of cases<br></pre><p>To view, visit <a href="https://review.coreboot.org/22909">change 22909</a>. To unsubscribe, visit <a href="https://review.coreboot.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://review.coreboot.org/22909"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: coreboot </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>
<div style="display:none"> Gerrit-Change-Id: Ie099da9f2b3c4da417648ae10a5ba356b7a093ff </div>
<div style="display:none"> Gerrit-Change-Number: 22909 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Shelley Chen <shchen@google.com> </div>