Thread (20 messages) 20 messages, 6 authors, 2020-04-21

Re: [PATCH] mdio-bitbang: add support for lowlevel mdio read/write

From: Michael Grzeschik <hidden>
Date: 2020-01-29 21:48:11

On Wed, Jan 29, 2020 at 04:53:46PM +0100, Andrew Lunn wrote:
On Wed, Jan 29, 2020 at 04:42:01PM +0100, Michael Grzeschik wrote:
quoted
Hi Andrew!

I tested your patch. But it works only partially. For the case that
the upper driver is directly communicating in SMI mode with the phy,
this works fine. But the regular MDIO connection does not work anymore
afterwards.

The normals MDIO communication still needs to work, as mdio-gpio is
calling of_mdiobus_register that on the other end calls get_phy_device
and tries to communicate via regular MDIO to the device.
Do you mean you have a mix of devices on the bus, some standards
comformant, and others using this hacked up SMI0 mode?
Actually it is the same device used in both modes. The SMI0
mode is used by the switch driver to address the extended switch
functions. But on the same bus we have the fec connected to
the cpu bound fixed-phy (microchip,ks8863) via MDIO.
You need to specify per device if SMI0 should be used?
Yes, we have to use the same bus fot both modes SMI0 and MDIO.

 Michael

-- 
Pengutronix e.K.                           |                             |
Steuerwalder Str. 21                       | http://www.pengutronix.de/  |
31137 Hildesheim, Germany                  | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

Attachments

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