From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtpout-03.galae.net (smtpout-03.galae.net [185.246.85.4]) (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 30623453A48 for ; Wed, 9 Sep 2026 07:55:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.246.85.4 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1788940560; cv=none; b=IUJsD2GOe8VlMql6H08lpSz0nMKeAX5ZIhJmfnVg1Cri3ZC6UU0u3tRhKdWZhK0tDgoQ88EkKLCAEUJwZeC7cOVhXVYNlJj0KtXQduZu/JyocZ7NdTydy5NPA4k2JfrOmxjck9fM1u0T/qJvbyqKrAs8o8pV42ww7MAOCiHvilY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1788940560; c=relaxed/simple; bh=iYpWo+8WQvUGrE2cJ5v8R1Ujp+sJJyUbgDOvpVF/bt0=; h=From:To:Cc:In-Reply-To:References:Subject:Message-Id:Date: MIME-Version:Content-Type; b=ToMo2+A1QgukSqdiYX5RgdgLYZiGcTnGSgFBC3HS0s/7ucyCWf1Ny02zcSgLUrUp2NoXgelNecIfa0IUiVkHrY/a7dmIkYapKBvfcPeUmxGGwE8eMqaVuyy8qrcyFpKw+QMh2/QWCAUT5RoWR17Ty3fy43BTP/6XIzVLoc0yPOo= 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=tm2yfGKY; arc=none smtp.client-ip=185.246.85.4 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="tm2yfGKY" Received: from smtpout-01.galae.net (smtpout-01.galae.net [212.83.139.233]) by smtpout-03.galae.net (Postfix) with ESMTPS id F26BD4E415AF; Wed, 9 Sep 2026 07:55:55 +0000 (UTC) Received: from mail.galae.net (mail.galae.net [212.83.136.155]) by smtpout-01.galae.net (Postfix) with ESMTPS id BDF7A60448; Wed, 9 Sep 2026 07:55:55 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id B78B611C7AF61; Wed, 9 Sep 2026 09:55:53 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=dkim; t=1788940555; h=from:subject:date:message-id:to:cc:mime-version:content-type: content-transfer-encoding:in-reply-to:references; bh=ZtaMYrbc1LvJjOcu69HuQuW7Xr+njcmF/jzvYPSq8Gg=; b=tm2yfGKY4756Re7kHKVLGXd7MHDbPMEHG0xlUFEKSFKMxxg/xfDoVUaO8M1Fw9+V09CvxY ABB+yr6UzwiVQhGGPElyf7azyU+OpJVxD+K5vwVTaNJdf9jo71Oo8MjvbKl1BnfHX7fkpV EODCNiElCgl55LDlW020ZuU9QtM7W1PZRDIyn+mX+U9llf7aTyJ6ocjHg/1JWVCk0Rm+l+ OmEf3U8wu7QeYR/PcARsb7DS2T7WcujuMtZrtuYSH+yWSVOSwj09RAKuBNJtdQ+aUiNmp2 c7nzhDxLfw4AH4ooRiwRfvEwJ7rGtJmHshVpbYyV7MM3hd5Zp8c6ABz/c4VmDQ== From: Miquel Raynal To: linux-mtd@lists.infradead.org, Rosen Penev Cc: Robert Jarzmik , Richard Weinberger , Vignesh Raghavendra , Nathan Chancellor , Nick Desaulniers , Bill Wendling , Justin Stitt , linux-kernel@vger.kernel.org, llvm@lists.linux.dev In-Reply-To: <20260907004910.226013-1-rosenp@gmail.com> References: <20260907004910.226013-1-rosenp@gmail.com> Subject: Re: [PATCH] mtd: docg3: use devm_platform_ioremap_resource() Message-Id: <178894055366.2043044.18327879742122474927.b4-ty@bootlin.com> Date: Wed, 09 Sep 2026 09:55:53 +0200 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: 8bit X-Mailer: b4 0.14.3 X-Last-TLS-Session-Version: TLSv1.3 On Sun, 06 Sep 2026 17:49:10 -0700, Rosen Penev wrote: > Replace the open-coded platform_get_resource(IORESOURCE_MEM, 0) plus > devm_ioremap() sequence with devm_platform_ioremap_resource(), which folds > the resource lookup, region reservation and mapping into one step and > returns an ERR_PTR checked with IS_ERR()/PTR_ERR(). > > The canonical docg3 register window is DOC_IOSPACE_SIZE (0x2000), which is > the size any platform provides for this device, so mapping the full > resource is equivalent to the previous fixed-size devm_ioremap(). > > [...] Applied to mtd/next, thanks! [1/1] mtd: docg3: use devm_platform_ioremap_resource() commit: 8fcbb04ee5152b303980b2b48d69c6f7f4094ca6 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