mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-07 03:15:31 +09:00
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:
@@ -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)) {
|
||||
|
||||
Reference in New Issue
Block a user