linux/drivers/net/dsa/realtek
Mieczyslaw Nalewaj 0c078021d3 net: dsa: realtek: rtl8365mb: fix mode mask calculation
The RTL8365MB_DIGITAL_INTERFACE_SELECT_MODE_MASK macro was shifting
the 4-bit mask (0xF) by only (_extint % 2) bits instead of
(_extint % 2) * 4. This caused the mask to overlap with the adjacent
nibble when configuring odd-numbered external interfaces, selecting
the wrong bits entirely.

Align the shift calculation with the existing ...MODE_OFFSET macro.

Fixes: 4af2950c50 ("net: dsa: realtek-smi: add rtl8365mb subdriver for RTL8365MB-VC")
Signed-off-by: Abdulkader Alrezej <alrazj.abdulkader@gmail.com>
Signed-off-by: Mieczyslaw Nalewaj <namiltd@yahoo.com>
Reviewed-by: Luiz Angelo Daros de Luca <luizluca@gmail.com>
Link: https://patch.msgid.link/400a6387-a444-4576-af6d-26be5410bce3@yahoo.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
2026-04-23 10:50:33 +02:00
..
Kconfig net: dsa: rtl8366rb: don't prompt users for LED control 2025-03-04 11:54:06 +01:00
Makefile net: dsa: rtl8366rb: Fix compilation problem 2025-02-24 09:14:42 +00:00
realtek-mdio.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
realtek-mdio.h net: dsa: realtek: convert variants into real drivers 2024-02-12 10:42:16 +00:00
realtek-smi.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
realtek-smi.h net: dsa: realtek: convert variants into real drivers 2024-02-12 10:42:16 +00:00
realtek.h net: dsa: realtek: remove unnecessary file, dentry, inode declarations 2025-08-14 17:39:44 -07:00
rtl83xx.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
rtl83xx.h net: dsa: realtek: support reset controller 2024-02-28 08:21:41 +00:00
rtl8365mb.c net: dsa: realtek: rtl8365mb: fix mode mask calculation 2026-04-23 10:50:33 +02:00
rtl8366-core.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
rtl8366rb-leds.c net: dsa: realtek: Fix LED group port bit for non-zero LED group 2026-03-11 19:03:21 -07:00
rtl8366rb.c net: dsa: realtek: use simple HSR offload helpers 2025-12-01 16:45:07 -08:00
rtl8366rb.h net: dsa: rtl8366rb: Fix compilation problem 2025-02-24 09:14:42 +00:00