All of lore.kernel.org
 help / color / mirror / Atom feed
* Marvell phy errata origins?
@ 2017-04-18 13:16 Daniel Walker
  2017-04-18 14:04 ` Andrew Lunn
  0 siblings, 1 reply; 18+ messages in thread
From: Daniel Walker @ 2017-04-18 13:16 UTC (permalink / raw)
  To: Florian Fainelli, Andy Fleming, Harini Katakam, netdev,
	HEMANT RAMDASI,
	Julius Hemanth Pitti -X (jpitti - MONTA VISTA SOFTWARE INC at
	Cisco)


Hi,

Cisco is using a Marvell 88E1112 phy. It seems to be fairly similar to 
the 88E1111 which Harini added a fix for. In Harini's commit message for ,

https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/drivers/net/phy/marvell.c?id=3ec0a0f10ceb

"This function has a sequence accessing Page 5 and Register 31, both of 
which are not defined or reserved for this PHY"

For the 88E1112 we see that these are "Factory Test Modes" which the 
contents of are not documented. They aren't really "not defied", and 
aren't really "reserved" .. Marvell support claims they don't support 
these drivers, and Freescale seems to be adding these drivers, and the 
line we are looking at.

We had some issues with our PHY which were corrected with the same patch 
Harini used but modified for the M88E1112. We're trying to get to the 
bottom of where this code came from and what it was suppose to be doing.

Here are the problem lines where were removed,

drivers/net/phy/marvell.c:marvell_config_aneg()

  266         err = phy_write(phydev, 0x1d, 0x1f);
  267         if (err < 0)
  268                 return err;
  269
  270         err = phy_write(phydev, 0x1e, 0x200c);
  271         if (err < 0)
  272                 return err;
  273
  274         err = phy_write(phydev, 0x1d, 0x5);
  275         if (err < 0)
  276                 return err;
  277
  278         err = phy_write(phydev, 0x1e, 0);
  279         if (err < 0)
  280                 return err;
  281
  282         err = phy_write(phydev, 0x1e, 0x100);
  283         if (err < 0)
  284                 return err;

Does anyone have any clues as to why this was added?

Thanks,

Daniel

^ permalink raw reply	[flat|nested] 18+ messages in thread

end of thread, other threads:[~2018-10-04 14:30 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-04-18 13:16 Marvell phy errata origins? Daniel Walker
2017-04-18 14:04 ` Andrew Lunn
2017-04-18 14:18   ` Daniel Walker
2017-04-18 14:31     ` Harini Katakam
2017-04-18 14:35       ` Daniel Walker
2017-04-18 14:41         ` Harini Katakam
2017-04-18 14:56           ` Daniel Walker
2017-04-18 15:09             ` Harini Katakam
2017-05-09 13:58   ` Daniel Walker
2017-05-09 14:24     ` Andrew Lunn
2018-09-25 15:16   ` Daniel Walker
2018-09-25 15:34     ` Andrew Lunn
2018-09-25 15:39     ` Andrew Lunn
2018-09-25 17:30       ` Harini Katakam
2018-09-26  5:42         ` Harini Katakam
2018-09-26 15:35           ` Daniel Walker
2018-10-01 10:26             ` GokulChand Casheekar (gcasheek)
2018-10-04  7:27               ` GokulChand Casheekar (gcasheek)

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.