This will get the driver to aknowledge mii-tool reported mode,
without this the drivers always says "100BaseTx-FD" while my switch
shows 10BaseT-HD as the selected mode.
/Lars
--- sis190.new 2005-07-29 23:26:39.000000000 +0000
+++ sis190.c 2005-07-29 23:38:39.000000000 +0000
@@ -956,7 +956,8 @@ static void sis190_phy_task(void * data)
val = mdio_read(ioaddr, phy_id, 0x1f);
net_link(tp, KERN_INFO "%s: mii ext = %04x.\n", dev->name, val);
- val = mdio_read(ioaddr, phy_id, MII_LPA);
+ val = mdio_read(ioaddr, phy_id, MII_LPA)
+ & mdio_read(ioaddr, phy_id, MII_ADVERTISE );
net_link(tp, KERN_INFO "%s: mii lpa = %04x.\n", dev->name, val);
for (p = reg31; p->ctl; p++) {
On 7/29/05, Erior <[email protected]> wrote:
> Hi
>
> Added PHY identifier for the Asus K8S-MX motherboard.
>
> --- sis190.old 2005-07-29 23:16:07.000000000 +0000
> +++ sis190.c 2005-07-29 23:15:37.000000000 +0000
> @@ -325,6 +325,7 @@ static struct mii_chip_info {
> { "Broadcom PHY BCM5461", { 0x0020, 0x60c0 }, LAN },
> { "Agere PHY ET1101B", { 0x0282, 0xf010 }, LAN },
> { "Marvell PHY 88E1111", { 0x0141, 0x0cc0 }, LAN },
> + { "Realtek PHY RTL8201CL",{ 0x0000, 0x8200 }, LAN },
> { NULL, }
> };
>
> /Lars
>
> On 7/29/05, Lars Vahlenberg <[email protected]> wrote:
> >
> >
> >
> > -----Original Message-----
> > From: Francois Romieu [mailto:[email protected]]
> > Sent: Fri 2005-07-29 00:11
> > To: [email protected]
> > Cc: [email protected]; Lars Vahlenberg; Alexey Dobriyan;
> > [email protected]
> > Subject: [patch 2.6.13-rc3] sis190 driver
> >
> > Single file patch:
> >
> http://www.zoreil.com/~romieu/sis190/20050728-2.6.13-rc3-sis190-test.patch
> >
> > Patch-kit:
> > http://www.zoreil.com/~romieu/sis190/20050728-2.6.13-rc3/patches
> >
> > Tarball:
> > http://www.zoreil.com/~romieu/sis190/20050728-2.6.13-rc3.tar.bz2
> >
> > Changes from previous version (20050722)
> > o Add endian annotations (Alexey Dobriyan).
> >
> > o Hopefully fixed the build of the patch.
> >
> > o Minor round of mii/phy related changes. May crash.
> >
> > Testing reports/review/patches are always appreciated.
> >
> > Ok, now back to washing.
> >
> > --
> > Ueimor
> >
> >
> >
> >
>
>
> --
> There is nothing that cannot be solved through sufficient application
> of brute force and ignorance.
>
--
There is nothing that cannot be solved through sufficient application
of brute force and ignorance.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
[Index of Archives]
[Kernel Newbies]
[Netfilter]
[Bugtraq]
[Photo]
[Gimp]
[Yosemite News]
[MIPS Linux]
[ARM Linux]
[Linux Security]
[Linux RAID]
[Video 4 Linux]
[Linux for the blind]
|
|