All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH net-next v5 00/11] net: mvmdio: add xMDIO xSMI support
@ 2017-06-15 14:43 ` Antoine Tenart
  0 siblings, 0 replies; 53+ messages in thread
From: Antoine Tenart @ 2017-06-15 14:43 UTC (permalink / raw)
  To: linux-arm-kernel

Hello,

This series aims to add the xSMI support on the xMDIO bus to the
mvmdio driver. The xSMI interface complies with the IEEE 802.3 clause 45
and is used by 10GbE devices. On 7k and 8k (as of now), such an
interface is found and is used by Ethernet controllers.

Patches 1-4 and 9 are cosmetic cleanups.

Patches 5-7 are prerequisites to the xSMI support.

Patches 8 and 10-11 add the xSMI support to the mvmdio driver, and a
node is added both in the cp110 slave and master device trees.

This was tested on an Armada 8040 mcbin, as well as on both the
Armada 7040 DB and the Armada 8040 DB to ensure the SMI interface
was still working.

@Dave: patch 11 should go through the mvebu tree as asked by Gregory,
thanks!

Thanks,
Antoine

Since v4:
  - Reworded the documentation of the mvmdio bindings with Andrew's
    suggestion.
  - Added Reviewed-by tags from Florian.
  - Use the net-next tag now.

Since v3:
  - Added a patch from Russell King removing locks, as there is already
    per bus locking in the MDIO layer.
  - Russell suggested another approach to add the xSMI support, by having
    two different read/write functions. Reworked the series to take this
    into account. (This also lead to the removal of some patches, and the
    introduction of some others).

Since v2:
  - Brought back the marvell,xmdio compatible and updated the driver
    accordingly. The ops (smi, xsmi) are chosen based on the compatible.
  - Now return -EOPNOTSUPP when the MII_ADDR_C45 bit is wrongly set.
  - Mask dev_addr with GENMASK(4, 0).
  - Moved bit definitions under their register definition.
  - Fixed the write operation shift.
  - Added one space before the second parameter of GENMASK.

Since v1:
  - Instead of using the smi/xsmi helpers based on the compatible, now
    check if the MII_ADDR_C45 bit is set.
  - Removed the marvell,xmdio compatible addition.
  - Fixed the is_read_valid logic.
  - Updated to use static const variables for ops.
  - Added 3 Reviewed-by tags from Florian (I dropped another one as the
    patch changed in v2).

Antoine Tenart (10):
  net: mvmdio: reorder headers alphabetically
  net: mvmdio: use tabs for defines
  net: mvmdio: use GENMASK for masks
  net: mvmdio: introduce an ops structure
  net: mvmdio: put the poll intervals in the ops structure
  net: mvmdio: check the MII_ADDR_C45 bit is not set for smi operations
  net: mvmdio: add xmdio xsmi support
  net: mvmdio: simplify the smi read and write error paths
  dt-bindings: orion-mdio: document the new xmdio compatible
  arm64: marvell: dts: add xmdio nodes for 7k/8k

Russell King (1):
  net: mvmdio: remove duplicate locking

 .../devicetree/bindings/net/marvell-orion-mdio.txt |  10 +-
 .../boot/dts/marvell/armada-cp110-master.dtsi      |   8 +
 .../arm64/boot/dts/marvell/armada-cp110-slave.dtsi |   8 +
 drivers/net/ethernet/marvell/mvmdio.c              | 214 +++++++++++++++------
 4 files changed, 180 insertions(+), 60 deletions(-)

-- 
2.9.4

^ permalink raw reply	[flat|nested] 53+ messages in thread
* [PATCH 0/6] Update binding documentation for cp110 and ap806
@ 2017-06-20  8:37 ` Gregory CLEMENT
  0 siblings, 0 replies; 53+ messages in thread
From: Gregory CLEMENT @ 2017-06-20  8:37 UTC (permalink / raw)
  To: linux-arm-kernel

Hi Rob,

As you know there were dependencies issue about the binding between my
different series and you proposed yourself to apply them though the
device tree subsystem: [1]

All the driver parts have been merged so it's time merging the
documentation.

Thanks,

Gregory

[1]: http://lists.infradead.org/pipermail/linux-arm-kernel/2017-May/509643.html

Gregory CLEMENT (6):
  dt-bindings: cp110: do not depend anymore of the *-clock-output-names
  dt-bindings: cp110: introduce a new binding
  dt-bindings: cp110: add sdio clock to cp-110 system controller
  pinctrl: dt-bindings: add documentation for AP806 pin controllers
  pinctrl: dt-bindings: add documentation for CP110 pin controllers
  gpio: dt-bindings: Add documentation for gpio controllers on Armada
    7K/8K

 .../arm/marvell/ap806-system-controller.txt        |  73 ++++++++++-
 .../arm/marvell/cp110-system-controller0.txt       | 144 ++++++++++++++++++---
 .../devicetree/bindings/gpio/gpio-mvebu.txt        |  24 +++-
 3 files changed, 208 insertions(+), 33 deletions(-)

-- 
2.11.0

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

end of thread, other threads:[~2017-06-26 22:44 UTC | newest]

Thread overview: 53+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-06-15 14:43 [PATCH net-next v5 00/11] net: mvmdio: add xMDIO xSMI support Antoine Tenart
2017-06-15 14:43 ` Antoine Tenart
2017-06-15 14:43 ` [PATCH net-next v5 01/11] net: mvmdio: reorder headers alphabetically Antoine Tenart
2017-06-15 14:43   ` Antoine Tenart
2017-06-15 14:43 ` [PATCH net-next v5 02/11] net: mvmdio: use tabs for defines Antoine Tenart
2017-06-15 14:43   ` Antoine Tenart
2017-06-15 14:43 ` [PATCH net-next v5 03/11] net: mvmdio: use GENMASK for masks Antoine Tenart
2017-06-15 14:43   ` Antoine Tenart
2017-06-15 14:43 ` [PATCH net-next v5 04/11] net: mvmdio: remove duplicate locking Antoine Tenart
2017-06-15 14:43   ` Antoine Tenart
2017-06-15 14:43 ` [PATCH net-next v5 05/11] net: mvmdio: introduce an ops structure Antoine Tenart
2017-06-15 14:43   ` Antoine Tenart
2017-06-15 14:43 ` [PATCH net-next v5 06/11] net: mvmdio: put the poll intervals in the " Antoine Tenart
2017-06-15 14:43   ` Antoine Tenart
2017-06-15 14:43 ` [PATCH net-next v5 07/11] net: mvmdio: check the MII_ADDR_C45 bit is not set for smi operations Antoine Tenart
2017-06-15 14:43   ` Antoine Tenart
2017-06-15 14:43 ` [PATCH net-next v5 08/11] net: mvmdio: add xmdio xsmi support Antoine Tenart
2017-06-15 14:43   ` Antoine Tenart
2017-06-15 14:43 ` [PATCH net-next v5 09/11] net: mvmdio: simplify the smi read and write error paths Antoine Tenart
2017-06-15 14:43   ` Antoine Tenart
2017-06-15 14:43 ` [PATCH net-next v5 10/11] dt-bindings: orion-mdio: document the new xmdio compatible Antoine Tenart
2017-06-15 14:43   ` Antoine Tenart
2017-06-15 14:43 ` [PATCH net-next v5 11/11] arm64: marvell: dts: add xmdio nodes for 7k/8k Antoine Tenart
2017-06-20  8:37   ` Gregory CLEMENT
2017-06-15 14:43   ` Antoine Tenart
2017-06-15 16:35   ` Gregory CLEMENT
2017-06-15 16:35     ` Gregory CLEMENT
2017-06-15 15:30 ` [PATCH net-next v5 00/11] net: mvmdio: add xMDIO xSMI support Andrew Lunn
2017-06-15 15:30   ` Andrew Lunn
2017-06-16 16:28 ` David Miller
2017-06-16 16:28   ` David Miller
  -- strict thread matches above, loose matches on Subject: below --
2017-06-20  8:37 [PATCH 0/6] Update binding documentation for cp110 and ap806 Gregory CLEMENT
2017-06-20  8:37 ` Gregory CLEMENT
2017-06-20  8:37 ` [PATCH 1/6] dt-bindings: cp110: do not depend anymore of the *-clock-output-names Gregory CLEMENT
2017-06-20  8:37   ` Gregory CLEMENT
2017-06-20  8:37 ` [PATCH 2/6] dt-bindings: cp110: introduce a new binding Gregory CLEMENT
2017-06-20  8:37   ` Gregory CLEMENT
2017-06-20  8:37 ` [PATCH 3/6] dt-bindings: cp110: add sdio clock to cp-110 system controller Gregory CLEMENT
2017-06-20  8:37   ` Gregory CLEMENT
2017-06-20  8:37 ` [PATCH 4/6] pinctrl: dt-bindings: add documentation for AP806 pin controllers Gregory CLEMENT
2017-06-20  8:37   ` Gregory CLEMENT
2017-06-20  8:37 ` [PATCH 5/6] pinctrl: dt-bindings: add documentation for CP110 " Gregory CLEMENT
2017-06-20  8:37   ` Gregory CLEMENT
2017-06-20  8:37 ` [PATCH 6/6] gpio: dt-bindings: Add documentation for gpio controllers on Armada 7K/8K Gregory CLEMENT
2017-06-20  8:37   ` Gregory CLEMENT
2017-06-20 15:34 ` [PATCH 0/6] Update binding documentation for cp110 and ap806 Gregory CLEMENT
2017-06-20 15:34   ` Gregory CLEMENT
2017-06-22 21:14   ` Rob Herring
2017-06-22 21:14     ` Rob Herring
2017-06-23  8:49     ` Gregory CLEMENT
2017-06-23  8:49       ` Gregory CLEMENT
2017-06-26 22:44       ` Stephen Boyd
2017-06-26 22:44         ` Stephen Boyd

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.