OpenCloudOS-Kernel/drivers/media/platform/renesas/rzg2l-cru
Dan Carpenter 94ae11885f media: rzg2l-cru: fix a test for timeout
The test for if the loop timed out is wrong and Smatch complains:

    drivers/media/platform/renesas/rzg2l-cru/rzg2l-csi2.c:411 rzg2l_csi2_mipi_link_disable()
    warn: should this be 'timeout == -1'

Let's change it to a preop loop instead of a post op loop.

Fixes: 51e8415e39 ("media: platform: Add Renesas RZ/G2L MIPI CSI-2 receiver driver")
Signed-off-by: Dan Carpenter <error27@gmail.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
2022-12-06 07:18:37 +00:00
..
Kconfig
Makefile
rzg2l-core.c
rzg2l-cru.h media: platform: renesas: rzg2l-cru: Add missing documentation for image_conv_irq 2022-12-06 07:17:51 +00:00
rzg2l-csi2.c media: rzg2l-cru: fix a test for timeout 2022-12-06 07:18:37 +00:00
rzg2l-ip.c
rzg2l-video.c media: rzg2l-cru: Fix missing error code in rzg2l_cru_start_streaming_vq() 2022-12-06 07:18:07 +00:00