espi: mec172x: kbc0_ibf_isr: read sts before data
Read KBC Status register before reading KBC Data register in kbc0_ibf_isr; since read data will clear status. Signed-off-by: Jay Vasanth <jay.vasanth@microchip.com>
This commit is contained in:
parent
3abfb58741
commit
b530be4591
1 changed files with 3 additions and 3 deletions
|
@ -196,9 +196,9 @@ static void kbc0_ibf_isr(const struct device *dev)
|
|||
* and the lower byte speficies if the host sent
|
||||
* a command or data. 1 = Command.
|
||||
*/
|
||||
uint32_t isr_data = ((kbc_hw->EC_DATA & 0xFF) << E8042_ISR_DATA_POS) |
|
||||
((kbc_hw->EC_KBC_STS & MCHP_KBC_STS_CD) <<
|
||||
E8042_ISR_CMD_DATA_POS);
|
||||
uint32_t isr_data = ((kbc_hw->EC_KBC_STS & MCHP_KBC_STS_CD) <<
|
||||
E8042_ISR_CMD_DATA_POS);
|
||||
isr_data |= ((kbc_hw->EC_DATA & 0xFF) << E8042_ISR_DATA_POS);
|
||||
|
||||
struct espi_event evt = {
|
||||
.evt_type = ESPI_BUS_PERIPHERAL_NOTIFICATION,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue