From: Francois Romieu <romieu@fr.zoreil.com>
To: Hayes Wang <hayeswang@realtek.com>
Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH net-next 3/3] r8169: support new chips of RTL8111F
Date: Wed, 31 Aug 2011 21:13:58 +0200 [thread overview]
Message-ID: <20110831191358.GB24634@electric-eye.fr.zoreil.com> (raw)
In-Reply-To: <1314807479-1552-3-git-send-email-hayeswang@realtek.com>
Hayes Wang <hayeswang@realtek.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
next prev parent reply other threads:[~2011-08-31 20:17 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-08-31 16:17 [PATCH net-next 1/3] r8169: fix WOL setting for 8105 and 8111EVL Hayes Wang
2011-08-31 16:17 ` [PATCH net-next 2/3] r8169: fix the reset setting for 8111evl Hayes Wang
2011-08-31 16:17 ` [PATCH net-next 3/3] r8169: support new chips of RTL8111F Hayes Wang
2011-08-31 19:13 ` Francois Romieu [this message]
2011-09-01 6:02 ` hayeswang
2011-08-31 19:13 ` [PATCH net-next 1/3] r8169: fix WOL setting for 8105 and 8111EVL Francois Romieu
2011-09-01 6:02 ` hayeswang
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20110831191358.GB24634@electric-eye.fr.zoreil.com \
--to=romieu@fr.zoreil.com \
--cc=hayeswang@realtek.com \
--cc=linux-kernel@vger.kernel.org \
--cc=netdev@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®