Re: [PATCH] SMSC LAN911x and LAN921x vendor driver
From: Peter Korsgaard <jacmet@sunsite.dk>
Date: 2007-08-07 23:08:42
From: Peter Korsgaard <jacmet@sunsite.dk>
Date: 2007-08-07 23:08:42
quoted
quoted
quoted
quoted
"Peter" == Peter Korsgaard [off-list ref] 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