* [PATCH 0/1] mmc-modalias-v2r1 [not found] <20090218205654.05896ece@mjolnir.ossman.eu> @ 2009-02-23 12:38 ` Andy Whitcroft 2009-02-23 12:38 ` [PATCH 1/1] mmc: add MODALIAS linkage for MMC/SD devices Andy Whitcroft 1 sibling, 0 replies; 3+ messages in thread From: Andy Whitcroft @ 2009-02-23 12:38 UTC (permalink / raw) To: Pierre Ossman; +Cc: Andy Whitcroft, Andrew Morton, linux-kernel *** BLURB HERE *** Andy Whitcroft (1): mmc: add MODALIAS linkage for MMC/SD devices drivers/mmc/card/block.c | 2 ++ drivers/mmc/core/bus.c | 8 ++++++++ 2 files changed, 10 insertions(+), 0 deletions(-) ^ permalink raw reply [flat|nested] 3+ messages in thread
* [PATCH 1/1] mmc: add MODALIAS linkage for MMC/SD devices [not found] <20090218205654.05896ece@mjolnir.ossman.eu> 2009-02-23 12:38 ` [PATCH 0/1] mmc-modalias-v2r1 Andy Whitcroft @ 2009-02-23 12:38 ` Andy Whitcroft 2009-03-02 21:10 ` Pierre Ossman 1 sibling, 1 reply; 3+ messages in thread From: Andy Whitcroft @ 2009-02-23 12:38 UTC (permalink / raw) To: Pierre Ossman; +Cc: Andy Whitcroft, Andrew Morton, linux-kernel [Pierre, here is the updated version. Got lost somewhere after testing and before sending out.] Currently we are using an explicit udev rule to trigger loading of the mmc-block module when an MMC or SD card is detected: SUBSYSTEM=="mmc", RUN+="/sbin/modprobe -Qba mmc-block" It makes much more sense for the mmc bus driver and the mmc-block module to share MODALIAS information so that they are linked automatically. There is no real information of use in the MMC system at the current time. All devices inserted require us to load the mmc-block device. Until such time as useful parameters exist simply reflect the module linkage via the module alias below: mmc:block Signed-off-by: Andy Whitcroft <apw@canonical.com> --- drivers/mmc/card/block.c | 2 ++ drivers/mmc/core/bus.c | 8 ++++++++ 2 files changed, 10 insertions(+), 0 deletions(-) diff --git a/drivers/mmc/card/block.c b/drivers/mmc/card/block.c index 513eb09..fe8041e 100644 --- a/drivers/mmc/card/block.c +++ b/drivers/mmc/card/block.c @@ -41,6 +41,8 @@ #include "queue.h" +MODULE_ALIAS("mmc:block"); + /* * max 8 partitions per card */ diff --git a/drivers/mmc/core/bus.c b/drivers/mmc/core/bus.c index f210a8e..bdb165f 100644 --- a/drivers/mmc/core/bus.c +++ b/drivers/mmc/core/bus.c @@ -84,6 +84,14 @@ mmc_bus_uevent(struct device *dev, struct kobj_uevent_env *env) } retval = add_uevent_var(env, "MMC_NAME=%s", mmc_card_name(card)); + if (retval) + return retval; + + /* + * Request the mmc_block device. Note: that this is a direct request + * for the module it carries no information as to what is inserted. + */ + retval = add_uevent_var(env, "MODALIAS=mmc:block"); return retval; } -- 1.6.1.2.419.g0d87e ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH 1/1] mmc: add MODALIAS linkage for MMC/SD devices 2009-02-23 12:38 ` [PATCH 1/1] mmc: add MODALIAS linkage for MMC/SD devices Andy Whitcroft @ 2009-03-02 21:10 ` Pierre Ossman 0 siblings, 0 replies; 3+ messages in thread From: Pierre Ossman @ 2009-03-02 21:10 UTC (permalink / raw) To: Andy Whitcroft; +Cc: Andy Whitcroft, Andrew Morton, linux-kernel On Mon, 23 Feb 2009 12:38:41 +0000 Andy Whitcroft <apw@canonical.com> wrote: > [Pierre, here is the updated version. Got lost somewhere after testing > and before sending out.] > > Currently we are using an explicit udev rule to trigger loading of the > mmc-block module when an MMC or SD card is detected: > > SUBSYSTEM=="mmc", RUN+="/sbin/modprobe -Qba mmc-block" > > It makes much more sense for the mmc bus driver and the mmc-block module to > share MODALIAS information so that they are linked automatically. > > There is no real information of use in the MMC system at the current time. > All devices inserted require us to load the mmc-block device. Until such > time as useful parameters exist simply reflect the module linkage via > the module alias below: > > mmc:block > > Signed-off-by: Andy Whitcroft <apw@canonical.com> > --- Queued, thanks. Rgds -- -- Pierre Ossman Linux kernel, MMC maintainer http://www.kernel.org rdesktop, core developer http://www.rdesktop.org WARNING: This correspondence is being monitored by the Swedish government. Make sure your server uses encryption for SMTP traffic and consider using PGP for end-to-end encryption. ^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2009-03-02 21:10 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <20090218205654.05896ece@mjolnir.ossman.eu>
2009-02-23 12:38 ` [PATCH 0/1] mmc-modalias-v2r1 Andy Whitcroft
2009-02-23 12:38 ` [PATCH 1/1] mmc: add MODALIAS linkage for MMC/SD devices Andy Whitcroft
2009-03-02 21:10 ` Pierre Ossman
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®