[PATCH v2 0/4] realtek: RTL8231 refinements

Sander Vanheule sander at svanheule.net
Sat Nov 20 11:11:30 PST 2021


The RTL8231 driver is currently not setting the maximum number of GPIOs
correctly, so this needs to be fixed. [1/4]

While we're at it, add some other small improvements to the driver:
- Use automatic gpio base numbering [2/4]
- Require the SMI bus ID to be specified in the devicetree [3/4]
- Verify chip presence when probing, and fail if it cannot be found [4/4]

Main changes since v1:
- Add chip detection patch

These patches were tested on my GS110TPP.

Sander Vanheule (4):
  realtek: fix RTL8231 gpio count
  realtek: use automatic GPIO numbering for RTL8231
  realtek: always require SMI bus ID for RTL8231
  realtek: add RTL8231 chip detection

 .../files-5.10/drivers/gpio/gpio-rtl8231.c    | 52 ++++++++++++-------
 1 file changed, 32 insertions(+), 20 deletions(-)

-- 
2.33.1




More information about the openwrt-devel mailing list