]> git.baikalelectronics.ru Git - kernel.git/commit
media: imx: imx7-media-csi: Remove unneeded register read
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Tue, 10 Mar 2020 16:06:28 +0000 (17:06 +0100)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Thu, 12 Mar 2020 16:30:46 +0000 (17:30 +0100)
commit2b8f610b361f4a3468a67c0c07571a92b9bf3689
tree5078327dcd6699d403b9164582e102c3c5bfda9d
parent7a51b8cc81b294cb54129f2886d6f8f17d15f289
media: imx: imx7-media-csi: Remove unneeded register read

The imx7_csi_dma_reflash() function starts by reading the unrelated
register CSI_CSICR18 to then overwrite the read value with a read from
register CSI_CSICR3. This is likely due to a bad copy&paste, and is not
needed. Remove the extraneous read from register CSI_CSICR18.

Fixes: 76200e9d98923 ("media: imx7-media-csi: Use u32 for storing register reads")
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Rui Miguel Silva <rmfrfs@gmail.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/staging/media/imx/imx7-media-csi.c