[PATCH/RESEND 9/9] drm/tilcdc: replace late_initcall with module_init
Russell King - ARM Linux
linux at arm.linux.org.uk
Wed Jun 25 06:00:42 PDT 2014
On Tue, Jun 24, 2014 at 05:04:36PM -0500, Darren Etheridge wrote:
> On 06/17/2014 09:17 AM, Guido Martínez wrote:
>> Use module_init instead of late_initcall, as is the norm for modular
>> drivers.
>>
>> module_init was used until 6e8de0bd6a51fdeebd5d975c4fcc426f730b339b
>> ("drm/tilcdc: add encoder slave (v2)") changed it to a late_initcall,
>> but it does not explain why. Tests show it's working properly with
>> module_init.
>>
>
> If I recall, the late_initcall stuff was done to try and make sure the
> tda998x/i2c subsystem came up before tilcdc. However it didn't always
> work so we added commit: 39de6194131c155901f96686a063212656d80c2e to try
> and ensure the ordering. This might be why changing back to module_init
> is fine (and I agree with your assessment from my testing).
There's a solution to that... I have patches which convert the tda998x
driver to also register into the component helpers as well as remaining
as a drm slave device. This makes it possible to transition tilcdc to
use the component helper to solve the initialisation ordering.
I'll (re-)post them later today.
--
FTTC broadband for 0.8mile line: now at 9.7Mbps down 460kbps up... slowly
improving, and getting towards what was expected from it.
More information about the dri-devel
mailing list