drm/rockchip: dw-dp: fix alignment fault when memory copy

the dst is device memory, when accessing dst, it need alignment, use
memcpy_toio instead of memcpy.

Signed-off-by: Zhang Yubing <yubing.zhang@rock-chips.com>
Change-Id: Ie761ac1660ef841b44bc835671b7f9bd6a0f66e4
This commit is contained in:
Zhang Yubing
2023-03-03 18:09:57 +08:00
committed by Tao Huang
parent c4aebfded9
commit feaa0f093e

View File

@@ -511,7 +511,7 @@ static int dw_dp_hdcp_init_keys(struct dw_dp *dp)
if (!base)
return -ENOMEM;
memcpy(base, hdcp_vendor_data, size);
memcpy_toio(base, hdcp_vendor_data, size);
res = sip_hdcp_config(HDCP_FUNC_KEY_LOAD, dp->id ? DP_TX1 : DP_TX0, 0);
if (IS_SIP_ERROR(res.a0)) {