From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=185.246.85.4 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796418811; b=v4c5LaCWu9ImXsNnYK7LJ/8j2jm/0hetI/omK9kJjY4yDekGLqTjm8g0fThUaiFDak1T MZZaHwFlVdK341b/QbEWwdu2GRnXWBdU8VG110vz/CsvSDy28SKe616lma+wP/VqxT1s3 /6AXBsa0gl1T3vUjZVtwWmBWPEvSYkqao2Z7E7uhnoe+qambBK4PHmHpqulyWHbc83LWk qariVgJTFWSOPiZrnTCmPovCc+JauaCkqyHPR2IGfC39bVV/5F8VVLZjXfXG+EkRmUYZp v/KES+7YENlm4De+44DuYWq5Rf+Cl+4EXIORsKGGa3TSlCpkY8DznFInoGfYlz8negg== 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=rt/fizS2JSJovGbAWyY/UIcyZgZWGCgJZJoWlwH4di6eeE3S/ZVdqIkFXQG/DX+K4VOf R2qle5sfGgvrQ0Q0PAV79ZEnFqqIeBNiZjbfJWOa+1tw29k8eFBVP76qIPSE1ok7DmU4S OvPlg/YgSbJThP6hBJvDnOmK0ySVesolJe08FmxdLYCR0OOAjmVxD+y5KESNHWyLaVV/U Jbsqdf51odLxPRSUMcOGKiI4N8yV9VR0DbtlE49/nRCINbp7QyCPCSKn/ez9wteQ3yDL9 eVdXFH3a9n2Kwk3iYlPBPE3+UyCqwy6L3reDkgW6psjatHHiIrBCcPAGGNlWDDr/JAw== 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.246.85.4 Received: from smtpout-03.galae.net (smtpout-03.galae.net [185.246.85.4]) (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 D1816606A322 for ; Fri, 4 Dec 2026 21:13:29 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org D1816606A322 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-03.galae.net (Postfix) with ESMTPS id 322354E418A0; Fri, 4 Dec 2026 21:13:28 +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: stable@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