From nobody Mon Jun 8 22:53:11 2026 Received: from smtpout-04.galae.net (smtpout-04.galae.net [185.171.202.116]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E8B073BED1F for ; Tue, 26 May 2026 07:10:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.171.202.116 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779779412; cv=none; b=CZLj2eymxnrXBgUV5u62MR0WAy4p8uGStY9HVXNXmZw9x/kiAuMRidNCpHZlGOxVFY3c9Zgk3QJ9RDkE1wRIgdPHoIcAZaqK/XhJNFagWP1w0XQimJuYcCwh7YoInicgi9BNMx9E+8qQsyR+7jbDoIoUEjWIW6U6M9eJqsntgoc= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779779412; c=relaxed/simple; bh=tLCJW0BMBOO9ftyqIGYBQrmFVQQ1pG8xdh4+h2u6Vw8=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:To:Cc; b=IT5VrA7rfnasEdBQdH+F6mFlkOpZ4T7GKBl5YvrVJS7Ev0U5JInpAQ/q/uFf28d8Yf9AnwGstYZXvPa5IcPUdTfsCmQRdBAJCjLPgIKUCOz66B9MjPYojMfdQR03GU8TUstk+f8Su5D6+vFcE8t6u3TCd9fYdrTuVG/jKzzuNew= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com; spf=pass smtp.mailfrom=bootlin.com; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b=dY0bbH4H; arc=none smtp.client-ip=185.171.202.116 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.b="dY0bbH4H" Received: from smtpout-01.galae.net (smtpout-01.galae.net [212.83.139.233]) by smtpout-04.galae.net (Postfix) with ESMTPS id 8965EC79AB2; Tue, 26 May 2026 07:10:04 +0000 (UTC) Received: from mail.galae.net (mail.galae.net [212.83.136.155]) by smtpout-01.galae.net (Postfix) with ESMTPS id 2B6FA60732; Tue, 26 May 2026 07:10:05 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id 47F571088837C; Tue, 26 May 2026 09:10:01 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=dkim; t=1779779404; h=from:subject:date:message-id:to:cc:mime-version:content-type: content-transfer-encoding; bh=sjEQBOO1EyR0cLJj1QKDelX8CN8+HmKMIJ0PENvy3gY=; b=dY0bbH4HjD8ezQZJwdA/VkzXbxcw48znO8YabyPrfMd2eF0WR+yONliT+muxVu7XIrwVtC Wi+g8fz6SDn3AEsHg+GXHxtAd7/6e94RuHvWj4BxAEBKsDggwkwCjHKfRZbGhcOeuxPWiB PX+NFAgYvX7yv8Y1LY/L/ll3JfcXkiwN6udx4jrL6EBOLMW/i61pztHDDglVHk6AKW8N2N 44B7YIWgUzrDzTIYoAVMmblRU01msMxcQC5Rs5ETr58GnXF32yRHHUXPet2tFk0WRMs2d7 Mxk3KkrXwTL2LkHufEj9dKg2/gePt+K2I0eKGEX+nqhjj+e3N4R/Jgnn+xmcrA== From: Bastien Curutchet Date: Tue, 26 May 2026 09:10:00 +0200 Subject: [PATCH] mtd: rawnand: pl353: fix probe resource allocation Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20260526-fix-pl35x-probe-v1-1-3baad4f527f2@bootlin.com> X-B4-Tracking: v=1; b=H4sIAAAAAAAC/6tWKk4tykwtVrJSqFYqSi3LLM7MzwNyDHUUlJIzE vPSU3UzU4B8JSMDIzMDUyMz3bTMCt2CHGNTIFmUn5Sqa25oaZyUnJZsnmRhogTUVVCUClQCNjE 6trYWAL4TWK9hAAAA X-Change-ID: 20260526-fix-pl35x-probe-7193bcfc7b84 To: Miquel Raynal , Michal Simek , Richard Weinberger , Vignesh Raghavendra Cc: Thomas Petazzoni , linux-mtd@lists.infradead.org, linux-kernel@vger.kernel.org, stable@vger.kernel.org, Bastien Curutchet X-Mailer: b4 0.14.3 X-Last-TLS-Session-Version: TLSv1.3 During probe(), the devm_ioremap() is called with the parent device instead of the current one. So when the module is unloaded, the register area isn't released. Target the pl35x device in the devm_ioremap() instead of its parent. Cc: stable@vger.kernel.org Fixes: 08d8c62164a3 ("mtd: rawnand: pl353: Add support for the ARM PL353 SM= C NAND controller") Signed-off-by: Bastien Curutchet --- drivers/mtd/nand/raw/pl35x-nand-controller.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mtd/nand/raw/pl35x-nand-controller.c b/drivers/mtd/nan= d/raw/pl35x-nand-controller.c index f2c65eb7a8d9..06f8f1e14b9c 100644 --- a/drivers/mtd/nand/raw/pl35x-nand-controller.c +++ b/drivers/mtd/nand/raw/pl35x-nand-controller.c @@ -1155,7 +1155,7 @@ static int pl35x_nand_probe(struct platform_device *p= dev) nfc->controller.ops =3D &pl35x_nandc_ops; INIT_LIST_HEAD(&nfc->chips); =20 - nfc->conf_regs =3D devm_ioremap_resource(&smc_amba->dev, &smc_amba->res); + nfc->conf_regs =3D devm_ioremap_resource(nfc->dev, &smc_amba->res); if (IS_ERR(nfc->conf_regs)) return PTR_ERR(nfc->conf_regs); =20 --- base-commit: 254f49634ee16a731174d2ae34bc50bd5f45e731 change-id: 20260526-fix-pl35x-probe-7193bcfc7b84 Best regards, --=20 Bastien Curutchet