]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/bridge: it6505: add AUX operation for HDCP KSV list read
authorHermes Wu <hermes.wu@ite.com.tw>
Mon, 30 Dec 2024 10:51:21 +0000 (18:51 +0800)
committerDmitry Baryshkov <dmitry.baryshkov@linaro.org>
Fri, 3 Jan 2025 18:24:31 +0000 (20:24 +0200)
commit235d9bf8a1e1c0a0cf1340c40567e6b4f2b742c6
treee36937c586af62595f8c219555d971a50ff9f89b
parentd0c97a51cdef2badc8d17f6edfbc0bdc0ba92065
drm/bridge: it6505: add AUX operation for HDCP KSV list read

HDCP KSV list readback can choose to use AUX FIFO or
general data register.
For some DisplayPort devices, the KSV list must be read
in 5 byte boundaries.
The original AUX read command does not support these devices.

The AUX command operation control register "REG_AUX_CMD_REQ" uses b[3:0]
as AUX operacion control, and b[7:4] are status bits and read only.
To change KSV read operation uses "CMD_AUX_NATIVE_READ" from using
the data registers to using AUX FIFO.
The extended command "CMD_AUX_GET_KSV_LIST" is added as
"CMD_AUX_NATIVE_READ" with the 0x10 flag which selects AUX FIFO mode.

Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Signed-off-by: Hermes Wu <hermes.wu@ite.com.tw>
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20241230-v7-upstream-v7-3-e0fdd4844703@ite.corp-partner.google.com
drivers/gpu/drm/bridge/ite-it6505.c