mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH 0/2] cdev partition fix
@ 2025-06-02  8:51 Sascha Hauer
  2025-06-02  8:51 ` [PATCH 1/2] cdev: pass master cdev to cdev ops Sascha Hauer
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Sascha Hauer @ 2025-06-02  8:51 UTC (permalink / raw)
  To: BAREBOX

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@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@pengutronix.de>




^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2025-06-02 12:35 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-06-02  8:51 [PATCH 0/2] cdev partition fix Sascha Hauer
2025-06-02  8:51 ` [PATCH 1/2] cdev: pass master cdev to cdev ops Sascha Hauer
2025-06-02  9:03   ` Ahmad Fatoum
2025-06-02 10:12     ` Sascha Hauer
2025-06-02 10:20       ` Ahmad Fatoum
2025-06-02  8:51 ` [PATCH 2/2] nvmem: Drop now unnecessary partition quirk Sascha Hauer
2025-06-02 12:30 ` [PATCH 0/2] cdev partition fix Sascha Hauer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox