From: Artem Bityutskiy <dedekind1@gmail.com>
To: akpm@linux-foundation.org
Cc: gregkh@suse.de, joern@logfs.org, nico@marvell.com,
saeed@marvell.com, linux-mtd@lists.infradead.org,
u.kleine-koenig@pengutronix.de, dwmw2@infradead.org,
buytenh@marvell.com
Subject: Re: [patch 5/8] mtd: register orion_nand using platform_driver_probe()
Date: Mon, 10 Aug 2009 10:14:15 +0300 [thread overview]
Message-ID: <1249888455.19638.6.camel@localhost> (raw)
In-Reply-To: <200908062305.n76N5Y08004955@imap1.linux-foundation.org>
On Thu, 2009-08-06 at 16:05 -0700, akpm@linux-foundation.org wrote:
> From: Uwe Kleine-Knig <u.kleine-koenig@pengutronix.de>
>
> orion_nand_probe lives in .init.text, so using platform_driver_register to
> register it is wrong because binding a device after the init memory is
> discarded (e.g. via sysfs) results in an oops.
>
> As requested by Nicolas Pitre platform_driver_probe is used instead of
> moving the probe function to .devinit.text as proposed initially. This
> saves some memory, but devices registered after the driver is probed are
> not bound (probably there are none) and binding via sysfs isn't possible.
>
> Signed-off-by: Uwe Kleine-Knig <u.kleine-koenig@pengutronix.de>
> Cc: Lennert Buytenhek <buytenh@marvell.com>
> Cc: Saeed Bishara <saeed@marvell.com>
> Cc: Joern Engel <joern@logfs.org>
> Acked-by: Nicolas Pitre <nico@marvell.com>
> Cc: Greg Kroah-Hartman <gregkh@suse.de>
> Cc: David Woodhouse <dwmw2@infradead.org>
> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
This one is in my l2-mtd-2.6.git.
--
Best Regards,
Artem Bityutskiy (Артём Битюцкий)
prev parent reply other threads:[~2009-08-10 7:16 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-08-06 23:05 [patch 5/8] mtd: register orion_nand using platform_driver_probe() akpm
2009-08-10 7:14 ` Artem Bityutskiy [this message]
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=1249888455.19638.6.camel@localhost \
--to=dedekind1@gmail.com \
--cc=akpm@linux-foundation.org \
--cc=buytenh@marvell.com \
--cc=dwmw2@infradead.org \
--cc=gregkh@suse.de \
--cc=joern@logfs.org \
--cc=linux-mtd@lists.infradead.org \
--cc=nico@marvell.com \
--cc=saeed@marvell.com \
--cc=u.kleine-koenig@pengutronix.de \
/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