Searched hist:"2 ec5bfe0" (Results 1 – 1 of 1) sorted by relevance
/openbmc/linux/drivers/staging/media/atomisp/i2c/ |
H A D | atomisp-gc0310.c | 2ec5bfe0 Sun Feb 05 16:42:31 CST 2023 Hans de Goede <hdegoede@redhat.com> media: atomisp: gc0310: Switch over to ACPI powermanagement
The DSDT of all Windows BYT / CHT devices which I have seen has proper ACPI powermagement for the clk and regulators used by the sensors.
So there is no need for the whole custom atomisp_gmin custom code to disable the ACPI pm and directly poke at the PMIC for this.
Replace all the atomisp_gmin usage with using the new atomisp_register_sensor_no_gmin() / atomisp_unregister_subdev() helpers which allow registering a sensor with the atomisp code without using any of the atomisp_gmin power-management code.
Note eventually these calls should be replaced by the standard v4l2_async_register_subdev_sensor() mechanism.
But this first requires a bunch of work to the atomisp main code to make it set the necessary fwnodes up, similar to how drivers/media/pci/intel/ipu3/cio2-bridge.c does this.
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com> Signed-off-by: Hans de Goede <hdegoede@redhat.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
|