diff options
author | Sakari Ailus <sakari.ailus@linux.intel.com> | 2023-10-14 20:56:00 +0300 |
---|---|---|
committer | Hans Verkuil <hverkuil-cisco@xs4all.nl> | 2023-11-22 10:56:34 +0100 |
commit | a274f4d1e5af404fcc7b5554521913590c9d7b08 (patch) | |
tree | d5a183fcb88fbcf457410efd87673782388eb8e9 /drivers/media/i2c/ccs/ccs.h | |
parent | 1865913dd590ca6d5e3207b15099a1210dd62f29 (diff) |
media: ccs: Ensure control handlers have been set up after probe
If the sensor remains powered on after probe when it is needed again and
the runtime PM usage_count is incremented, the control handler setup for
neither control handler is run.
As this is, in most cases, a needless operation in probe, track the status
of sensor power handling after probe and set up control handlers even if
the device was already active right after probe.
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Diffstat (limited to 'drivers/media/i2c/ccs/ccs.h')
-rw-r--r-- | drivers/media/i2c/ccs/ccs.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/media/i2c/ccs/ccs.h b/drivers/media/i2c/ccs/ccs.h index 9c3587b2fbe7..2c013d96adcc 100644 --- a/drivers/media/i2c/ccs/ccs.h +++ b/drivers/media/i2c/ccs/ccs.h @@ -236,6 +236,7 @@ struct ccs_sensor { bool streaming; bool dev_init_done; + bool handler_setup_needed; u8 compressed_min_bpp; struct ccs_module_info minfo; |