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 <bernardo.perez.priego@intel.com>
This commit is contained in:
Bernardo Perez Priego 2024-08-08 11:19:25 -07:00 committed by Anas Nashif
parent ad6c0512ad
commit 1cc93810d0
1 changed files with 1 additions and 0 deletions

View File

@ -855,6 +855,7 @@ static void p80bd0_isr(const struct device *dev)
espi_send_callbacks(&data->callbacks, dev, evt);
evt.evt_details = 0;
}
dattr = p80regs->EC_DA;
}
/* clear GIRQ status */