Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

drm/amdgpu/nbio7.0: fix IP version check

Use the helper function rather than reading it directly.

Reviewed-by: Yang Wang <kevinyang.wang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>

+1 -1
+1 -1
drivers/gpu/drm/amd/amdgpu/nbio_v7_0.c
··· 278 278 { 279 279 uint32_t data; 280 280 281 - switch (adev->ip_versions[NBIO_HWIP][0]) { 281 + switch (amdgpu_ip_version(adev, NBIO_HWIP, 0)) { 282 282 case IP_VERSION(2, 5, 0): 283 283 data = RREG32_SOC15(NBIO, 0, regRCC_DEV0_EPF6_STRAP4) & ~BIT(23); 284 284 WREG32_SOC15(NBIO, 0, regRCC_DEV0_EPF6_STRAP4, data);