From: Mike Borsuk <mike@borsuk.org>
To: linux-mmc@vger.kernel.org
Subject: mmc-spi on pxa2xx, flipping sph bit
Date: Mon, 9 Nov 2009 14:16:43 -0500 [thread overview]
Message-ID: <20091109191643.GA22840@mixtec.wiredsoul.org> (raw)
Hello,
I am working on getting mmc_spi to work with a an ARM PXA270 on 2.6.31
I am able to successfully mount the fs on a Transcend mini-sd card
(though some i/o errors are reported during init sequence),
but some cards such as SanDisk Ultra II MiniSD 2GB fail to initialize.
The card is identified but then every command sent to it appears to
return an error. The block driver reports errors such as:
mmcblk0: error -38 sending status command
mmcblk0: error -84 sending stop command, response 0x8, card status 0xff04
mmcblk0: error -38 sending status command
mmcblk0: error -38 sending read/write command, response 0x4, card \
status 0xff04 end_request: I/O error, dev mmcblk0, sector 3969984
Interestingly, if I toggle the value for the SPH bit in the SSCR1
register, which should control the SSP port's clock phase, the SanDisk
card starts working but the Transcend card then fails to even be
detected.
Does anyone know if this indicates timing issues on the board, chip
configuration problems or anything else in particular?
--
Michael Borsuk
mike@borsuk.org
http://www.borsuk.org
reply other threads:[~2009-11-09 19:26 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20091109191643.GA22840@mixtec.wiredsoul.org \
--to=mike@borsuk.org \
--cc=linux-mmc@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox