]> git.ipfire.org Git - thirdparty/openwrt.git/commit
kernel: modules: netdevices: rtl8365mb: fix mode mask calculation 23285/head
authorMieczyslaw Nalewaj <namiltd@yahoo.com>
Wed, 22 Apr 2026 15:46:40 +0000 (17:46 +0200)
committerHauke Mehrtens <hauke@hauke-m.de>
Thu, 14 May 2026 16:57:28 +0000 (18:57 +0200)
commit110c107460502e182e9cdfc5359390b15c224cf9
treeb9a8ccbada04eb7c55db1033bf4a50d0a470e528
parentf9dd7690520b120a0c3a0ea9cdf8113828bea8d0
kernel: modules: netdevices: 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.

Signed-off-by: Mieczyslaw Nalewaj <namiltd@yahoo.com>
Link: https://github.com/openwrt/openwrt/pull/23285
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
target/linux/generic/backport-6.12/940-v7.1-net-dsa-realtek-rtl8365mb-fix-mode-mask-calculation.patch [new file with mode: 0644]
target/linux/generic/backport-6.18/940-v7.1-net-dsa-realtek-rtl8365mb-fix-mode-mask-calculation.patch [new file with mode: 0644]