[PATCH 0/2] cdev partition fix
Sascha Hauer
s.hauer at pengutronix.de
Mon Jun 2 01:51:30 PDT 2025
cdev partitions are cdevs themselves, but they are handled internally in
the devfs-core. cdev partitions should not be passed as context pointers
to the cdev ops though, because the drivers might do a container_of() on
them to retrieve their driver data. Pass the original cdev the driver
has registered as context to the ops
Signed-off-by: Sascha Hauer <s.hauer at pengutronix.de>
---
Sascha Hauer (2):
cdev: pass master cdev to cdev ops
nvmem: Drop now unnecessary partition quirk
drivers/nvmem/core.c | 10 ++--------
fs/devfs-core.c | 53 ++++++++++++++++++++++++++++++++++++++++------------
2 files changed, 43 insertions(+), 20 deletions(-)
---
base-commit: 812b498be4057c39d017cad6bf43664fe04ee44b
change-id: 20250602-cdev-part-fixes-e2416b848e82
Best regards,
--
Sascha Hauer <s.hauer at pengutronix.de>
More information about the barebox
mailing list