[PATCH v1 3/4] net: rtl8169: Add one more device ID
Ramon Fried
rfried.dev at gmail.com
Sat Jul 22 10:56:32 CEST 2023
On Wed, Jun 21, 2023 at 12:05 PM Minda Chen <minda.chen at starfivetech.com> wrote:
>
> Add the NIC device ID and adjust the PCI bar regions.
>
> Signed-off-by: Minda Chen <minda.chen at starfivetech.com>
> ---
> drivers/net/rtl8169.c | 6 ++++--
> 1 file changed, 4 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/net/rtl8169.c b/drivers/net/rtl8169.c
> index 34e4cff1e9..963702777c 100644
> --- a/drivers/net/rtl8169.c
> +++ b/drivers/net/rtl8169.c
> @@ -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:
> --
> 2.17.1
>
Reviewed-by: Ramon Fried <rfried.dev at gmail.com>
More information about the U-Boot
mailing list