[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20110831191358.GB24634@electric-eye.fr.zoreil.com>
Date: Wed, 31 Aug 2011 21:13:58 +0200
From: Francois Romieu <romieu@...zoreil.com>
To: Hayes Wang <hayeswang@...ltek.com>
Cc: netdev@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH net-next 3/3] r8169: support new chips of RTL8111F
Hayes Wang <hayeswang@...ltek.com> :
[...]
> diff --git a/drivers/net/ethernet/realtek/r8169.c b/drivers/net/ethernet/realtek/r8169.c
> index 68f1e2f..c04fbc0 100644
> --- a/drivers/net/ethernet/realtek/r8169.c
> +++ b/drivers/net/ethernet/realtek/r8169.c
[...]
> @@ -4476,6 +4602,49 @@ static void rtl_hw_start_8168e_2(void __iomem *ioaddr, struct pci_dev *pdev)
> RTL_W8(Config5, RTL_R8(Config5) & ~Spi_en);
> }
>
> +static void rtl_hw_start_8168f_1(void __iomem *ioaddr, struct pci_dev *pdev)
[...]
> + RTL_W8(MaxTxPacketSize, 0x27);
Hmmm...
$ grep MaxTxPacketSize drivers/net/r8169.c
MaxTxPacketSize = 0xec, /* 8101/8168. Unit of 128 bytes. */
RTL_W8(MaxTxPacketSize, TxPacketMax);
RTL_W8(MaxTxPacketSize, TxPacketMax);
RTL_W8(MaxTxPacketSize, TxPacketMax);
RTL_W8(MaxTxPacketSize, TxPacketMax);
RTL_W8(MaxTxPacketSize, TxPacketMax);
RTL_W8(MaxTxPacketSize, TxPacketMax);
RTL_W8(MaxTxPacketSize, 0x27);
RTL_W8(MaxTxPacketSize, TxPacketMax);
RTL_W8(MaxTxPacketSize, TxPacketMax);
Is the 0x27 value still in units of 128 bytes ?
Could it be TxPacketMax as everywhere else in the driver instead of 0x27 ?
--
Ueimor
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists