• Laurent Pinchart's avatar
    media: i2c: hi846: Drop system suspend and resume handlers · 2223243c
    Laurent Pinchart authored
    Stopping streaming on a camera pipeline at system suspend time, and
    restarting it at system resume time, requires coordinated action between
    the bridge driver and the camera sensor driver. This is handled by the
    bridge driver calling the sensor's .s_stream() handler at system suspend
    and resume time. There is thus no need for the sensor to independently
    implement system sleep PM operations. Drop them.
    
    Now that the runtime PM operations are not called from the system PM
    handlers, the sensor is guaranteed not to be streaming when the runtime
    PM resume handler is called, and to have been stopped already when the
    runtime PM suspend handler is called. Drop the manual stream start/stop
    from the runtime PM handlers.
    Signed-off-by: default avatarLaurent Pinchart <laurent.pinchart@ideasonboard.com>
    Signed-off-by: default avatarSakari Ailus <sakari.ailus@linux.intel.com>
    Signed-off-by: default avatarHans Verkuil <hverkuil-cisco@xs4all.nl>
    2223243c
hi846.c 52.4 KB