Subject: Re: [Bugme-new] [Bug 33042] New: Marvell 88E1145 phy configured incorrectly in fiber mode

From: Andrew Morton <[email-masked]>
Date: Mon, 11 Apr 2011 14:02:39 -0700

(switched to email.  Please respond via emailed reply-to-all, not via the
bugzilla web interface).

On Mon, 11 Apr 2011 09:28:18 GMT
[email-masked] wrote:

> https://bugzilla.kernel.org/show_bug.cgi?id=33042
> 
>            Summary: Marvell 88E1145 phy configured incorrectly in fiber
>                     mode
>            Product: Drivers
>            Version: 2.5
>     Kernel Version: Linux-2.6.39-rc1-00191
>           Platform: All
>         OS/Version: Linux
>               Tree: Mainline
>             Status: NEW
>           Severity: normal
>           Priority: P1
>          Component: Network
>         AssignedTo: [email-masked]
>         ReportedBy: [email-masked]
>         Regression: No
> 
> 
> On my board, Marvell 88E1145 phy is attached to Freescale gianfar controller.
> Backplane connection is detected by u-boot as 1000/Full fiber mode.
> 
> The network works perfectly in u-boot (dhcp, tftp of large files, ntp). Upon
> booting, kernel detects the link as 100/Full and no data can be exchanged over
> the interface.
> 
> As a quick fix, I tried setting .read_settings method of the 1145 driver to
> marvell_read_status (instead of genphy_read_status). Now the link is correctly
> detected as 1000/Full, but the data still can not be exchanged.
> 
> I assume, there's a configuration bit missing on the kernel side, as there are
> no such problems in u-boot.
>