Skip to content

Commit

Permalink
dwcmshc: Clear tuning status on full reset
Browse files Browse the repository at this point in the history
This fixes a bug where the driver tries to retune while a sdport-issued
tuning request is already in progress.

Signed-off-by: Mario Bălănică <[email protected]>
  • Loading branch information
mariobalanica committed Jun 21, 2024
1 parent 7ef5269 commit 52d7499
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions drivers/sd/dwcmshc/dwcmshc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1430,6 +1430,9 @@ MshcResetHost(
}

MshcSetBusWidth(MshcExtension, SdBusWidth1Bit);

MshcExtension->TuningPerformed = FALSE;
MshcExtension->DataCrcErrorsSinceLastTuning = 0;
}

// Acknowledge any pending interrupts.
Expand Down

0 comments on commit 52d7499

Please sign in to comment.