All of lore.kernel.org
 help / color / mirror / Atom feed
* SMC921x: problems with LAN9215i connected to i.MX31
@ 2008-05-30  6:37 Jens Gehrlein
  0 siblings, 0 replies; only message in thread
From: Jens Gehrlein @ 2008-05-30  6:37 UTC (permalink / raw)
  To: netdev ML

Hi,

on our board we connected a LAN9215i to the Freescale i.MX31 ARM 
processor. Bus width: 16 bits. No DMA. Kernel 2.6.22. Driver: smc911x.c 
plus patches since then. Both processor and ethernet controller in 
little endian mode.

Ethereal showed scrambled or shifted data in the Ethernet frame. I 
couldn't identify a certain scheme.

I think, this is caused by the macros SMC_PULL_DATA (-> __raw_writesl 
and SMC_PUSH_DATA (-> __raw_readsl) to read/write the FIFOs. Single word 
accesses, e.g. identifying the controller are okay.

I temporarily replaced the macros by simple copy routines in C, which 
access the chip using 32 bit pointers. The processor automatically 
converts the word in two 16 bit accesses. And voila, it works. 
Unfortunately, I had to insert udelay(1) between each word :-(

Has somebody experience/tested with this processor/ethernet controller 
combination?

Does somebody know, how the assembler routines 
__raw_readsl/__raw_writesl work, so that analysis becomes easier? I 
didn't find any documentation.

What's the state of the new smsc driver Steve Glendinning announced some 
days ago on this list? A first look showed that it uses these assembler 
routines, too.

Thanks and best regards,
Jens


P.S.: is line wrapping okay (Thunderbird)?

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2008-05-30  7:02 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-05-30  6:37 SMC921x: problems with LAN9215i connected to i.MX31 Jens Gehrlein

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.