All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/3] net: mvneta: fix usage as a module, and support QSGMII properly
@ 2014-04-15 13:50 ` Thomas Petazzoni
  0 siblings, 0 replies; 22+ messages in thread
From: Thomas Petazzoni @ 2014-04-15 13:50 UTC (permalink / raw)
  To: David S. Miller
  Cc: netdev, linux-arm-kernel, Jason Cooper, Andrew Lunn,
	Sebastian Hesselbarth, Gregory Clement, Tawfik Bayouk,
	Nadav Haklai, Lior Amsalem, Dmitri Epshtein, Ezequiel Garcia,
	George Joseph, arno, Willy Tarreau, Alexander Reuter

Hello,

This set of patches is a new attempt at fixing the operation of the
mvneta driver when built as a module. For the record, the previous
attempt, merged in commit e3a8786c10e75903f1269474e21fe8cb49c3a670
('net: mvneta: fix usage as a module on RGMII configurations') caused
problems for all RGMII configurations.

In fact, it turned out that the MAC to PHY connection on the Armada XP
GP, which was described as using RGMII-ID according to its Device
Tree, is in fact a QSGMII connection. And the RGMII and QSGMII
configurations have to be handled in a different way in the driver,
because the SERDES configuration is different in those two cases.

So, this patch series fixes that by:

 * Adding minimal handling of a "qsgmii" connection type in the PHY
   layer. Mainly to make sure that a "qsgmii" phy-mode in the Device
   Tree is recognized, and handed over to the driver as
   PHY_INTERFACE_QSGMII.

 * Changing the mvneta driver to properly configure the RGMIIEn and
   PCSEn bits in the GMAC_CTRL_2 register, and configure the SERDES
   register, in the three possible cases: RGMII, SGMII and QSGMII.

 * Updating the Device Tree of the Armada XP GP board to reflect the
   fact that it uses a QSGMII MAC/PHY connection.

PATCH 1 and 2 would be merged by David Miller, through the net tree,
while PATCH 3 would be merged by the mach-mvebu maintainers, through
their tree and arm-soc.

This set of patches has been tested on:

 * Armada XP GP (four QSGMII interfaces)
 * Armada XP DB (two RGMII interfaces and two SGMII interfaces)
 * Armada 370 Mirabox (two RGMII interfaces)

I've tested both the driver built-in, and compiled as a module.

Since the last attempt at fixing this was quite a fiasco, I'd like
this new attempt to be tested more widely before being applied. I'll
try to do some testing on other Armada boards I have, but independent
testing from other persons would also be appreciated.

Note that these patches apply after reverting the previous attempt,
obviously.

Thanks,

Thomas

Thomas Petazzoni (3):
  net: phy: add minimal support for QSGMII PHY
  net: mvneta: properly configure the MAC <-> PHY connection in all
    situations
  ARM: mvebu: use qsgmii phy-mode for Armada XP GP interfaces

 Documentation/devicetree/bindings/net/ethernet.txt |  2 +-
 arch/arm/boot/dts/armada-xp-gp.dts                 |  8 +--
 drivers/net/ethernet/marvell/mvneta.c              | 73 ++++++++++------------
 include/linux/phy.h                                |  3 +
 4 files changed, 42 insertions(+), 44 deletions(-)

-- 
1.8.3.2

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

end of thread, other threads:[~2014-04-24  2:50 UTC | newest]

Thread overview: 22+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-04-15 13:50 [PATCH 0/3] net: mvneta: fix usage as a module, and support QSGMII properly Thomas Petazzoni
2014-04-15 13:50 ` Thomas Petazzoni
2014-04-15 13:50 ` [PATCH 1/3] net: phy: add minimal support for QSGMII PHY Thomas Petazzoni
2014-04-15 13:50   ` Thomas Petazzoni
2014-04-15 18:48   ` Florian Fainelli
2014-04-15 18:48     ` Florian Fainelli
2014-04-15 13:50 ` [PATCH 2/3] net: mvneta: properly configure the MAC <-> PHY connection in all situations Thomas Petazzoni
2014-04-15 13:50   ` Thomas Petazzoni
2014-04-15 13:50 ` [PATCH 3/3] ARM: mvebu: use qsgmii phy-mode for Armada XP GP interfaces Thomas Petazzoni
2014-04-15 13:50   ` Thomas Petazzoni
2014-04-17  5:13   ` Jason Cooper
2014-04-17  5:13     ` Jason Cooper
2014-04-15 20:54 ` [PATCH 0/3] net: mvneta: fix usage as a module, and support QSGMII properly Arnaud Ebalard
2014-04-15 20:54   ` Arnaud Ebalard
2014-04-16  9:45 ` Willy Tarreau
2014-04-16  9:45   ` Willy Tarreau
2014-04-16 18:37 ` David Miller
2014-04-16 18:37   ` David Miller
2014-04-21 18:28 ` Thomas Petazzoni
2014-04-21 18:28   ` Thomas Petazzoni
2014-04-24  2:49   ` Jason Cooper
2014-04-24  2:49     ` Jason Cooper

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.