From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=185.171.202.116 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796418811; b=lf0LOZoT51LETvq/0Lm1yjhAu3BfTY/co5Woo295JeVPTCeU+BLkMtECR31rd6aKEgNl A6MPmaLeXrxC6XkDrwR2ei7eSAZK25k0I3CAyJQqxB4A3n9duwihQ9dg/r67VcTRQcbur DMqQH2zjlu6oZGHypQ0Rp+lulNg4hv+uGxSmGlp21teLIQSH2kznPjD+rUpnm/fJc5AAI yZj85f6beN7D8T67FRbaIUbI7MJasMqgB2TYNUpNbbsG+x6dL+Kdbg9D2bUEBvZVjYzye cVgWfQjLjY9wAFw6pmNJVEcCKa3FVnZDQpJ4BdrUb85uhrmj8PT26moHg6rX1ipVNHQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796418811; h=DMARC-Filter:Received:Received:Received:DKIM-Signature:From:To:Cc: Subject:In-Reply-To:References:User-Agent:Date:Message-ID: MIME-Version:Content-Type:Content-Transfer-Encoding: X-Last-TLS-Session-Version; bh=Udyd2iLKifXn8vORq3lL3U2v308GvdtJKpfd7L9BIqw=; b=ElesSYOwkd6calWAub5LbB4jrKaAjsEAsIjl/r8wOga6oHtPBBbJ5lUPzJ6M9ZNQO1iH ubIEleDo15BJK0NRyQMjBmozr/qTvo+VslsVisDp4VgQhqKWp9mCNSLOuHliy0dB1+lne dy634FTuriBFlnheXyuHyO5/Ab9YNPGfeu6Tlam/FJQdAOHEgqspJFGUC6wAg+lW1F8v3 9qaLwxX2Apdh371mKmxO41saRh8P/cUoTkmw9ElYrXY2eJGyoOgRg+kBpj9Z8bc+xSKRM VvV1zHS5qhQeplHn2xEUa6R/IufPlKPOlfd/3I7Rlqoc9KXUhBGJkiAjPBtBo++o8JA== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=bootlin.com; spf=pass smtp.mailfrom=bootlin.com; dkim=pass header.d=bootlin.com header.i=@bootlin.com header.a=rsa-sha256 header.s=dkim header.b=r1K8Qd3u; arc=none smtp.remote-ip=185.171.202.116 Received: from smtpout-04.galae.net (smtpout-04.galae.net [185.171.202.116]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 12D2A606A32C for ; Fri, 4 Dec 2026 21:13:29 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 12D2A606A32C Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=bootlin.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.a=rsa-sha256 header.s=dkim header.b=r1K8Qd3u Received: from smtpout-01.galae.net (smtpout-01.galae.net [212.83.139.233]) by smtpout-04.galae.net (Postfix) with ESMTPS id EEEA6C026DC; Fri, 4 Dec 2026 21:13:39 +0000 (UTC) Received: from mail.galae.net (mail.galae.net [212.83.136.155]) by smtpout-01.galae.net (Postfix) with ESMTPS id E240F603C4; Fri, 4 Dec 2026 21:13:27 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id 4155A11EA17C8; Fri, 04 Dec 2026 22:13:20 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=dkim; t=1796418803; h=from:subject:date:message-id:to:cc:mime-version:content-type: content-transfer-encoding:in-reply-to:references; bh=Udyd2iLKifXn8vORq3lL3U2v308GvdtJKpfd7L9BIqw=; b=r1K8Qd3u9P1sl2SoLeDk4hdbgX0VTp4TS4LOBhYZ31KG/suKNC8uC3aGawFhMJgRxh+xeM TdX/dj5+LbCmYLjyDYenfyAC8fSQtJq60Le30e97iOgzupsZFUtctBuG23skf3Jmm7RcBH flWMOMyP9+J4ky8aPuL1ZSQN8wL4f14CuWt2jRutsbaUZaixnCZaTZxydHuNlmEU+RylGR wwM/zGEL/zMrqSNZqwdio5ocMLEp0nGHpO05ltr4zqZkIb+GyEvgSYNfhpszyYE6GCokxJ ylcj7vuQYe7mY/QUlSzl6Ab0dIY514y6prcHTI7X8hi5YVU8Zz3yzWfq2mJjbA== From: Miquel Raynal To: James Hilliard Cc: Richard Weinberger , Vignesh Raghavendra , Maxim Levitsky , 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 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") References: <20261108-submit-r852-registration-unwind-v1-v1-1-e54be2c652c2@gmail.com> User-Agent: mu4e 1.12.12; emacs 30.2 Date: Fri, 04 Dec 2026 22:13:20 +0100 Message-ID: <87ecbwhhqn.fsf@bootlin.com> X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Last-TLS-Session-Version: TLSv1.3 On 08/11/2026 at 17:20:55 -07, James Hilliard w= rote: > 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 reade= r") > Cc: stable@vger.kernel.org > Link: https://lore.kernel.org/r/sashiko-outbox-204169@kernel.org/ > Signed-off-by: James Hilliard Seems like there is a conflict with the other patches. Please rebase on top of nand/next. Thanks, Miqu=C3=A8l