From: Roger Quadros <rogerq@ti.com>
To: "Leto, Enrico" <enrico.leto@siemens.com>,
"linux-mtd@lists.infradead.org" <linux-mtd@lists.infradead.org>,
Boris Brezillon <boris.brezillon@free-electrons.com>,
Brian Norris <computersforpeace@gmail.com>
Subject: Re: mtd, nand, omap2: how to pass the NAND device name to mtdparts ?
Date: Mon, 19 Dec 2016 13:11:48 +0200 [thread overview]
Message-ID: <093f00e2-cd63-eee0-59a7-1548bc9ec723@ti.com> (raw)
In-Reply-To: <87CEE11E4E15344BAFE0FAC01C1671FB244857@DEFTHW99EI1MSX.ww902.siemens.net>
Hi,
On 19/12/16 11:30, Leto, Enrico wrote:
> Hello All,
>
> I'm trying to port some projects to kernel 4.4. It crashes because the driver name given by mtdparts (omap2-nand.0) is no more accepted. It's running fine if I replace it with the device name (e.g. S34ML04G1).
What crashes? Is it a user space application? If it is then it shouldn't be
depending on the platform device name for anything.
The mtd_dev_info has the mtd device name but I don't think it contains
the chip name. Rather it will contain MTD type and partition name.
The chip names are cryptic and mean nothing to user space. Why do you
want user space to depend on chip names?
>
> We use different NANDs from different manufacturers. I'm searching for a convenient solution to pass the device name to mtdparts.
>
> Should I read the device name from u-boot and to pass it to mtdparts?
Kernel can also read the chip model so we don't need to depend on u-boot.
> Or some other suggestion or recommendation how to do that ?
As the kernel mtd driver (nand/spi/etc) already knows this information, it is
a matter of just providing it to userspace. Maybe adding another sysfs parameter
like modelname or something will do.
But as this was not yet done there might be a good reason why the model name was
not provided to user space. Maybe Brian/Boris can comment.
cheers,
-roger
next prev parent reply other threads:[~2016-12-19 11:12 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-12-19 9:30 mtd, nand, omap2: how to pass the NAND device name to mtdparts ? Leto, Enrico
2016-12-19 11:11 ` Roger Quadros [this message]
2016-12-19 12:46 ` Boris Brezillon
2016-12-19 12:57 ` Boris Brezillon
2016-12-19 15:28 ` Roger Quadros
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=093f00e2-cd63-eee0-59a7-1548bc9ec723@ti.com \
--to=rogerq@ti.com \
--cc=boris.brezillon@free-electrons.com \
--cc=computersforpeace@gmail.com \
--cc=enrico.leto@siemens.com \
--cc=linux-mtd@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