[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <983551.33255.qm@web37601.mail.mud.yahoo.com>
Date: Sun, 17 Apr 2011 23:43:10 -0700 (PDT)
From: Alex Dubov <oakad@...oo.com>
To: Andy Fleming <afleming@...il.com>
Cc: Andrew Morton <akpm@...ux-foundation.org>,
David Daney <ddaney@...iumnetworks.com>,
netdev@...r.kernel.org, bugzilla-daemon@...zilla.kernel.org,
bugme-daemon@...zilla.kernel.org,
Grant Likely <grant.likely@...retlab.ca>
Subject: Re: [Bugme-new] [Bug 33042] New: Marvell 88E1145 phy configured incorrectly in fiber mode
--- On Sat, 16/4/11, Andy Fleming <afleming@...il.com> wrote:
>
> You could probably change to use a fixed link by removing
> the
> phy-handle property from your ethernet device node, and
> adding:
> "fixed-link=<0 1000 1 0 0>". If that works,
> then the issue is that
> Linux is breaking something when it connects. It might be
> good enough
> for you to use fixed-link, though it would be good to
> actually find
> out what's going wrong with the PHY driver.
>
It seems, I found my problem. On the linux side it purely amount to this:
--- a/drivers/net/phy/marvell.c
+++ b/drivers/net/phy/marvell.c
@@ -803,7 +803,7 @@ static struct phy_driver marvell_drivers[] = {
.flags = PHY_HAS_INTERRUPT,
.config_init = &m88e1145_config_init,
.config_aneg = &marvell_config_aneg,
- .read_status = &genphy_read_status,
+ .read_status = &marvell_read_status,
.ack_interrupt = &marvell_ack_interrupt,
.config_intr = &marvell_config_intr,
.driver = { .owner = THIS_MODULE },
But then I managed to accidentally put an incorrect value of the phy
interrupt into dts file and it caused all kinds of weird problems.
Shall I send a one-liner patch for the above?
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists