Package: linux-image-4.17.0-1-powerpc64le
Version: 4.17.8-1

The MTD partitions of the main firmware Flash device are not exposed as
MTD device nodes on PowerNV systems.  This makes firmware updates
difficult, requiring manual intervention on the loader shell.

This issue has been fixed upstream via a one-line kernel patch
(attached, see also [1]).  Debian kernels should include this patch to
allow firmware updates to be applied to PowerNV machines.

Thank you!

[1] https://patchwork.ozlabs.org/patch/943327/
>From patchwork Fri Jul 13 08:15:59 2018
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
Subject: mtd: powernv_flash: set of_node in mtd's dev
X-Patchwork-Submitter: =?utf-8?b?UmFmYcWCIE1pxYJlY2tp?= <zaj...@gmail.com>
X-Patchwork-Id: 943327
X-Patchwork-Delegate: boris.brezil...@free-electrons.com
Message-Id: <20180713081559.4373-1-zaj...@gmail.com>
To: David Woodhouse <dw...@infradead.org>,
 Brian Norris <computersforpe...@gmail.com>,
 Boris Brezillon <boris.brezil...@free-electrons.com>,
 Marek Vasut <marek.va...@gmail.com>, Richard Weinberger <rich...@nod.at>
Cc: Benjamin Herrenschmidt <b...@kernel.crashing.org>, Timothy Pearson
 <tpear...@raptorengineering.com>, linux-...@lists.infradead.org,
 Michael Ellerman <m...@ellerman.id.au>, Miquel Raynal
 <miquel.ray...@bootlin.com>, =?utf-8?b?UmFmYcWCIE1pxYJlY2tp?=
 <ra...@milecki.pl>, Paul Mackerras <pau...@samba.org>,
 linuxppc-...@lists.ozlabs.org,  Cyril Bur <cyril...@gmail.com>
Date: Fri, 13 Jul 2018 10:15:59 +0200
From: =?utf-8?b?UmFmYcWCIE1pxYJlY2tp?= <zaj...@gmail.com>
List-Id: Linux MTD discussion mailing list <linux-mtd.lists.infradead.org>

From: Rafał Miłecki <ra...@milecki.pl>

This enables some features implemented in mtd subsystem like reading
label and partitioning info from DT.

Reported-by: Timothy Pearson <tpear...@raptorengineering.com>
Signed-off-by: Rafał Miłecki <ra...@milecki.pl>
---
 drivers/mtd/devices/powernv_flash.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/mtd/devices/powernv_flash.c b/drivers/mtd/devices/powernv_flash.c
index c1312b141ae0..33593122e49b 100644
--- a/drivers/mtd/devices/powernv_flash.c
+++ b/drivers/mtd/devices/powernv_flash.c
@@ -223,6 +223,7 @@ static int powernv_flash_set_driver_info(struct device *dev,
 	mtd->_read = powernv_flash_read;
 	mtd->_write = powernv_flash_write;
 	mtd->dev.parent = dev;
+	mtd_set_of_node(mtd, dev->of_node);
 	return 0;
 }
 
  • Bug#904380: [PATCH] Flash partitions not showing up on Pow... Timothy Pearson

Reply via email to