Skip to content

Commit 1cc9381

Browse files
perezprinashif
authored andcommitted
ec_host_cmd: Fix generating multiple Port80 notifications
Port80 notifications are continously generated as long as NOT_EMPTY bit inside of Data Attributes register is set. This register was only read once prior entering loop and its value was not checked on each iteration. This patch will include reading Data Attributes register on each iteration, this way we can exit loop when no more data is available. Signed-off-by: Bernardo Perez Priego <[email protected]>
1 parent ad6c051 commit 1cc9381

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/espi/espi_mchp_xec_host_v2.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -855,6 +855,7 @@ static void p80bd0_isr(const struct device *dev)
855855
espi_send_callbacks(&data->callbacks, dev, evt);
856856
evt.evt_details = 0;
857857
}
858+
dattr = p80regs->EC_DA;
858859
}
859860

860861
/* clear GIRQ status */

0 commit comments

Comments
 (0)