[PATCH] i2c: sirf: move driver init from module_init to subsys_initcall
Barry Song
21cnbao at gmail.com
Thu May 16 06:25:39 EDT 2013
2013/5/16 Wolfram Sang <wsa at the-dreams.de>:
> On Thu, May 16, 2013 at 10:50:07AM +0800, Barry Song wrote:
>> From: Xiaomeng Hou <Xiaomeng.Hou at csr.com>
>>
>> if we initilize i2c bus by module_init, there are some devices which want
>> initialization earlier than i2c and could not do that in time, so move i2c
>> driver initilization to subsys_initcall and make i2c ready before devices
>> init.
>>
>> Signed-off-by: Xiaomeng Hou <Xiaomeng.Hou at csr.com>
>> Signed-off-by: Barry Song <Baohua.Song at csr.com>
>
> What about deferred probing?
deferred probing could work but could not work for automative.
what we really want is that devices begin to work as early as
possible. we want i2c clients like lcd, camera begin to show images as
early as possible as an automative requirement.
-barry
More information about the linux-arm-kernel
mailing list