<br><br><div class="gmail_quote">On Wed, Apr 18, 2012 at 2:15 PM, Dave Hylands <span dir="ltr"><<a href="mailto:dhylands@gmail.com">dhylands@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi Mike,<br>
<div><div class="h5"><br>
On Wed, Apr 18, 2012 at 11:07 AM, Holmes, Michael A (Mike)<br>
<<a href="mailto:Mike.Holmes@lsi.com">Mike.Holmes@lsi.com</a>> wrote:<br>
> Hi<br>
><br>
> I have a fully working system to which I want to add the request firmware<br>
> mechanism to an existing platform driver I have working.<br>
><br>
> I instrumented mdev in busybox 1.5.1 and in firmware_class.c 2.6.35 so that<br>
> I could figure this out.<br>
><br>
> What I see with firmware_request() is that the kernel makes the firmware<br>
> request and does not find any firmware and mdev sees nothing.<br>
><br>
> However if I change my code to do request_firmare_nowait(), the entire<br>
> system comes up and about 30seconds in the timeout calls my kernel side<br>
> continue for request_firmare_nowait() and I DO now see my request handled by<br>
> mdev, however it is a REMOVE request not the ADD request.<br>
><br>
> All this makes me think that platform drivers exist before the hotplug<br>
> mechanism is able to operate, is this true ?<br>
<br>
</div></div>Well, request_firmware is ultimately serviced by a user-space process.<br>
<br>
So platform drivers compiled statically into the kernel get<br>
initialized long before user-space starts.<br>
<br>
Platform drivers compiled as modules will get the firmware loaded much<br>
more quickly after loading the module.<br>
<span class="HOEnZb"><font color="#888888"><br></font></span></blockquote><div>Yes this makes sense... I have seen that too ... but is there an elegant way to wait for maybe a uevent and honor the </div><div>request_firmware_no_wait() call within the platform driver code?</div>
<div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="HOEnZb"><font color="#888888">
--<br>
Dave Hylands<br>
Shuswap, BC, Canada<br>
<a href="http://www.davehylands.com" target="_blank">http://www.davehylands.com</a><br>
<br>
_______________________________________________<br>
Kernelnewbies mailing list<br>
<a href="mailto:Kernelnewbies@kernelnewbies.org">Kernelnewbies@kernelnewbies.org</a><br>
<a href="http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies" target="_blank">http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies</a><br>
</font></span></blockquote></div><br><div>BR</div><div>Subbu</div>