mirror of
https://github.com/torvalds/linux.git
synced 2026-05-13 00:28:54 +02:00
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:
|
||
|---|---|---|
| .. | ||
| Kconfig | ||
| Makefile | ||
| realtek-mdio.c | ||
| realtek-mdio.h | ||
| realtek-smi.c | ||
| realtek-smi.h | ||
| realtek.h | ||
| rtl83xx.c | ||
| rtl83xx.h | ||
| rtl8365mb.c | ||
| rtl8366-core.c | ||
| rtl8366rb-leds.c | ||
| rtl8366rb.c | ||
| rtl8366rb.h | ||