media: imx: imx7_mipi_csis: Don't take state->lock in .link_setup()
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Fri, 8 Jan 2021 00:05:19 +0000 (01:05 +0100)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Tue, 6 Apr 2021 09:39:52 +0000 (11:39 +0200)
commita791960d2d7b503f03fa8774573dfa5cb1f0c8a9
tree5c2a74ec4755da9085ececb000f04787ed7888b0
parent8f5586dc2d1829d16f602b3d3237b9415ca95cce
media: imx: imx7_mipi_csis: Don't take state->lock in .link_setup()

The .link_setup() handler uses state->lock to protect the src_sd field.
This is only used in mipi_csis_s_stream(), which can't race
.link_setup() as the MC core prevents link setup when the pipeline is
streaming. Drop the lock.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Rui Miguel Silva <rmfrfs@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/staging/media/imx/imx7-mipi-csis.c