Fix fsm_foe timeout regression
This commit is contained in:
parent
9ffdb2e85b
commit
42745f4ebb
|
|
@ -374,7 +374,7 @@ void ec_fsm_foe_state_ack_check(
|
|||
|
||||
if (!ec_slave_mbox_check(fsm->datagram)) {
|
||||
// slave did not put anything in the mailbox yet
|
||||
if (time_after(datagram->jiffies_received,
|
||||
if (time_after(fsm->datagram->jiffies_received,
|
||||
fsm->jiffies_start + EC_FSM_FOE_TIMEOUT_JIFFIES)) {
|
||||
ec_foe_set_tx_error(fsm, FOE_TIMEOUT_ERROR);
|
||||
EC_SLAVE_ERR(slave, "Timeout while waiting for ack response.\n");
|
||||
|
|
@ -736,7 +736,7 @@ void ec_fsm_foe_state_data_check(
|
|||
}
|
||||
|
||||
if (!ec_slave_mbox_check(fsm->datagram)) {
|
||||
if (time_after(datagram->jiffies_received,
|
||||
if (time_after(fsm->datagram->jiffies_received,
|
||||
fsm->jiffies_start + EC_FSM_FOE_TIMEOUT_JIFFIES)) {
|
||||
ec_foe_set_tx_error(fsm, FOE_TIMEOUT_ERROR);
|
||||
EC_SLAVE_ERR(slave, "Timeout while waiting for ack response.\n");
|
||||
|
|
|
|||
Loading…
Reference in New Issue