All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] smc91x: disable DMA mode on the logicpd pxa270
@ 2006-06-23 21:24 Lennert Buytenhek
  2006-06-27  2:02 ` Jeff Garzik
  0 siblings, 1 reply; 4+ messages in thread
From: Lennert Buytenhek @ 2006-06-23 21:24 UTC (permalink / raw)
  To: jgarzik, netdev; +Cc: nico, mikee, peterb

Enabling PXA DMA for the smc91x on the logicpd pxa270 produces
unacceptable interference with the TFT panel, so disable it.  Also
delete the lpd270 versions of the SMC_{in,out}[bl]() macros, as they
aren't used, since the board only supports 16bit accesses.

Signed-off-by: Lennert Buytenhek <buytenh@wantstofly.org>

Index: linux-2.6.17-git5/drivers/net/smc91x.h
===================================================================
--- linux-2.6.17-git5.orig/drivers/net/smc91x.h
+++ linux-2.6.17-git5/drivers/net/smc91x.h
@@ -136,14 +136,9 @@
 #define SMC_CAN_USE_32BIT	0
 #define SMC_IO_SHIFT		0
 #define SMC_NOWAIT		1
-#define SMC_USE_PXA_DMA		1
 
-#define SMC_inb(a, r)		readb((a) + (r))
 #define SMC_inw(a, r)		readw((a) + (r))
-#define SMC_inl(a, r)		readl((a) + (r))
-#define SMC_outb(v, a, r)	writeb(v, (a) + (r))
 #define SMC_outw(v, a, r)	writew(v, (a) + (r))
-#define SMC_outl(v, a, r)	writel(v, (a) + (r))
 #define SMC_insw(a, r, p, l)	readsw((a) + (r), p, l)
 #define SMC_outsw(a, r, p, l)	writesw((a) + (r), p, l)

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] smc91x: disable DMA mode on the logicpd pxa270
  2006-06-23 21:24 [PATCH] smc91x: disable DMA mode on the logicpd pxa270 Lennert Buytenhek
@ 2006-06-27  2:02 ` Jeff Garzik
  2006-06-27  2:08   ` Lennert Buytenhek
  0 siblings, 1 reply; 4+ messages in thread
From: Jeff Garzik @ 2006-06-27  2:02 UTC (permalink / raw)
  To: Lennert Buytenhek; +Cc: netdev, nico, mikee, peterb

Lennert Buytenhek wrote:
> Enabling PXA DMA for the smc91x on the logicpd pxa270 produces
> unacceptable interference with the TFT panel, so disable it.  Also
> delete the lpd270 versions of the SMC_{in,out}[bl]() macros, as they
> aren't used, since the board only supports 16bit accesses.
> 
> Signed-off-by: Lennert Buytenhek <buytenh@wantstofly.org>
> 
> Index: linux-2.6.17-git5/drivers/net/smc91x.h

ACK, but git-applymbox claims the patch is corrupt



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] smc91x: disable DMA mode on the logicpd pxa270
  2006-06-27  2:02 ` Jeff Garzik
@ 2006-06-27  2:08   ` Lennert Buytenhek
  2006-06-27  2:14     ` Lennert Buytenhek
  0 siblings, 1 reply; 4+ messages in thread
From: Lennert Buytenhek @ 2006-06-27  2:08 UTC (permalink / raw)
  To: Jeff Garzik; +Cc: netdev, nico, mikee, peterb

On Mon, Jun 26, 2006 at 10:02:52PM -0400, Jeff Garzik wrote:

> >Enabling PXA DMA for the smc91x on the logicpd pxa270 produces
> >unacceptable interference with the TFT panel, so disable it.  Also
> >delete the lpd270 versions of the SMC_{in,out}[bl]() macros, as they
> >aren't used, since the board only supports 16bit accesses.
> >
> >Signed-off-by: Lennert Buytenhek <buytenh@wantstofly.org>
> >
> >Index: linux-2.6.17-git5/drivers/net/smc91x.h
> 
> ACK, but git-applymbox claims the patch is corrupt

Hmmm, non-quilt style patch better?

==
Enabling PXA DMA for the smc91x on the logicpd pxa270 produces
unacceptable interference with the TFT panel, so disable it.  Also
delete the lpd270 versions of the SMC_{in,out}[bl]() macros, as they
aren't used, since the board only supports 16bit accesses.

Signed-off-by: Lennert Buytenhek <buytenh@wantstofly.org>

--- linux-2.6.17-git10.orig/drivers/net/smc91x.h	2006-06-27 04:05:20.000000000 +0200
+++ linux-2.6.17-git10/drivers/net/smc91x.h	2006-06-27 04:05:47.000000000 +0200
@@ -136,14 +136,9 @@
 #define SMC_CAN_USE_32BIT	0
 #define SMC_IO_SHIFT		0
 #define SMC_NOWAIT		1
-#define SMC_USE_PXA_DMA		1
 
-#define SMC_inb(a, r)		readb((a) + (r))
 #define SMC_inw(a, r)		readw((a) + (r))
-#define SMC_inl(a, r)		readl((a) + (r))
-#define SMC_outb(v, a, r)	writeb(v, (a) + (r))
 #define SMC_outw(v, a, r)	writew(v, (a) + (r))
-#define SMC_outl(v, a, r)	writel(v, (a) + (r))
 #define SMC_insw(a, r, p, l)	readsw((a) + (r), p, l)
 #define SMC_outsw(a, r, p, l)	writesw((a) + (r), p, l)

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] smc91x: disable DMA mode on the logicpd pxa270
  2006-06-27  2:08   ` Lennert Buytenhek
@ 2006-06-27  2:14     ` Lennert Buytenhek
  0 siblings, 0 replies; 4+ messages in thread
From: Lennert Buytenhek @ 2006-06-27  2:14 UTC (permalink / raw)
  To: Jeff Garzik; +Cc: netdev, nico, mikee, peterb

On Tue, Jun 27, 2006 at 04:08:31AM +0200, Lennert Buytenhek wrote:

> Hmmm, non-quilt style patch better?

I might have an idea what's happening -- the last context line in the
patch should have been a blank line, but it's being eaten somewhere in
transit.

> -#define SMC_inb(a, r)		readb((a) + (r))
>  #define SMC_inw(a, r)		readw((a) + (r))
> -#define SMC_inl(a, r)		readl((a) + (r))
> -#define SMC_outb(v, a, r)	writeb(v, (a) + (r))
>  #define SMC_outw(v, a, r)	writew(v, (a) + (r))
> -#define SMC_outl(v, a, r)	writel(v, (a) + (r))
>  #define SMC_insw(a, r, p, l)	readsw((a) + (r), p, l)
>  #define SMC_outsw(a, r, p, l)	writesw((a) + (r), p, l)

<=== there should have been a blank line here

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

Not sure what is causing this.  Can you take it from here?

	http://www.wantstofly.org/~buytenh/smc91-diff-lpd.diff


thanks,
Lennert

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2006-06-27  2:14 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-06-23 21:24 [PATCH] smc91x: disable DMA mode on the logicpd pxa270 Lennert Buytenhek
2006-06-27  2:02 ` Jeff Garzik
2006-06-27  2:08   ` Lennert Buytenhek
2006-06-27  2:14     ` Lennert Buytenhek

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.