]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
arm64: zynqmp: Do not duplicate flash partition label property
authorAmit Kumar Mahapatra <amit.kumar-mahapatra@xilinx.com>
Mon, 14 Jun 2021 15:25:10 +0000 (17:25 +0200)
committerKleber Sacilotto de Souza <kleber.souza@canonical.com>
Thu, 13 Jan 2022 17:42:50 +0000 (18:42 +0100)
commit32bb1d14dc96324947ba12502e2176486746870e
tree3a5192580c965054b6dcf57871a38dd5e9a6ab35
parent7a944c42ac7269136d2e26d78e02c83e73ef5e1d
arm64: zynqmp: Do not duplicate flash partition label property

BugLink: https://bugs.launchpad.net/bugs/1954834
[ Upstream commit 167721a5909f867f8c18c8e78ea58e705ad9bbd4 ]

In kernel 5.4, support has been added for reading MTD devices via the nvmem
API.
For this the mtd devices are registered as read-only NVMEM providers under
sysfs with the same name as the flash partition label property.

So if flash partition label property of multiple flash devices are
identical then the second mtd device fails to get registered as a NVMEM
provider.

This patch fixes the issue by having different label property for different
flashes.

Signed-off-by: Amit Kumar Mahapatra <amit.kumar-mahapatra@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Link: https://lore.kernel.org/r/6c4b9b9232b93d9e316a63c086540fd5bf6b8687.1623684253.git.michal.simek@xilinx.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Kleber Sacilotto de Souza <kleber.souza@canonical.com>
arch/arm64/boot/dts/xilinx/zynqmp-zc1751-xm016-dc2.dts