From: Sascha Hauer <s.hauer@pengutronix.de>
To: BAREBOX <barebox@lists.infradead.org>
Subject: [PATCH 0/2] cdev partition fix
Date: Mon, 02 Jun 2025 10:51:30 +0200 [thread overview]
Message-ID: <20250602-cdev-part-fixes-v1-0-814d9aa195ed@pengutronix.de> (raw)
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>
next reply other threads:[~2025-06-02 8:52 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-06-02 8:51 Sascha Hauer [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20250602-cdev-part-fixes-v1-0-814d9aa195ed@pengutronix.de \
--to=s.hauer@pengutronix.de \
--cc=barebox@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox