]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
drm/lsdc: Request PCI BAR
authorPhilipp Stanner <pstanner@redhat.com>
Mon, 21 Oct 2024 09:11:16 +0000 (11:11 +0200)
committerSui Jingfeng <sui.jingfeng@linux.dev>
Mon, 25 Nov 2024 02:28:40 +0000 (10:28 +0800)
commitca053ee3c6a7a877754e6f444ce5f520e3c0a856
treeef09aefbc81ffd2f872605ee04b4a9b8c1334b3c
parent850d71f6bf4c2010efae845f9ff841cce902f22c
drm/lsdc: Request PCI BAR

lsdc currently just ioremaps its PCI BAR with pcim_iomap(). Performing
a region regquest additionally can make the driver more robust.

Replace pcim_iomap() with the managed function pcim_iomap_region() which
performs the request and ioremaps the BAR.

Signed-off-by: Philipp Stanner <pstanner@redhat.com>
Reviewed-by: Sui Jingfeng <sui.jingfeng@linux.dev>
Signed-off-by: Sui Jingfeng <sui.jingfeng@linux.dev>
Link: https://patchwork.freedesktop.org/patch/msgid/20241021091116.14368-1-pstanner@redhat.com
drivers/gpu/drm/loongson/lsdc_drv.c