There are lots of failure items while running HDCP CTS using UNIGRAF DPR-100. In Order to fix those failures, HDCP flow needs to be changed. The DisplayPort AUX protocol supports I2C transport. In Order to support MCCS via the aux channel, the aux-i2c operation is added. v6->v7 -[3/10] add header <linux/bitfield.h> included links: https://lore.kernel.org/all/20241016-upstream-v6-v6-0-4d93a0c46de1@xxxxxxxxxx/ v5->v6: -keep the commit message wrapped at 72-75 chars. -[10/10] fix return variable being used without being initialized v4->v5: -add more messages for changes. -[2/10] modified AUX transfer data size judgment. change for-loop to do-while. -[7/10] change for-loop to do-while. -[9/10] change wait timer with timer_after() links: https://lore.kernel.org/all/20240926074755.22176-4-Hermes.Wu@xxxxxxxxxx/ https://lore.kernel.org/all/20240926075134.22394-1-Hermes.Wu@xxxxxxxxxx/ v3->v4: -split changes into patches. v2->v3: -split aux read KSV function to a patch. -[1/3] new in v3 -[2/3] add description of patch v1->v2: - ignored. To: Andrzej Hajda <andrzej.hajda@xxxxxxxxx> To: Neil Armstrong <neil.armstrong@xxxxxxxxxx> To: Robert Foss <rfoss@xxxxxxxxxx> To: Laurent Pinchart <Laurent.pinchart@xxxxxxxxxxxxxxxx> To: Jonas Karlman <jonas@xxxxxxxxx> To: Jernej Skrabec <jernej.skrabec@xxxxxxxxx> To: Maarten Lankhorst <maarten.lankhorst@xxxxxxxxxxxxxxx> To: Maxime Ripard <mripard@xxxxxxxxxx> To: Thomas Zimmermann <tzimmermann@xxxxxxx> To: David Airlie <airlied@xxxxxxxxx> To: Simona Vetter <simona@xxxxxxxx> To: AngeloGioacchino Del Regno <angelogioacchino.delregno@xxxxxxxxxxxxx> To: Hermes Wu <hermes.wu@xxxxxxxxxx> Cc: dri-devel@xxxxxxxxxxxxxxxxxxxxx Cc: linux-kernel@xxxxxxxxxxxxxxx Cc: Pin-yen Lin <treapking@xxxxxxxxxxxx> Cc: Kenneth Hung <Kenneth.Hung@xxxxxxxxxx> Cc: Pet Weng <Pet.Weng@xxxxxxxxxx> Signed-off-by: Hermes Wu <Hermes.wu@xxxxxxxxxx> --- Hermes Wu (10): drm/bridge: it6505: Change definition of AUX_FIFO_MAX_SIZE drm/bridge: it6505: improve AUX operation for edid read drm/bridge: it6505: add AUX operation for HDCP KSV list read drm/bridge: it6505: Change definition MAX_HDCP_DOWN_STREAM_COUNT drm/bridge: it6505: fix HDCP Bstatus check drm/bridge: it6505: fix HDCP encryption when R0 ready drm/bridge: it6505: fix HDCP CTS KSV list read with UNIGRAF DPR-100. drm/bridge: it6505: fix HDCP CTS compare V matching drm/bridge: it6505: fix HDCP CTS KSV list wait timer drm/bridge: it6505: add I2C functionality on AUX drivers/gpu/drm/bridge/ite-it6505.c | 335 ++++++++++++++++++++++++++++++------ 1 file changed, 278 insertions(+), 57 deletions(-) --- base-commit: 4d1c251e8889b4629789425fe85adfc6d39666ac change-id: 20241101-v7-upstream-75ead2f2f567 Best regards, -- Hermes Wu <Hermes.wu@xxxxxxxxxx>