diff options
| author | Chen-Yu Tsai <wenst@chromium.org> | 2022-12-26 08:26:06 +0300 |
|---|---|---|
| committer | Mauro Carvalho Chehab <mchehab@kernel.org> | 2023-02-08 09:33:16 +0300 |
| commit | c9ca3b53ee31046a9f72cf3ced8dad6582edebfe (patch) | |
| tree | 1433fbefe1b66b52901770da48fe991b533a605b /tools/perf/scripts/python/stat-cpi.py | |
| parent | 255a4a5f1d2bc70f95ac03defab39f2a7c1fff42 (diff) | |
| download | linux-c9ca3b53ee31046a9f72cf3ced8dad6582edebfe.tar.xz | |
media: hantro: Use core-generated bus_info value
The Hantro driver uses a hardcoded value for the bus_info field in the
media device and |struct v4l2_capability|. This worked well when there
was just one device. However with the iMX.8 series we are now seeing
two Hantro blocks on the same chip. The static bus_info is no longer
sufficient for differentiating devices.
Since commit f2d8b6917f3b ("media: v4l: ioctl: Set bus_info in
v4l_querycap()"), the V4L2 core provides a default value for the
bus_info field for platform and PCI devices. This value will match
the default value for media devices added by commit cef699749f37
("media: mc: Set bus_info in media_device_init()"). These defaults
are stable and device-specific.
Drop the static bus_info values from the hantro driver and use the
defaults.
Signed-off-by: Chen-Yu Tsai <wenst@chromium.org>
Reviewed-by: Ezequiel Garcia <ezequiel@vanguardiasur.com.ar>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/stat-cpi.py')
0 files changed, 0 insertions, 0 deletions
