• Hans de Goede's avatar
    media: atomisp: gc0310: Switch over to ACPI powermanagement · 2ec5bfe0
    Hans de Goede authored
    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: default avatarAndy Shevchenko <andy.shevchenko@gmail.com>
    Signed-off-by: default avatarHans de Goede <hdegoede@redhat.com>
    Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@kernel.org>
    2ec5bfe0
gc0310.h 8.3 KB