>>>>> "Peter" == Peter Korsgaard <[EMAIL PROTECTED]> writes:

Hi,

 Peter> I'll give your driver a try and report back.

Ok, the driver seems to be working (after fixing up the accessor
routines for my hw setup) and performance is comparable to Dustin's
driver.

It would be nice if the driver would enable the byte swapping support
in the hw if it detects the wrong endian - Like this:

Index: linux/drivers/net/smsc911x.c
===================================================================
--- linux.orig/drivers/net/smsc911x.c
+++ linux/drivers/net/smsc911x.c
@@ -1787,6 +1787,13 @@
                return -ENODEV;
        }
 
+       /* check endian */
+       if (smsc911x_reg_read(pdata, BYTE_TEST) == 0x43218765) {
+               SMSC_TRACE("Byte test looks swapped, inverting");
+               smsc911x_reg_write(~smsc911x_reg_read(pdata, ENDIAN),
+                                  pdata, ENDIAN);
+       }
+
        /* Default generation to zero (all workarounds apply) */
        pdata->generation = 0;

-- 
Bye, Peter Korsgaard

-
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to