Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
mmc: sdhci: Mask "spurious" interrupts
Add a filter for "spurious" Transfer Complete interrupts, attempting to make it as specific as possible: * INT_DATA_END (transfer complete) is set * There is a stop command in progress * There is no data transfer in progress Signed-off-by: Phil Elwell <phil@raspberrypi.org>
- Loading branch information
88b35d4
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi Phil,
do you have more context for this patch? We're seeing something similar upstream[1], only triggered on class 4 SD cards.
[1] https://lore.kernel.org/linux-arm-kernel/3853cd8425743b4991f5d599ec1c0fbbf4232f95.camel@suse.de/
88b35d4
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nicolas,
I'm afraid you can infer most of it from the commit message - we discovered that under some circumstances we were getting a DATA_END interrupt when one wasn't expected. Ignoring it had no observable ill effects so it was deemed to be either spurious or delayed in some way. By trial and error I found a set of conditions that allowed me to (I believe) ignore just the spurious interrupts.
88b35d4
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@pelwell Sorry, I forgot to CC you: https://lkml.org/lkml/2019/10/4/381
88b35d4
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks - I'll revert my patch and back-port when it gets merged.