From: Pierre Ossman <drzeus@drzeus.cx>
To: "raki john" <raki4652@gmail.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: Order of Loading mmc driver modules.
Date: Thu, 27 Dec 2007 11:53:15 +0100 [thread overview]
Message-ID: <20071227115315.460d8827@poseidon.drzeus.cx> (raw)
In-Reply-To: <d2a348dd0712261040w402d6390o1b4f2abd83959c86@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 1531 bytes --]
On Wed, 26 Dec 2007 10:40:22 -0800
"raki john" <raki4652@gmail.com> wrote:
> Hi All,
>
> I am working with pxamci driver(2.6.22.1). I have made , core and host
> as separate modules.
>
> what is the correct order of loading the modules
>
> i am doing in this order first core (mmc_core.ko), then card(mmc_block.ko)
> after that host driver ( pxamci.ko). Is this correct.
>
If you're using just insmod, then yes, this is a valid order. The only thing that is crucial is that mmc_core is loaded before any of the other. If you use modprobe that will happen automatically.
> I do not know much about Linux device model.
>
There's lots of info on the web and in the Documentation/ directory of the kernel source if you want to indulge yourself.
> i saw that pxamci.ko driver registers it self as platform_driver. When
> does its probe function is called. Is it called immediately after
> platform_driver_register(&pxamci_driver) is called.
>
For pxamci, yes. More specifically, the probe function is called when there is both a driver (created by platform_driver_register()) and a device (platform_device_register()) available. But since the device is added very early in the pxamci case, the magic will happen when the driver registers.
> also in card driver (mmc_block.ko) in block.c file i saw a probe
> function(mmc_blk_probe). How does it is invoked .
>
When the corresponding device is registered. In this case it is whenever a card is detected and initialized.
Rgds
Pierre
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 197 bytes --]
prev parent reply other threads:[~2007-12-27 10:53 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-12-26 18:40 raki john
2007-12-27 10:53 ` Pierre Ossman [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=20071227115315.460d8827@poseidon.drzeus.cx \
--to=drzeus@drzeus.cx \
--cc=linux-kernel@vger.kernel.org \
--cc=raki4652@gmail.com \
/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
all inboxes | Powered by JetHome®