]> git.baikalelectronics.ru Git - kernel.git/commit
drm/bridge: anx7625: Use uint8 for lane-swing arrays
authorNícolas F. R. A. Prado <nfraprado@collabora.com>
Fri, 8 Apr 2022 01:30:34 +0000 (21:30 -0400)
committerRobert Foss <robert.foss@linaro.org>
Tue, 19 Apr 2022 16:59:12 +0000 (18:59 +0200)
commitd4df733e172170c46fb40019f2388160aec84670
tree01ab17eac06454a67d786420acbf16752f9fb485
parentac7cce7a753886bdb214086eeb8d664b37165f48
drm/bridge: anx7625: Use uint8 for lane-swing arrays

As defined in the anx7625 dt-binding, the analogix,lane0-swing and
analogix,lane1-swing properties are uint8 arrays. Yet, the driver was
reading the array as if it were of uint32 and masking to 8-bit before
writing to the registers. This means that a devicetree written in
accordance to the dt-binding would have its values incorrectly parsed.

Fix the issue by reading the array as uint8 and storing them as uint8
internally, so that we can also drop the masking when writing the
registers.

Fixes: d9e655eb0491 ("drm/bridge: anx7625: add MIPI DPI input feature")
Signed-off-by: Nícolas F. R. A. Prado <nfraprado@collabora.com>
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Signed-off-by: Robert Foss <robert.foss@linaro.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20220408013034.673418-1-nfraprado@collabora.com
drivers/gpu/drm/bridge/analogix/anx7625.c
drivers/gpu/drm/bridge/analogix/anx7625.h