]> www.infradead.org Git - users/jedix/linux-maple.git/commit
media: camss: vfe: Don't read hardware version needlessly
authorRobert Foss <robert.foss@linaro.org>
Mon, 26 Jul 2021 08:01:10 +0000 (10:01 +0200)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Fri, 6 Aug 2021 08:36:50 +0000 (10:36 +0200)
commitb10b5334528a9e78ececc2a2f17c5358ea70564a
tree1f96d7c9cd3e7511a6df1ccf69e69bd50878c7dd
parent3d18437cc4af867efd626a04a7504735b636fc10
media: camss: vfe: Don't read hardware version needlessly

vfe_set_power() is invoked a few times, which causes a lot of
VFE HW version prints.

Secondly there is no real reason for calling hw_version_read() from
this location specifically, since it does nothing more than print
the VFE HW version.

A better location for the hw_version_read() call would be somewhere
which is only executed once per VFE unit.

Signed-off-by: Robert Foss <robert.foss@linaro.org>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/media/platform/qcom/camss/camss-vfe.c