Re: [PATCH v3] mtd: rawnand: r852: preserve card changes during detection work
From: Miquel Raynal
Date: Fri Dec 04 2026 - 16:33:35 EST
On Sun, 08 Nov 2026 17:22:18 -0700, James Hilliard wrote:
> r852_update_card_detect() reads and writes the card interrupt enable
> register without holding irqlock. A card interrupt can mask detection
> interrupts and mark the card unstable between those accesses, only for
> the worker to overwrite the mask with its saved value.
>
> The worker also calls this helper before and after registering or
> unregistering a card. An interrupt between these calls starts a new
> debounce interval, but the second call clears card_unstable and enables
> interrupts again before that interval has elapsed. The interrupt can
> also change card_detected between the worker's registration checks and
> its media-property update.
>
> [...]
Applied to nand/next, thanks!
[1/1] mtd: rawnand: r852: preserve card changes during detection work
commit: 167c909d97d9cc740615a78154d72839e661fbd5
Patche(s) should be available on mtd/linux.git and will be
part of the next PR (provided that no robot complains by then).
Kind regards,
Miquèl