]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
net: rtl8169: Add one device ID 0x8161
authorMinda Chen <minda.chen@starfivetech.com>
Thu, 20 Jul 2023 11:37:28 +0000 (19:37 +0800)
committerLeo Yu-Chi Liang <ycliang@andestech.com>
Wed, 2 Aug 2023 03:02:32 +0000 (11:02 +0800)
Add rtl8169 NIC device ID and reorder the device ID.

Signed-off-by: Minda Chen <minda.chen@starfivetech.com>
Reviewed-by: Ramon Fried <rfried.dev@gmail.com>
Reviewed-by: Leo Yu-Chi Liang <ycliang@andestech.com>
drivers/net/rtl8169.c

index 34e4cff1e9c9760d884e5fd7241560160b35cbc8..963702777c2395c7752d4282f33afda3833822da 100644 (file)
@@ -353,10 +353,11 @@ static const unsigned int rtl8169_rx_config =
     (RX_FIFO_THRESH << RxCfgFIFOShift) | (RX_DMA_BURST << RxCfgDMAShift);
 
 static struct pci_device_id supported[] = {
+       { PCI_DEVICE(PCI_VENDOR_ID_REALTEK, 0x8125) },
+       { PCI_DEVICE(PCI_VENDOR_ID_REALTEK, 0x8161) },
        { PCI_DEVICE(PCI_VENDOR_ID_REALTEK, 0x8167) },
        { PCI_DEVICE(PCI_VENDOR_ID_REALTEK, 0x8168) },
        { PCI_DEVICE(PCI_VENDOR_ID_REALTEK, 0x8169) },
-       { PCI_DEVICE(PCI_VENDOR_ID_REALTEK, 0x8125) },
        {}
 };
 
@@ -1051,8 +1052,9 @@ static int rtl8169_eth_probe(struct udevice *dev)
        int ret;
 
        switch (pplat->device) {
-       case 0x8168:
        case 0x8125:
+       case 0x8161:
+       case 0x8168:
                region = 2;
                break;
        default: