public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* s3cmci: fix s3c2410_dma_config() arguments.
@ 2009-03-10 23:15 Ben Dooks
  0 siblings, 0 replies; 4+ messages in thread
From: Ben Dooks @ 2009-03-10 23:15 UTC (permalink / raw)
  To: linux-kernel, drzeus-mmc

[-- Attachment #1: dma/dma-fix-s3cmci-dma-config.patch --]
[-- Type: text/plain, Size: 1086 bytes --]

From: Ben Dooks <ben@simtec.co.uk>

The s3cmci driver is calling s3c2410_dma_config with incorrect data
for the DCON register. The S3C2410_DCON_HWTRIG is implicit in the
channel configuration and the device selection of S3C2410_DCON_CH0_SDI
is incorrect as the DMA system may not select channel 0.

Signed-off-by: Ben Dooks <ben@simtec.co.uk>

Index: linux.git/drivers/mmc/host/s3cmci.c
===================================================================
--- linux.git.orig/drivers/mmc/host/s3cmci.c	2009-01-20 09:07:50.000000000 +0000
+++ linux.git/drivers/mmc/host/s3cmci.c	2009-01-20 09:08:11.000000000 +0000
@@ -793,8 +793,7 @@ static void s3cmci_dma_setup(struct s3cm
 			      host->mem->start + host->sdidata);
 
 	if (!setup_ok) {
-		s3c2410_dma_config(host->dma, 4,
-			(S3C2410_DCON_HWTRIG | S3C2410_DCON_CH0_SDI));
+		s3c2410_dma_config(host->dma, 4, 0);
 		s3c2410_dma_set_buffdone_fn(host->dma,
 					    s3cmci_dma_done_callback);
 		s3c2410_dma_setflags(host->dma, S3C2410_DMAF_AUTOSTART);

-- 
Ben (ben@fluff.org, http://www.fluff.org/)

  'a smiley only costs 4 bytes'

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

* s3cmci: fix s3c2410_dma_config() arguments.
@ 2009-03-10 23:57 Ben Dooks
  2009-03-11 20:39 ` Andrew Morton
  0 siblings, 1 reply; 4+ messages in thread
From: Ben Dooks @ 2009-03-10 23:57 UTC (permalink / raw)
  To: linux-kernel, drzeus-mmc

[-- Attachment #1: dma/dma-fix-s3cmci-dma-config.patch --]
[-- Type: text/plain, Size: 1086 bytes --]

From: Ben Dooks <ben@simtec.co.uk>

The s3cmci driver is calling s3c2410_dma_config with incorrect data
for the DCON register. The S3C2410_DCON_HWTRIG is implicit in the
channel configuration and the device selection of S3C2410_DCON_CH0_SDI
is incorrect as the DMA system may not select channel 0.

Signed-off-by: Ben Dooks <ben@simtec.co.uk>

Index: linux.git/drivers/mmc/host/s3cmci.c
===================================================================
--- linux.git.orig/drivers/mmc/host/s3cmci.c	2009-01-20 09:07:50.000000000 +0000
+++ linux.git/drivers/mmc/host/s3cmci.c	2009-01-20 09:08:11.000000000 +0000
@@ -793,8 +793,7 @@ static void s3cmci_dma_setup(struct s3cm
 			      host->mem->start + host->sdidata);
 
 	if (!setup_ok) {
-		s3c2410_dma_config(host->dma, 4,
-			(S3C2410_DCON_HWTRIG | S3C2410_DCON_CH0_SDI));
+		s3c2410_dma_config(host->dma, 4, 0);
 		s3c2410_dma_set_buffdone_fn(host->dma,
 					    s3cmci_dma_done_callback);
 		s3c2410_dma_setflags(host->dma, S3C2410_DMAF_AUTOSTART);

-- 
Ben (ben@fluff.org, http://www.fluff.org/)

  'a smiley only costs 4 bytes'

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

* Re: s3cmci: fix s3c2410_dma_config() arguments.
  2009-03-10 23:57 s3cmci: fix s3c2410_dma_config() arguments Ben Dooks
@ 2009-03-11 20:39 ` Andrew Morton
  2009-03-11 21:25   ` Pierre Ossman
  0 siblings, 1 reply; 4+ messages in thread
From: Andrew Morton @ 2009-03-11 20:39 UTC (permalink / raw)
  To: Ben Dooks; +Cc: linux-kernel, drzeus-mmc

On Tue, 10 Mar 2009 23:57:11 +0000
Ben Dooks <ben@simtec.co.uk> wrote:

> From: Ben Dooks <ben@simtec.co.uk>
> 
> The s3cmci driver is calling s3c2410_dma_config with incorrect data
> for the DCON register. The S3C2410_DCON_HWTRIG is implicit in the
> channel configuration and the device selection of S3C2410_DCON_CH0_SDI
> is incorrect as the DMA system may not select channel 0.
> 
> Signed-off-by: Ben Dooks <ben@simtec.co.uk>
> 
> Index: linux.git/drivers/mmc/host/s3cmci.c
> ===================================================================
> --- linux.git.orig/drivers/mmc/host/s3cmci.c	2009-01-20 09:07:50.000000000 +0000
> +++ linux.git/drivers/mmc/host/s3cmci.c	2009-01-20 09:08:11.000000000 +0000
> @@ -793,8 +793,7 @@ static void s3cmci_dma_setup(struct s3cm
>  			      host->mem->start + host->sdidata);
>  
>  	if (!setup_ok) {
> -		s3c2410_dma_config(host->dma, 4,
> -			(S3C2410_DCON_HWTRIG | S3C2410_DCON_CH0_SDI));
> +		s3c2410_dma_config(host->dma, 4, 0);
>  		s3c2410_dma_set_buffdone_fn(host->dma,
>  					    s3cmci_dma_done_callback);
>  		s3c2410_dma_setflags(host->dma, S3C2410_DMAF_AUTOSTART);
> 

This looks like 2.6.29 material?

mmc-in-mmc_power_up-use-previously-selected-ocr-if-available.patch also
looks like 2.6.29 material to me, but Pierre isn't answering the phone.

I'll scoot both these into Linus tomorrowish unless told otherwise.

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

* Re: s3cmci: fix s3c2410_dma_config() arguments.
  2009-03-11 20:39 ` Andrew Morton
@ 2009-03-11 21:25   ` Pierre Ossman
  0 siblings, 0 replies; 4+ messages in thread
From: Pierre Ossman @ 2009-03-11 21:25 UTC (permalink / raw)
  To: Andrew Morton; +Cc: Ben Dooks, linux-kernel

On Wed, 11 Mar 2009 13:39:46 -0700
Andrew Morton <akpm@linux-foundation.org> wrote:

> 
> This looks like 2.6.29 material?
> 
> mmc-in-mmc_power_up-use-previously-selected-ocr-if-available.patch also
> looks like 2.6.29 material to me, but Pierre isn't answering the phone.
> 

Sorry, it got lost in the noise. That patch isn't critical. It has been
working fine so far, so the only problem seems to be a bit of waster
energy.

> I'll scoot both these into Linus tomorrowish unless told otherwise.

Feel free to push this patch though. :)

Acked-by: Pierre Ossman <drzeus@drzeus.cx>

Rgds
-- 
     -- Pierre Ossman

  Linux kernel, MMC maintainer        http://www.kernel.org
  rdesktop, core developer          http://www.rdesktop.org

  WARNING: This correspondence is being monitored by the
  Swedish government. Make sure your server uses encryption
  for SMTP traffic and consider using PGP for end-to-end
  encryption.

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

end of thread, other threads:[~2009-03-11 21:26 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-03-10 23:57 s3cmci: fix s3c2410_dma_config() arguments Ben Dooks
2009-03-11 20:39 ` Andrew Morton
2009-03-11 21:25   ` Pierre Ossman
  -- strict thread matches above, loose matches on Subject: below --
2009-03-10 23:15 Ben Dooks

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox