From: Joe Perches <joe@perches.com>
To: Nithin Nayak Sujir <nsujir@broadcom.com>
Cc: Michael Chan <mchan@broadcom.com>,
davem@davemloft.net, netdev@vger.kernel.org
Subject: Re: [PATCH 1/5 net-next] tg3: Add 57766 device support.
Date: Thu, 14 Feb 2013 15:16:50 -0800 [thread overview]
Message-ID: <1360883810.3051.15.camel@joe-AO722> (raw)
In-Reply-To: <511D6F85.6060201@broadcom.com>
On Thu, 2013-02-14 at 15:13 -0800, Nithin Nayak Sujir wrote:
>
> On 02/14/2013 02:25 PM, Joe Perches wrote:
> > On Thu, 2013-02-14 at 14:13 -0800, Michael Chan wrote:
> >> From: Matt Carlson <mcarlson@broadcom.com>
> >>
> >> The patch also adds a couple of fixes
> >>
> >> - For the 57766, bootcode needs to setup the PCIE Fast Training
> >> Sequence (FTS) value to prevent transmit hangs. Unfortunately, it
> >> does not have enough room in the selfboot case (i.e. devices with no
> >> NVRAM). The driver needs to implement this.
> > []
> >> diff --git a/drivers/net/ethernet/broadcom/tg3.c b/drivers/net/ethernet/broadcom/tg3.c
> > []
> >> @@ -9179,7 +9180,14 @@ static int tg3_reset_hw(struct tg3 *tp, int reset_phy)
> >> }
> >>
> >> if (GET_CHIP_REV(tp->pci_chip_rev_id) != CHIPREV_57765_AX) {
> >> - u32 grc_mode = tr32(GRC_MODE);
> >> + u32 grc_mode;
> >> +
> >> + /* Fix transmit hangs */
> >> + val = tr32(TG3_CPMU_PADRNG_CTL);
> >> + val |= TG3_CPMU_PADRNG_CTL_RDIV2;
> >> + tw32(TG3_CPMU_PADRNG_CTL, val);
> >> +
> >
> > This seems to write this val to more devices than just
> > a 57766. Intentional?
> >
>
> Yes. In addition to the 57766, this fix applies to non-AX revisions of the 57765.
>
> It's not apparent from the patch, but this code chunk is inside the conditional -
>
> if (tg3_flag(tp, 57765_CLASS)) {
>
> which is set for 57765 and 57766 devices.
I know.
The commit message does not describe the patch correctly.
The commit message says "for the 57766".
prev parent reply other threads:[~2013-02-14 23:16 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-02-14 22:13 [PATCH 1/5 net-next] tg3: Add 57766 device support Michael Chan
2013-02-14 22:13 ` [PATCH 2/5 net-next] tg3: Add EEE support for 5717 B0 Michael Chan
2013-02-14 22:13 ` [PATCH 3/5 net-next] tg3: Fix 5762 NVRAM sizing Michael Chan
2013-02-14 22:13 ` [PATCH 4/5 net-next] tg3: Set initial carrier state to off Michael Chan
2013-02-14 22:13 ` [PATCH 5/5 net-next] tg3: Update version to 3.130 Michael Chan
2013-02-14 22:19 ` [PATCH 2/5 net-next] tg3: Add EEE support for 5717 B0 David Miller
2013-02-14 22:25 ` [PATCH 1/5 net-next] tg3: Add 57766 device support Joe Perches
2013-02-14 23:13 ` Nithin Nayak Sujir
2013-02-14 23:16 ` Joe Perches [this message]
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=1360883810.3051.15.camel@joe-AO722 \
--to=joe@perches.com \
--cc=davem@davemloft.net \
--cc=mchan@broadcom.com \
--cc=netdev@vger.kernel.org \
--cc=nsujir@broadcom.com \
/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;
as well as URLs for NNTP newsgroup(s).