Thread (50 messages) 50 messages, 6 authors, 2013-03-22

Re: [PATCH 0/4 v3] mv643xx_eth: use mvmdio MDIO bus driver

From: Jason Cooper <hidden>
Date: 2013-03-22 14:29:53
Also in: linux-arm-kernel, linux-devicetree, lkml, netdev

On Fri, Mar 22, 2013 at 03:24:55PM +0100, Florian Fainelli wrote:
Le 03/22/13 15:14, Jason Cooper a =E9crit :
quoted
On Fri, Mar 22, 2013 at 02:39:24PM +0100, Florian Fainelli wrote:
quoted
Hi all,

This patch converts the mv643xx_eth driver to use the mvmdio MDIO bus=
 driver
quoted
quoted
instead of rolling its own implementation. As a result, all users of =
this
quoted
quoted
mv643xx_eth driver are converted to register an "orion-mdio" platform=
_device.
quoted
quoted
The mvmdio driver is also updated to support an interrupt line which =
reports
quoted
quoted
SMI error/completion, and to allow traditionnal platform device regis=
tration
quoted
quoted
instead of just device tree.

David, I think it makes sense for you to merge all of this, since we =
do
quoted
quoted
not want the architecture files to be desynchronized from the mv643xx=
_eth to
quoted
quoted
avoid runtime breakage. The potential for merge conflicts should be v=
ery small.
quoted
quoted
Florian Fainelli (4):
  net: mvmdio: allow platform device style registration
  net: mvmdio: rename base register cookie from smireg to regs
  net: mvmdio: enhance driver to support SMI error/done interrupts
  mv643xx_eth: convert to use the Marvell Orion MDIO driver

 .../devicetree/bindings/net/marvell-orion-mdio.txt |    3 +
 arch/arm/plat-orion/common.c                       |   54 +++---
 arch/powerpc/platforms/chrp/pegasos_eth.c          |   20 ++
 arch/powerpc/sysdev/mv64x60_dev.c                  |   16 +-
 drivers/net/ethernet/marvell/Kconfig               |    5 +-
 drivers/net/ethernet/marvell/Makefile              |    2 +-
 drivers/net/ethernet/marvell/mv643xx_eth.c         |  195 ++-------=
-----------
quoted
quoted
 drivers/net/ethernet/marvell/mvmdio.c              |  130 +++++++++=
+---
quoted
quoted
 include/linux/mv643xx_eth.h                        |    1 -
 9 files changed, 187 insertions(+), 239 deletions(-)
Whole series applied on top of v3.9-rc3 and tested on dreamplug
(kirkwood DT boot with legacy mv643xx_eth init)
=20
Ok, thanks! Does that mean that you want these changes to go via
your tree? David initially applied my v2 of this patchset, and since
it thouches mostly ethernet driver stuff, I would rather make it go
via his tree if both of you agree.
Yeah, I thought I should have reworded that after I hit send :)  I
simply meant it applied cleanly against v3.9-rc3, booted, and worked.  I
Acked it so David could take the whole series through his tree.  Sorry
for the confusion.

Now that I can build mv643xx_eth DT on top of this, I'll structure it so
those changes go on top of yours (in David's tree) and try to avoid the
external dependency for the DT bits going though arm-soc.

thx,

Jason.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help