From: Miquel Raynal <miquel.raynal@bootlin.com>
To: "Roland Kovács" <roland.kovacs@est.tech>
Cc: "linux-mtd@lists.infradead.org" <linux-mtd@lists.infradead.org>,
Malin Jonsson <malin.jonsson@est.tech>
Subject: Re: Questions about MTD subpartitioning
Date: Fri, 18 Apr 2025 09:16:37 +0200 [thread overview]
Message-ID: <878qnyndm2.fsf@bootlin.com> (raw)
In-Reply-To: <AM7P189MB07258ABAA4DA1823DDDE78579BBC2@AM7P189MB0725.EURP189.PROD.OUTLOOK.COM> ("Roland Kovács"'s message of "Thu, 17 Apr 2025 12:08:42 +0000")
Hi Roland,
On 17/04/2025 at 12:08:42 GMT, Roland Kovács <roland.kovacs@est.tech> wrote:
> Hi,
>
> I'd like to ask some questions regarding mtdchar device driver.
> We'd like to add subpartitions to the PDR region of a NOR-flash device from userspace, but we hit a check in the BLKPG
> ioctl call which prevents subpartitioning.
> As far as I can tell, this check predates the support for subpartitions in mtdpart.c and I couldn't find information on
> why this is the case.
>
> Is there a particular reason why subpartitions through BLKPG is not allowed?
> Or do you have any other recommended way of doing subpartitions from
> userspace?
In general I do not use subpartitioning from userspace, so I must admit
this is going to be a blind advise.
Looking at the code I see that partitioning is only allowed on master
devices, not partitions. But if you have partitions in you DT, the
master device is not kept (for historical reasons). But if you need it
you may select CONFIG_MTD_PARTITIONED_MASTER.
If that does not help, please give more details about the command
attempted, the device identification and geometry as well as the errors
you get.
Thanks,
Miquèl
______________________________________________________
Linux MTD discussion mailing list
http://lists.infradead.org/mailman/listinfo/linux-mtd/
next parent reply other threads:[~2025-04-18 7:59 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <AM7P189MB07258ABAA4DA1823DDDE78579BBC2@AM7P189MB0725.EURP189.PROD.OUTLOOK.COM>
2025-04-18 7:16 ` Miquel Raynal [this message]
[not found] ` <DB8P189MB073217A985B7E4D574C972829B852@DB8P189MB0732.EURP189.PROD.OUTLOOK.COM>
2025-04-29 8:51 ` Questions about MTD subpartitioning Miquel Raynal
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=878qnyndm2.fsf@bootlin.com \
--to=miquel.raynal@bootlin.com \
--cc=linux-mtd@lists.infradead.org \
--cc=malin.jonsson@est.tech \
--cc=roland.kovacs@est.tech \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.