About module priority

Tirtha Ghosh gtirtha at gmail.com
Thu Apr 19 10:29:42 EDT 2012


Hi,

For what platform are you building this. Don't u have access to build the whole kernel for the same? 
If so, then u can follow what Arun said. While building the kernel, just do not build sd card in built driver that will ensure to call ur module. 

Sent from my iPhone

On 19-Apr-2012, at 7:46 PM, Geraint Yang <geraint0923 at gmail.com> wrote:

> Hi Arun,
> 
> Thanks for your reply.
> 
> I have ever thought about this method, but my sd driver is only for my own special sd card which is not the common sd card and my driver could not deal with the common sd card. So I need the default sd driver for other  common sd cards.
> 
> I hope that mmc core could let my driver probe first, if the sd card is my special one, my driver will operate it  in my own way, otherwise mmc core will call the prob function of the default sd driver then.
> 
> On Thu, Apr 19, 2012 at 9:50 PM, Arun KS <getarunks at gmail.com> wrote:
> Hi Geraint,
> 
> On Thu, Apr 19, 2012 at 2:05 PM, Geraint Yang <geraint0923 at gmail.com> wrote:
> Hi folks,
> I am writing a kernel module for a sd card, but when I insert a sd card into my box, the default sd driver will probe before my driver, and my driver will never have chance to probe. Is there any method to make my driver probe the sd card before the default sd driver?
> 
> Why can't you disable  the default sd card driver in your .config?
> 
> Thanks in advance.
> 
> 
> _______________________________________________
> Kernelnewbies mailing list
> Kernelnewbies at kernelnewbies.org
> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
> 
> 
> 
> 
> 
> -- 
> Geraint Yang 
> Tsinghua University Department of Computer Science and Technology
> 
> 
> _______________________________________________
> Kernelnewbies mailing list
> Kernelnewbies at kernelnewbies.org
> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20120419/1663f015/attachment.html 


More information about the Kernelnewbies mailing list