]> git.baikalelectronics.ru Git - kernel.git/commit
drm/rockchip: Do not use memcpy for MMIO addresses
authorMarc Zyngier <marc.zyngier@arm.com>
Tue, 20 Feb 2018 13:01:19 +0000 (13:01 +0000)
committerHeiko Stuebner <heiko@sntech.de>
Wed, 14 Mar 2018 13:02:55 +0000 (14:02 +0100)
commit33c5b4066675f99e7a596db21f480eec146093de
tree91d89334d942bfd3dd2379fa83e5423e65a4b052
parente7f7ed1bced81f14b04f520f6009876ed6dbaaaa
drm/rockchip: Do not use memcpy for MMIO addresses

memcpy is only meant to be used for memory, and only that.
MMIO accessors should be used to access MMIO regions, preferably
the ones that correspond to the size of the register accessed.

Let's convert the bulk register copy to writel/readl_relaxed,
which is the correct API.

Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
Link: https://patchwork.freedesktop.org/patch/msgid/20180220130120.5254-3-marc.zyngier@arm.com
drivers/gpu/drm/rockchip/rockchip_drm_vop.c