aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/intel/igc/igc_main.c
diff options
context:
space:
mode:
authorMoon Yeounsu <yyyynoom@gmail.com>2025-06-10 09:01:30 +0900
committerJakub Kicinski <kuba@kernel.org>2025-06-10 17:47:13 -0700
commit7fc18f9476256c03755d93b1cec0d42cf64d850a (patch)
treea4e407ed12a7d2b8b0c3addc28fb24608e79ef81 /drivers/net/ethernet/intel/igc/igc_main.c
parentMerge tag 'linux-can-next-for-6.17-20250610' of git://git.kernel.org/pub/scm/... (diff)
downloadlinux-7fc18f9476256c03755d93b1cec0d42cf64d850a.tar.gz
linux-7fc18f9476256c03755d93b1cec0d42cf64d850a.zip
net: dlink: enable RMON MMIO access on supported devices
Enable memory-mapped I/O access to RMON statistics registers for devices known to work correctly. Currently, only the D-Link DGE-550T (`0x4000`) with PCI revision A3 (`0x0c`) is allowed. To avoid issues on other hardware, a runtime check was added to restrict MMIO usage. The `MEM_MAPPING` macro was removed in favor of runtime detection. To access RMON registers, the code `dw32(RmonStatMask, 0x0007ffff);` must also be skipped, so this patch conditionally disables it as well. Tested-on: D-Link DGE-550T Rev-A3 Signed-off-by: Moon Yeounsu <yyyynoom@gmail.com> Link: https://patch.msgid.link/20250610000130.49065-2-yyyynoom@gmail.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'drivers/net/ethernet/intel/igc/igc_main.c')
0 files changed, 0 insertions, 0 deletions