summaryrefslogtreecommitdiffstats
path: root/drivers/phy
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>2022-09-07 19:42:16 +0100
committerMauro Carvalho Chehab <mchehab@kernel.org>2022-11-25 08:32:50 +0000
commitcccc08a95ca57624563daafd47df5691e8c38995 (patch)
tree84419ed158bf4e9fe167abdd900ab7f3d6f18d52 /drivers/phy
parentfa282e117b68bbdd42e99f9b6fb6b050b48fa492 (diff)
downloadlinux-stable-cccc08a95ca57624563daafd47df5691e8c38995.tar.gz
linux-stable-cccc08a95ca57624563daafd47df5691e8c38995.tar.bz2
linux-stable-cccc08a95ca57624563daafd47df5691e8c38995.zip
media: imx: imx7-media-csi: Clear BIT_MIPI_DOUBLE_CMPNT for <16b formats
Commit 9babbbaaeb87 ("media: imx: imx7-media-csi: Use dual sampling for YUV 1X16") set BIT_MIPI_DOUBLE_CMPNT in the CR18 register for 16-bit YUV formats in imx7_csi_configure(). The CR18 register is always updated with read-modify-write cycles, so if a 16-bit YUV format is selected, the bit will stay set forever, even if the format is changed. Fix it by clearing the bit at the beginning of the imx7_csi_configure() function. While at it, swap two of the bits being cleared to match the MSB to LSB order. This doesn't cause any functional change. Fixes: 9babbbaaeb87 ("media: imx: imx7-media-csi: Use dual sampling for YUV 1X16") Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Paul Elder <paul.elder@ideasonboard.com> Acked-by: Rui Miguel Silva <rmfrfs@gmail.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
Diffstat (limited to 'drivers/phy')
0 files changed, 0 insertions, 0 deletions