From: Miquel Raynal <miquel.raynal@bootlin.com>
To: James Hilliard <james.hilliard1@gmail.com>
Cc: Richard Weinberger <richard@nod.at>,
Vignesh Raghavendra <vigneshr@ti.com>,
Maxim Levitsky <maximlevitsky@gmail.com>,
linux-mtd@lists.infradead.org, linux-kernel@vger.kernel.org,
stable@vger.kernel.org
Subject: Re: [PATCH] mtd: rawnand: r852: disable the engine when card registration fails
Date: Fri, 04 Dec 2026 22:13:20 +0100 [thread overview]
Message-ID: <87ecbwhhqn.fsf@bootlin.com> (raw)
In-Reply-To: <20261108-submit-r852-registration-unwind-v1-v1-1-e54be2c652c2@gmail.com> (James Hilliard's message of "Sun, 08 Nov 2026 17:20:55 -0700")
On 08/11/2026 at 17:20:55 -07, James Hilliard <james.hilliard1@gmail.com> wrote:
> r852_register_nand_device() enables the NAND engine before scanning and
> registering the card. If sm_register_device() or device_create_file()
> fails, the error path leaves the engine enabled while card_registered
> remains clear.
>
> A subsequent removal work item sees no registered card and skips
> unregistration. The device removal path also returns immediately from
> r852_unregister_nand_device() in this state, so neither path disables
> the engine.
>
> Disable the engine in the common registration-failure path after any
> required NAND cleanup.
>
> Fixes: 67e054e91924 ("mtd: nand: Add driver for Ricoh xD/SmartMedia reader")
> Cc: stable@vger.kernel.org
> Link: https://lore.kernel.org/r/sashiko-outbox-204169@kernel.org/
> Signed-off-by: James Hilliard <james.hilliard1@gmail.com>
Seems like there is a conflict with the other patches. Please rebase on
top of nand/next.
Thanks,
Miquèl
______________________________________________________
Linux MTD discussion mailing list
http://lists.infradead.org/mailman/listinfo/linux-mtd/
prev parent reply other threads:[~2026-12-04 21:13 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-09 0:20 [PATCH] mtd: rawnand: r852: disable the engine when card registration fails James Hilliard
2026-11-09 0:24 ` sashiko-bot
2026-12-04 21:13 ` Miquel Raynal [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87ecbwhhqn.fsf@bootlin.com \
--to=miquel.raynal@bootlin.com \
--cc=james.hilliard1@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mtd@lists.infradead.org \
--cc=maximlevitsky@gmail.com \
--cc=richard@nod.at \
--cc=stable@vger.kernel.org \
--cc=vigneshr@ti.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox