diff options
author | Moon Yeounsu <yyyynoom@gmail.com> | 2025-06-10 09:01:30 +0900 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2025-06-10 17:47:13 -0700 |
commit | 7fc18f9476256c03755d93b1cec0d42cf64d850a (patch) | |
tree | a4e407ed12a7d2b8b0c3addc28fb24608e79ef81 /net/core/dev.c | |
parent | 34355b6712bf9c8b803b4616ed3c66a96ccbdfa4 (diff) |
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 'net/core/dev.c')
0 files changed, 0 insertions, 0 deletions