From: "Nithin Nayak Sujir" <nsujir@broadcom.com>
To: "Joe Perches" <joe@perches.com>
Cc: davem@davemloft.net, netdev@vger.kernel.org,
stable@vger.kernel.org, "Michael Chan" <mchan@broadcom.com>
Subject: Re: [PATCH v2 net 1/2] tg3: Skip powering down function 0 on certain serdes devices
Date: Tue, 14 May 2013 11:17:48 -0700 [thread overview]
Message-ID: <51927FCC.9000500@broadcom.com> (raw)
In-Reply-To: <1368554932.23628.17.camel@joe-AO722>
On 05/14/2013 11:08 AM, Joe Perches wrote:
> On Mon, 2013-05-13 at 14:04 -0700, Nithin Nayak Sujir wrote:
>> On the 5718, 5719 and 5720 serdes devices, powering down function 0
>> results in all the other ports being powered down. Add code to skip
>> function 0 power down.
>
> Hi Nithin. 5718? I'm confused a bit by the commit message.
>
>> diff --git a/drivers/net/ethernet/broadcom/tg3.c b/drivers/net/ethernet/broadcom/tg3.c
> []
>> +static bool tg3_phy_power_bug(struct tg3 *tp)
>> +{
>> + switch (tg3_asic_rev(tp)) {
>> + case ASIC_REV_5700:
>> + case ASIC_REV_5704:
>> + return true;
>> + case ASIC_REV_5780:
>> + if (tp->phy_flags & TG3_PHYFLG_MII_SERDES)
>> + return true;
>> + return false;
>> + case ASIC_REV_5717:
>> + if (!tp->pci_fn)
>> + return true;
>> + return false;
>> + case ASIC_REV_5719:
>> + case ASIC_REV_5720:
>> + if ((tp->phy_flags & TG3_PHYFLG_PHY_SERDES) &&
>> + !tp->pci_fn)
>> + return true;
>> + return false;
>> + }
>> +
>
> Where is the 5718 in this?
> What is the 5718?
> There is no #define for it.
>
The 5718 is another device in the same family as the 5719 and 5720. There is no
case or define for the ASIC_REV because it has the same asic revision as the 5719.
However, it is a separate device and you can find it in the pci table and in the
code as TG3PCI_DEVICE_TIGON3_5718.
>
>
next prev parent reply other threads:[~2013-05-14 18:17 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-05-13 21:04 [PATCH v2 net 0/2] tg3: 2 bugfixes - TSO data corruption and phy power down Nithin Nayak Sujir
2013-05-13 21:04 ` [PATCH v2 net 1/2] tg3: Skip powering down function 0 on certain serdes devices Nithin Nayak Sujir
2013-05-14 18:08 ` Joe Perches
2013-05-14 18:17 ` Nithin Nayak Sujir [this message]
2013-05-13 21:04 ` [PATCH v2 net 2/2] tg3: Fix data corruption on 5725 with TSO Nithin Nayak Sujir
2013-05-13 21:14 ` Eric Dumazet
2013-05-13 21:34 ` Nithin Nayak Sujir
2013-05-13 21:40 ` Eric Dumazet
2013-05-13 21:47 ` Nithin Nayak Sujir
2013-05-13 22:10 ` Eric Dumazet
2013-05-14 8:40 ` David Laight
2013-05-14 15:04 ` Michael Chan
2013-05-14 15:20 ` David Laight
2013-05-14 16:19 ` Michael Chan
2013-05-14 16:46 ` Eric Dumazet
2013-05-15 8:56 ` David Laight
2013-05-15 15:12 ` Michael Chan
2013-05-15 15:23 ` Eric Dumazet
2013-05-15 15:51 ` Michael Chan
2013-05-14 18:32 ` [PATCH v2 net 0/2] tg3: 2 bugfixes - TSO data corruption and phy power down David Miller
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=51927FCC.9000500@broadcom.com \
--to=nsujir@broadcom.com \
--cc=davem@davemloft.net \
--cc=joe@perches.com \
--cc=mchan@broadcom.com \
--cc=netdev@vger.kernel.org \
--cc=stable@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.