]> git.baikalelectronics.ru Git - kernel.git/commit
phylib: Modify Vitesse RGMII skew settings
authorAndy Fleming <afleming@freescale.com>
Thu, 13 Oct 2011 04:33:55 +0000 (04:33 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 19 Oct 2011 19:59:45 +0000 (15:59 -0400)
commitbf484f27bec265ad23c4a195d0156f7fd00d7bfc
tree69022388e856ab212bd26c4cff8cd5df740f4d92
parentdc6fcd53b80656f6504b32f6d6e3dd64a8014b9a
phylib: Modify Vitesse RGMII skew settings

The Vitesse driver was using the RGMII_ID interface type to determine if
skew was necessary.  However, we want to move away from using that
interface type, as it's really a property of the board's PHY connection.
However, some boards depend on it, so we want to support it, while
allowing new boards to use the more flexible "fixups" approach.  To do
this, we extract the code which adds skew into its own function, and
call that function when RGMII_ID has been selected.

Another side-effect of this change is that if your PHY has skew set
already, it doesn't clear it.  This way, the fixup code can modify the
register without config_init then clearing it.

Signed-off-by: Andy Fleming <afleming@freescale.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/vitesse.c