All of lore.kernel.org
 help / color / mirror / Atom feed
* colibri-pxa320/AX88796: phy-read/write problems
@ 2010-09-16 12:09 Marc Kleine-Budde
  2010-09-21  0:30 ` Ben Dooks
  0 siblings, 1 reply; 2+ messages in thread
From: Marc Kleine-Budde @ 2010-09-16 12:09 UTC (permalink / raw)
  To: linux-arm-kernel

Hello,

my hardware is a toradex colibri PXA320 board using latest stable
Kernel 2.6.35.4. The Ethernet controller is a AX88796BI.

Ethernet is working, but access via MDIO to the AX's internal phy is
broken. The contents of all registers is 0xffff.

The userspace tool "mii-diag" illustrates the problem:
root at grabowski:~ mii-diag
Using the default interface 'eth0'.
Basic registers of MII PHY #16:  ffff ffff ffff ffff ffff ffff ffff ffff.
  No MII transceiver present!.
  Use '--force' to view the information anyway.

If I switch on the phy_debug in the ax88796 driver we see that the
0xffff are read via "ax_phy_read()" from the hardware, this means it's
not a problem in the userspace.

This is the debug output from the phy register accesses of the generic
mii code, which is polling the link status every 2 seconds.

[   20.946342] ax_phy_issueaddr: dev c77ec000, 0010, 0001, 2
[   20.946416] ax_phy_read: 0010.0001 => read ffff
[   20.946429] ax_phy_issueaddr: dev c77ec000, 0010, 0001, 2
[   20.946502] ax_phy_read: 0010.0001 => read ffff
[   22.946336] ax_phy_issueaddr: dev c77ec000, 0010, 0001, 2
[   22.946410] ax_phy_read: 0010.0001 => read ffff
[   22.946423] ax_phy_issueaddr: dev c77ec000, 0010, 0001, 2
[   22.946496] ax_phy_read: 0010.0001 => read ffff

Is this a known problem? It occurs with several colibri boards. Can
someone with a colibri board or a different board with the ax88796 chip
try to reproduce the problem.

cheers, Marc
-- 
Pengutronix e.K.                  | Marc Kleine-Budde           |
Industrial Linux Solutions        | Phone: +49-231-2826-924     |
Vertretung West/Dortmund          | Fax:   +49-5121-206917-5555 |
Amtsgericht Hildesheim, HRA 2686  | http://www.pengutronix.de   |

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 262 bytes
Desc: OpenPGP digital signature
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20100916/07ef4880/attachment.sig>

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

* colibri-pxa320/AX88796: phy-read/write problems
  2010-09-16 12:09 colibri-pxa320/AX88796: phy-read/write problems Marc Kleine-Budde
@ 2010-09-21  0:30 ` Ben Dooks
  0 siblings, 0 replies; 2+ messages in thread
From: Ben Dooks @ 2010-09-21  0:30 UTC (permalink / raw)
  To: linux-arm-kernel

On 16/09/10 13:09, Marc Kleine-Budde wrote:
> Hello,
> 
> my hardware is a toradex colibri PXA320 board using latest stable
> Kernel 2.6.35.4. The Ethernet controller is a AX88796BI.
> 
> Ethernet is working, but access via MDIO to the AX's internal phy is
> broken. The contents of all registers is 0xffff.
> 
> The userspace tool "mii-diag" illustrates the problem:
> root at grabowski:~ mii-diag
> Using the default interface 'eth0'.
> Basic registers of MII PHY #16:  ffff ffff ffff ffff ffff ffff ffff ffff.
>   No MII transceiver present!.
>   Use '--force' to view the information anyway.
> 
> If I switch on the phy_debug in the ax88796 driver we see that the
> 0xffff are read via "ax_phy_read()" from the hardware, this means it's
> not a problem in the userspace.

I've not tried it with a PXA, but it was working with a S3C2440 based
system when it was written, so I do beleive it should work. However
I've not had a chance to test the MII code for a few releases so have
no idea if it does still work.

Do you know if the hardware is correct? Has any other linux version
managed to talk to the MII interface, or other OS/bootloader
combination?

-- 
Ben

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

end of thread, other threads:[~2010-09-21  0:30 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-09-16 12:09 colibri-pxa320/AX88796: phy-read/write problems Marc Kleine-Budde
2010-09-21  0:30 ` Ben Dooks

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.