linux-mips
[Top] [All Lists]

Re: Au1200 MMC/SD problem

To: "Wolfgang Ocker" <weo@reccoware.de>
Subject: Re: Au1200 MMC/SD problem
From: "Jordan Crouse" <jordan.crouse@amd.com>
Date: Tue, 2 May 2006 08:43:14 -0600
Cc: linux-mips@linux-mips.org
In-reply-to: <1146548770.1597.43.camel@seneca.recco.de>
Original-recipient: rfc822;linux-mips@linux-mips.org
References: <1146548770.1597.43.camel@seneca.recco.de>
Sender: linux-mips-bounce@linux-mips.org
User-agent: Mutt/1.5.11
On 02/05/06 07:46 +0200, Wolfgang Ocker wrote:
> Hello,
> 
> I'm trying to get a SD card to work on an Db1200 board. I'm using kernel
> 2.6.16.11 (+ the patch from Jordan Crouse):

Thats not an encouraging sign.

> au1xx(0): DEBUG: set_ios (power=2, clock=450000Hz, vdd=15, mode=2)
> MMC: starting cmd 09 arg e0080000 flags 00000007
> MMC: req done (09): 1: 00000000 00000000 00000000 00000000
> MMC: req done (09): 1: 00000000 00000000 00000000 00000000
> MMC: req done (09): 1: 00000000 00000000 00000000 00000000
> MMC: req done (09): 1: 00000000 00000000 00000000 00000000

Ok - so the reasons for cmd->error to be MMC_ERR_TIMEOUT are:

  * invalid return from dma_map_sg in au1xmmc_prepare_data 
  * general error from the DBDMA engine
  * one of SD_STATUS_RAT sent when the IRQ fires

So to narrow it down - check the return value of au1xmmc_prepare_data
in au1xmmc_request.  Then, see if RAT is ever set in au1xmmc_irq.   This
will help narrow down the problem.  

Also, the usual general questions:
What SD card are you using?  How big is it?  Is it a v1.01 or a v1.1 card?

Jordan


<Prev in Thread] Current Thread [Next in Thread>