]> git.baikalelectronics.ru Git - kernel.git/commit
net: dsa: realtek: rtl8365mb: correct the max number of ports
authorAlvin Šipraga <alsi@bang-olufsen.dk>
Wed, 15 Jun 2022 22:51:13 +0000 (00:51 +0200)
committerJakub Kicinski <kuba@kernel.org>
Fri, 17 Jun 2022 03:44:47 +0000 (20:44 -0700)
commitc37f8309f52b1de1b5b6fb6aa7caaf2f4285bf5f
treee61e20d51c4018d01b5ea11e4bc274bcf2fedbe0
parent9115566dac4b384a51c96ef53c117a0125d311c7
net: dsa: realtek: rtl8365mb: correct the max number of ports

The maximum number of ports is actually 11, according to two
observations:

1. The highest port ID used in the vendor driver is 10. Since port IDs
   are indexed from 0, and since DSA follows the same numbering system,
   this means up to 11 ports are to be presumed.

2. The registers with port mask fields always amount to a maximum port
   mask of 0x7FF, corresponding to a maximum 11 ports.

In view of this, I also deleted the comment.

Signed-off-by: Alvin Šipraga <alsi@bang-olufsen.dk>
Reviewed-by: Luiz Angelo Daros de Luca <luizluca@gmail.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/dsa/realtek/rtl8365mb.c