Re: [PATCH 1/3] include: linux: i2c: more helpers for declaring i2c drivers

Wolfram Sang
2019-06-24T08:44:32Z

[-- Attachment #1: Type: text/plain, Size: 504 bytes --]

> Okay, what's the correct initialization method then ?
> Just convert it to already existing module_i2c_driver() ?

"module_platform_driver" you mean? That's tricky because it can
introduce regressions easily. I had one situation where one wanted
subsys_init and one wanted module_init.

The correct solution is to fix the boot dependency in the affected I2C
client drivers. That definately needs HW and thorough testing.

It may also need something better than the current deferred probe. Big
topic.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]