[PATCH 0/2] ubi: wire up parent device

From: Daniel Golle
Date: Thu Dec 22 2022 - 14:33:23 EST


Wire up device parents of UBI devices and ubiblock devices (UBI volume
devices are already correctly wired to their parent UBI device). This
makes more sense than having UBI devices free-standing in
/sys/devices/virtual/ubi/ without any connection to their parent MTD
device, and ubiblock devices in /sys/devices/virtual/block/ which would
be better hosted by the UBI volume device they belong to.

The purpose of these changes is to allow downstream tools to more
easily identify UBI<->hardware relationship, and potentially also
improve power management and scheduling performance in future.

Daniel Golle (2):
mtd: ubi: wire-up parent MTD device
mtd: ubi: block: wire-up device parent

drivers/mtd/ubi/block.c | 2 +-
drivers/mtd/ubi/build.c | 1 +
drivers/mtd/ubi/kapi.c | 1 +
include/linux/mtd/ubi.h | 1 +
4 files changed, 4 insertions(+), 1 deletion(-)


base-commit: e45fb347b630ee76482fe938ba76cf8eab811290
--
2.39.0