Messages in this thread | | | Date | Fri, 17 Oct 2014 13:05:35 +0530 | From | Vinod Koul <> | Subject | Re: [PATCH] dmaengine: pl330: use subsys_initcall |
| |
On Fri, Oct 17, 2014 at 09:45:45AM +0200, Lars-Peter Clausen wrote: > On 10/17/2014 02:48 AM, Ray Jui wrote: > >As part of subsystem that many slave drivers depend on, it's more > >appropriate for the pl330 DMA driver to be initialized at > >subsys_initcall than device_initcall > > Well, we do have -EPROBE_DEFER these days to handle these kinds of > dependencies so we no longer have to these kinds of manual init > reordering tricks. How ould that work?
Consider for example SPI and dmanegine. SPI driver got probed, then to start a transaction requested a channel... while dmaengine driver is still getting probed/not probed yet. So SPI driver didnt get a channel.
-- ~Vinod
| |