netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Davicom DM9000A regression
@ 2013-06-12 13:39 Nikita Kiryanov
  2013-06-12 21:23 ` Francois Romieu
  2013-06-13  6:22 ` Nikita Kiryanov
  0 siblings, 2 replies; 4+ messages in thread
From: Nikita Kiryanov @ 2013-06-12 13:39 UTC (permalink / raw)
  To: netdev; +Cc: josright123

Hi all.

I've encountered a connectivity problem with Davicom DM9000A chip.
The symptoms are the following message when booting via NFS:
dm9000 dm9000.0: eth0: link up, 100Mbps, full-duplex, lpa 0xCDE1

A bit of digging revealed the cause as this patch:
"DM9000B: driver initialization upgrade"
and specifically, the following line that was added by it:
dm9000_phy_write(dev, 0, MII_BMCR, BMCR_RESET); /* PHY RESET */
(uncommenting this line solves the problem).
Adding a delay after the phy reset did not help.

I'll appreciate any insight someone might have on this issue.

-- 
Regards,
Nikita.

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

* Re: Davicom DM9000A regression
  2013-06-12 13:39 Davicom DM9000A regression Nikita Kiryanov
@ 2013-06-12 21:23 ` Francois Romieu
  2013-06-13  6:58   ` Nikita Kiryanov
  2013-06-13  6:22 ` Nikita Kiryanov
  1 sibling, 1 reply; 4+ messages in thread
From: Francois Romieu @ 2013-06-12 21:23 UTC (permalink / raw)
  To: Nikita Kiryanov; +Cc: netdev, josright123

Nikita Kiryanov <nikita@compulab.co.il> :
[...]
> A bit of digging revealed the cause as this patch:
> "DM9000B: driver initialization upgrade"

(aka 6741f40d198c6a5feb23653a1efd4ca47f93d83d)

> and specifically, the following line that was added by it:
> dm9000_phy_write(dev, 0, MII_BMCR, BMCR_RESET); /* PHY RESET */
> (uncommenting this line solves the problem).
> Adding a delay after the phy reset did not help.

(I have no idea why Davicom enforced a dsp phy register write everywhere
instead of using db->type to identify the specific chipset revision that
requires it)

The last version of the patch changed - not much - without notice and
it did not contain the "tested on DM9000{A, B, E}, x86, arm" part.

You may try http://marc.info/?l=linux-netdev&m=136443908225335 to
see if it behaves the same.

-- 
Ueimor

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

* Re: Davicom DM9000A regression
  2013-06-12 13:39 Davicom DM9000A regression Nikita Kiryanov
  2013-06-12 21:23 ` Francois Romieu
@ 2013-06-13  6:22 ` Nikita Kiryanov
  1 sibling, 0 replies; 4+ messages in thread
From: Nikita Kiryanov @ 2013-06-13  6:22 UTC (permalink / raw)
  To: netdev; +Cc: josright123, davem

On 06/12/2013 04:39 PM, Nikita Kiryanov wrote:
> Hi all.
>
> I've encountered a connectivity problem with Davicom DM9000A chip.
> The symptoms are the following message when booting via NFS:
> dm9000 dm9000.0: eth0: link up, 100Mbps, full-duplex, lpa 0xCDE1

Eh, copy pasted the wrong thing.
The message is a link down message:
dm9000 dm9000.0: eth0: link down

Also, CC-ing David Miller

-- 
Regards,
Nikita.

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

* Re: Davicom DM9000A regression
  2013-06-12 21:23 ` Francois Romieu
@ 2013-06-13  6:58   ` Nikita Kiryanov
  0 siblings, 0 replies; 4+ messages in thread
From: Nikita Kiryanov @ 2013-06-13  6:58 UTC (permalink / raw)
  To: Francois Romieu; +Cc: netdev, josright123

Hi Francois Romie,

On 06/13/2013 12:23 AM, Francois Romieu wrote:
> Nikita Kiryanov <nikita@compulab.co.il> :
[...]
> The last version of the patch changed - not much - without notice and
> it did not contain the "tested on DM9000{A, B, E}, x86, arm" part.
>
> You may try http://marc.info/?l=linux-netdev&m=136443908225335 to
> see if it behaves the same.
>

I gave it a try and the problem persists. Not surprising since it does
have the offending phy reset.

-- 
Regards,
Nikita.

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

end of thread, other threads:[~2013-06-13  6:58 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-06-12 13:39 Davicom DM9000A regression Nikita Kiryanov
2013-06-12 21:23 ` Francois Romieu
2013-06-13  6:58   ` Nikita Kiryanov
2013-06-13  6:22 ` Nikita Kiryanov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).