From: Timur Tabi <timur@freescale.com>
To: Bruce_Leonard@selinc.com
Cc: linuxppc-embedded@ozlabs.org
Subject: Re: Using DMA
Date: Tue, 11 Nov 2008 08:51:07 -0600 [thread overview]
Message-ID: <49199BDB.8050700@freescale.com> (raw)
In-Reply-To: <OFD9F4E831.43139485-ON882574FD.00772E9C-882574FD.007963C9@selinc.com>
Bruce_Leonard@selinc.com wrote:
> linuxppc-embedded-bounces+brucle=selinc.com@ozlabs.org wrote on 11/09/2008
> 04:09:51 PM:
>
>>> The Elo device driver is an async DMA back-end driver. That is, you
>>> don't communicate with that driver directly, you communicate with the
>>> async library (which is new - so you won't find it in LDD3).
>>>
>> Okay, has anyone actually _used_ the Elo driver? I can't get the probe
>> function to run. I get into of_fsl_dma_init(), but of_fsl_dma_probe()
>> never executes. I have CONFIG_DMADEVICES and CONFIG_FSL_DMA set in my
>
> It would help if I was sure _when_the probe function was supposed to be
> called.
Normally, your driver's OF probe function will be called when the driver calls
of_register_platform_driver().
> I traced of_fsl_dma_init() all the way down into
> bus_for_each_dev(), but the call to the passed in function
> (__driver_attach() in this case) never gets called.
I believe this because the kernel never scanned the DMA entries in the device
tree. This is why I said you need of_platform_bus_probe() with the compatible
field of the parent of the DMA controller node. Send me your device tree.
> Also, my NAND driver init function is
> wrapped in module_init() whereas the Elo driver init function is wrapped
> in subsys_initcall().
When compiled as a module, subsys_initcall() becomes module_init(). When
compiled in-kernel, subsys_initcall() guarantees the DMA driver is initialized
before other (normal) drivers are.
--
Timur Tabi
Linux kernel developer at Freescale
next prev parent reply other threads:[~2008-11-11 14:51 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-11-06 2:07 Using DMA Bruce_Leonard
2008-11-06 18:29 ` Scott Wood
2008-11-06 18:36 ` Bill Gatliff
2008-11-06 20:58 ` Bruce_Leonard
2008-11-06 21:42 ` Bill Gatliff
2008-11-07 15:43 ` Timur Tabi
2008-11-07 21:31 ` Bruce_Leonard
2008-11-07 21:46 ` Timur Tabi
2008-11-07 22:12 ` Bruce_Leonard
2008-11-07 22:28 ` Timur Tabi
2008-11-07 22:37 ` Bruce_Leonard
2008-11-09 3:26 ` Bill Gatliff
2008-11-09 3:25 ` Bill Gatliff
2008-11-10 0:09 ` Bruce_Leonard
2008-11-10 14:35 ` Timur Tabi
2008-11-10 17:58 ` Bruce_Leonard
2008-11-11 9:09 ` Rajasekaran Kaliyaperumal, Chennai
2008-11-11 10:22 ` Porting Linux to 8051 [ was:Re: Using DMA ] Martyn Welch
2008-11-10 22:06 ` Using DMA Bruce_Leonard
2008-11-11 14:51 ` Timur Tabi [this message]
2008-11-11 18:19 ` Bruce_Leonard
2008-11-11 19:22 ` Timur Tabi
2008-11-11 21:46 ` Bruce_Leonard
2008-11-11 21:54 ` Timur Tabi
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=49199BDB.8050700@freescale.com \
--to=timur@freescale.com \
--cc=Bruce_Leonard@selinc.com \
--cc=linuxppc-embedded@ozlabs.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 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.