aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/exported-sql-viewer.py
diff options
context:
space:
mode:
authorSteve Longerbeam <[email protected]>2019-08-24 13:33:36 -0300
committerMauro Carvalho Chehab <[email protected]>2019-10-10 07:26:28 -0300
commit1f4642464655e16b70c4998a92cddc94555e2a5a (patch)
tree08f4580e77c27a1424314b8169ac692ca4d4072b /tools/perf/scripts/python/exported-sql-viewer.py
parentdbb8d05a9d11651c47035653b5b813f2fa55ba80 (diff)
media: imx: Move capture device init to registered
If the CSI is unregistered and then registered again without the driver being removed and re-probed (which will happen when the media device is removed and re-probed without also removing/re-probing the CSI), the result is the kobject error and backtrace "tried to init an initialized object". This is because the video device is left in an initialized state after being unregistered, thus the video device's underlying kobject is also left in an initialized state when the device is registered again. Fix this by moving imx_media_capture_device_init() and _remove() into csi_registered() and csi_unregistered(). This will create a new un-initialized video device when the CSI is re-registered. Do this for all the subdevices that register a capture device. Reported-by: Russell King <[email protected]> Signed-off-by: Steve Longerbeam <[email protected]> Signed-off-by: Hans Verkuil <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions