* [PATCH] e100: fix typo in MDI/MDI-X eeprom check in e100_phy_init
@ 2014-11-14 15:59 John W. Linville
2014-11-14 17:17 ` Jeff Kirsher
0 siblings, 1 reply; 3+ messages in thread
From: John W. Linville @ 2014-11-14 15:59 UTC (permalink / raw)
To: netdev
Cc: Dave Miller, Jeff Kirsher, Auke Kok, Malli Chilakala,
John W. Linville
Although it doesn't explicitly say so, commit 60ffa478759f39a2 ("e100:
Fix MDIO/MDIO-X") appears to be intended to revert the earlier commit
648951451e6d2d53 ("e100: fixed e100 MDI/MDI-X issues"). However,
careful examination reveals that the attempted revert actually
_inverted_ the test for eeprom_mdix_enabled. That is bound to program
a few PHYs incorrectly...
https://bugzilla.redhat.com/show_bug.cgi?id=1156417
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Cc: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Cc: Auke Kok <auke-jan.h.kok@intel.com>
Cc: Malli Chilakala <mallikarjuna.chilakala@intel.com>
---
Wow, an 8 year old bug in e100 -- woohoo!! :-)
This was causing some serious flakiness for a large cash register
deployment in Europe. Testing with this one-line (really,
one-character) patch seems to have resolved the issue.
drivers/net/ethernet/intel/e100.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/ethernet/intel/e100.c b/drivers/net/ethernet/intel/e100.c
index 781065eb5431..e9c3a87e5b11 100644
--- a/drivers/net/ethernet/intel/e100.c
+++ b/drivers/net/ethernet/intel/e100.c
@@ -1543,7 +1543,7 @@ static int e100_phy_init(struct nic *nic)
mdio_write(netdev, nic->mii.phy_id, MII_BMCR, bmcr);
} else if ((nic->mac >= mac_82550_D102) || ((nic->flags & ich) &&
(mdio_read(netdev, nic->mii.phy_id, MII_TPISTATUS) & 0x8000) &&
- !(nic->eeprom[eeprom_cnfg_mdix] & eeprom_mdix_enabled))) {
+ (nic->eeprom[eeprom_cnfg_mdix] & eeprom_mdix_enabled))) {
/* enable/disable MDI/MDI-X auto-switching. */
mdio_write(netdev, nic->mii.phy_id, MII_NCONFIG,
nic->mii.force_media ? 0 : NCONFIG_AUTO_SWITCH);
--
1.9.3
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] e100: fix typo in MDI/MDI-X eeprom check in e100_phy_init
2014-11-14 15:59 [PATCH] e100: fix typo in MDI/MDI-X eeprom check in e100_phy_init John W. Linville
@ 2014-11-14 17:17 ` Jeff Kirsher
2014-11-14 17:58 ` John W. Linville
0 siblings, 1 reply; 3+ messages in thread
From: Jeff Kirsher @ 2014-11-14 17:17 UTC (permalink / raw)
To: John W. Linville; +Cc: netdev, Dave Miller, Auke Kok, Malli Chilakala
On Fri, Nov 14, 2014 at 7:59 AM, John W. Linville
<linville@tuxdriver.com> wrote:
> Although it doesn't explicitly say so, commit 60ffa478759f39a2 ("e100:
> Fix MDIO/MDIO-X") appears to be intended to revert the earlier commit
> 648951451e6d2d53 ("e100: fixed e100 MDI/MDI-X issues"). However,
> careful examination reveals that the attempted revert actually
> _inverted_ the test for eeprom_mdix_enabled. That is bound to program
> a few PHYs incorrectly...
>
> https://bugzilla.redhat.com/show_bug.cgi?id=1156417
>
> Signed-off-by: John W. Linville <linville@tuxdriver.com>
> Cc: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
> Cc: Auke Kok <auke-jan.h.kok@intel.com>
> Cc: Malli Chilakala <mallikarjuna.chilakala@intel.com>
> ---
> Wow, an 8 year old bug in e100 -- woohoo!! :-)
>
> This was causing some serious flakiness for a large cash register
> deployment in Europe. Testing with this one-line (really,
> one-character) patch seems to have resolved the issue.
>
> drivers/net/ethernet/intel/e100.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
Weird, I did not get this mail. Anyway, thanks John, I have added
your patch to my queue.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] e100: fix typo in MDI/MDI-X eeprom check in e100_phy_init
2014-11-14 17:17 ` Jeff Kirsher
@ 2014-11-14 17:58 ` John W. Linville
0 siblings, 0 replies; 3+ messages in thread
From: John W. Linville @ 2014-11-14 17:58 UTC (permalink / raw)
To: Jeff Kirsher; +Cc: netdev, Dave Miller, Auke Kok, Malli Chilakala
On Fri, Nov 14, 2014 at 09:17:39AM -0800, Jeff Kirsher wrote:
> On Fri, Nov 14, 2014 at 7:59 AM, John W. Linville
> <linville@tuxdriver.com> wrote:
> > Although it doesn't explicitly say so, commit 60ffa478759f39a2 ("e100:
> > Fix MDIO/MDIO-X") appears to be intended to revert the earlier commit
> > 648951451e6d2d53 ("e100: fixed e100 MDI/MDI-X issues"). However,
> > careful examination reveals that the attempted revert actually
> > _inverted_ the test for eeprom_mdix_enabled. That is bound to program
> > a few PHYs incorrectly...
> >
> > https://bugzilla.redhat.com/show_bug.cgi?id=1156417
> >
> > Signed-off-by: John W. Linville <linville@tuxdriver.com>
> > Cc: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
> > Cc: Auke Kok <auke-jan.h.kok@intel.com>
> > Cc: Malli Chilakala <mallikarjuna.chilakala@intel.com>
> > ---
> > Wow, an 8 year old bug in e100 -- woohoo!! :-)
> >
> > This was causing some serious flakiness for a large cash register
> > deployment in Europe. Testing with this one-line (really,
> > one-character) patch seems to have resolved the issue.
> >
> > drivers/net/ethernet/intel/e100.c | 2 +-
> > 1 file changed, 1 insertion(+), 1 deletion(-)
>
> Weird, I did not get this mail. Anyway, thanks John, I have added
> your patch to my queue.
I got a "no such address" bounce on all the @intel.com addresses,
but they all seem OK to me -- not sure what the issue is...?
Anyway, glad you got it! :-)
John
--
John W. Linville Someday the world will need a hero, and you
linville@tuxdriver.com might be all we have. Be ready.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2014-11-14 18:00 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-11-14 15:59 [PATCH] e100: fix typo in MDI/MDI-X eeprom check in e100_phy_init John W. Linville
2014-11-14 17:17 ` Jeff Kirsher
2014-11-14 17:58 ` John W. Linville
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).