Re: A workaround for request_firmware() stuck in module_init

From: Alan Cox
Date: Wed Sep 05 2012 - 19:13:21 EST


> But then you have cases where probe() -> register_with_my_subsystem() ->
> open(). Network devices come to mind. IE. udev must be able to deal with
> a synchronous firmware load from probe I'm afraid.

I don't believe so. You have

begin probe
find match .. .firmware_name is set
issue firmware load request
set defer flag
end probe

Later..

firmware load complete
kick probe up arse

begin probe
find match .. .firmware is loaded
call ->probe()
register
open
happiness
end probe

Alan
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/