Re: [PATCH v3 2/2] media: i2c: mt9m114: add support for Aptina MI1040
From: Sakari Ailus
Date: Wed Mar 04 2026 - 16:48:20 EST
Hi Svyatoslav,
One more thing...
On Wed, Mar 04, 2026 at 08:50:01PM +0200, Svyatoslav Ryhel wrote:
> @@ -2646,9 +2658,18 @@ static void mt9m114_remove(struct i2c_client *client)
> pm_runtime_set_suspended(dev);
> }
>
> +static const struct mt9m114_model_info mt9m114_models_default = {
> + .state_standby_polling = true,
> +};
> +
> +static const struct mt9m114_model_info mt9m114_models_aptina = {
> + .state_standby_polling = false,
> +};
> +
> static const struct of_device_id mt9m114_of_ids[] = {
> - { .compatible = "onnn,mt9m114" },
> - { /* sentinel */ },
> + { .compatible = "onnn,mt9m114", .data = &mt9m114_models_default },
> + { .compatible = "aptina,mi1040", .data = &mt9m114_models_aptina },
> + { /* sentinel */ }
The driver also supports ACPI. mt9m114_models_default needs to be added to
the ACPI data, too; otherwise ACPI support breaks.
> };
> MODULE_DEVICE_TABLE(of, mt9m114_of_ids);
>
--
Kind regards,
Sakari Ailus