OSDN Git Service

platform/x86: x86-android-tablets: Add support for preloading modules
authorHans de Goede <hdegoede@redhat.com>
Wed, 29 Dec 2021 23:14:28 +0000 (00:14 +0100)
committerHans de Goede <hdegoede@redhat.com>
Wed, 5 Jan 2022 10:31:19 +0000 (11:31 +0100)
commitf08aebe9af935422ec58ff3003eda4dfb91d2dd2
tree6f8c12974b4b2b2cd829548f86f6b02b42cbd2bb
parentef2ac11493e24f6c5ad850761aab39a9095010fe
platform/x86: x86-android-tablets: Add support for preloading modules

Since the x86-android-tablets code does all it work from module_init() it
cannot use -EPROBE_DEFER to wait for e.g. interrupt providing GPIO-chips
or PMIC-cells to show up.

To make sure things will still work when some necessary resource providers
are build as module allow the per board info to specify a list of modules
to pre-load before instantiating the I2C clients.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Link: https://lore.kernel.org/r/20211229231431.437982-10-hdegoede@redhat.com
drivers/platform/x86/x86-android-tablets.c