All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/1] add MDIO bus multiplexer driven by a regmap device
@ 2019-01-30 11:21 Pankaj Bansal
  2019-01-30 11:22 ` [PATCH 1/1] netdev/phy: add MDIO bus multiplexer driven by a regmap Pankaj Bansal
  2019-01-30 15:22 ` [PATCH 0/1] add MDIO bus multiplexer driven by a regmap device Andrew Lunn
  0 siblings, 2 replies; 7+ messages in thread
From: Pankaj Bansal @ 2019-01-30 11:21 UTC (permalink / raw)
  To: Andrew Lunn, Florian Fainelli; +Cc: netdev, Pankaj Bansal, Varun Sethi

Add support for an MDIO bus multiplexer controlled by a regmap device, like an 
FPGA.

These apis is an extension of the existing driver 
drivers/net/phy/mdio-mux-mmioreg.c.

The problem with mmioreg driver is that it can operate only on memory mapped 
devices.
but if we have a device that controls mdio muxing and that device is controlled 
using
i2c or spi, then it will not work.

Therefore, added apis that can be used by regmap device to control mdio mux.

Tested on a NXP LX2160AQDS board which uses the "QIXIS" FPGA attached to the 
i2c bus.

This is my second attempt at this.
In my previous approach i wrote a separate driver for regmap apis. But then i
realized that it is not meant to control a specific device.
It is meant to control some registers of parent device. Therefore, IMO this 
should not be a
Platform driver and there should not be any "compatible" property to which this 
driver is associated.

The previous approach patches and discussion can be accessed here:
https://www.mail-archive.com/netdev@vger.kernel.org/msg252744.html

Cc: Varun Sethi <V.Sethi@nxp.com>

Pankaj Bansal (1):
  netdev/phy: add MDIO bus multiplexer driven by a regmap

 drivers/net/phy/Makefile          |   2 +-
 drivers/net/phy/mdio-mux-regmap.c | 170 ++++++++++++++++++++++++++++++
 include/linux/mdio-mux.h          |  20 ++++
 3 files changed, 191 insertions(+), 1 deletion(-)
 create mode 100644 drivers/net/phy/mdio-mux-regmap.c

-- 
2.17.1


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

end of thread, other threads:[~2019-02-01 13:48 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-01-30 11:21 [PATCH 0/1] add MDIO bus multiplexer driven by a regmap device Pankaj Bansal
2019-01-30 11:22 ` [PATCH 1/1] netdev/phy: add MDIO bus multiplexer driven by a regmap Pankaj Bansal
2019-01-30 15:23   ` Andrew Lunn
2019-01-30 15:33   ` Andrew Lunn
2019-01-30 15:22 ` [PATCH 0/1] add MDIO bus multiplexer driven by a regmap device Andrew Lunn
2019-02-01  9:24   ` Pankaj Bansal
2019-02-01 13:48     ` Andrew Lunn

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.