All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Joe Woodward" <jw@terrafix.co.uk>
To: Ohad Ben-Cohen <ohad@wizery.com>
Cc: Daniel Drake <dsd@laptop.org>,
	linux-mmc@vger.kernel.org, Chris Ball <cjb@laptop.org>
Subject: Re: mmc: sdio: runtime PM and 8686 problems
Date: Thu, 01 Dec 2011 11:29:05 +0000	[thread overview]
Message-ID: <WC20111201112905.8702EB@terrafix.co.uk> (raw)

I've had a play with the nRESET line (as far as I can tell it is the only pin I have access to), and no joy.

Also tried playing about a bit with the CMD sequence, again no joy.

I'm not entirely sure of the CMD sequence. It seems we get:
  - CMD52 (x2)
  - CMD0
  - CMD8 (fails)
  - CMD5 (fails)

In the "SDIO Simplified Specification Version 2.00" (https://www.sdcard.org/developers/overview/sdio/sdio_spec/Simplified_SDIO_Card_Spec.pdf) page 6 it seems only a CMD52 should be required to "Re-init IO". Previous thread posts state CMD5 (x2) are required by the 8686, but why CMD0/CMD8?

Incidentally errors only occur after the CMD0, but before the first error we get (i.e. a change of cs from 1 to 0):
"mmc1: clock 400000Hz busmode 2 powermode 2 cs 0 Vdd 20 width 0 timing 0".

Any thoughts?

I think we've probably hit the end of the line here, unless someone else pops up who knows more about the Gumstix (i.e. has access to a schematic) or the W2CBW003 and it's SD8686 internals.

Thanks for the help anyway chaps!

Cheers,
Joe


-----Original Message-----
From: Ohad Ben-Cohen <ohad@wizery.com>
To: Joe Woodward <jw@terrafix.co.uk>
Cc: Daniel Drake <dsd@laptop.org>, linux-mmc@vger.kernel.org, Chris Ball <cjb@laptop.org>
Date: Thu, 1 Dec 2011 10:07:24 +0200
Subject: Re: mmc: sdio: runtime PM and 8686 problems

> On Wed, Nov 30, 2011 at 5:00 PM, Joe Woodward <jw@terrafix.co.uk>
> wrote:
> > It seems CMD5 fails (which seems to be what the workarounds were
> aiming to fix).
> 
> Right; you get a timeout (-110), which means the 8686 didn't send any
> response.
> 
> This is unexpected because the sdio reset (the CMD52 you see before
> the init sequence) should be enough to reset the device (we confirmed
> this with the Marvell folks on this list awhile ago).
> 
> > I'm afraid I may not be of much more use as Gumstix (annoyingly)
> don't release schematics of their COMs, so actually probing any signals
> isn't really possible.
> 
> Yes, it makes it difficult to debug.
> 
> You can try to verify (in the code) that all the text book
> prerequisites are there (e.g. all SDIO lines are pulled up and muxed
> correctly. though since stuff work for you without SDIO runtime PM, I
> assume these are ok), and maybe even play a bit with stuff like
> delays, sdio resets and power cycles and see if things change. If you
> have access to the other inputs of the 8686 (it has several of them
> which are related to power and resets. Neither me nor Daniel have
> intimate knowledge about what any of those really do, but you could
> dig some info from emails send by Marvell folks on this list), then
> you can also try to play with them and see if things change. With
> luck, you could learn more about the problem and can hopefully get
> closer to finding a solution.
> 
> It could be great if a solution will be found, but if not, we'll
> probably have to proceed with the revert...
> 
> Good luck!
> Ohad.
> --
> To unsubscribe from this list: send the line "unsubscribe linux-mmc" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html



             reply	other threads:[~2011-12-01 11:30 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-12-01 11:29 Joe Woodward [this message]
  -- strict thread matches above, loose matches on Subject: below --
2011-12-01 11:29 mmc: sdio: runtime PM and 8686 problems Joe Woodward
2011-11-18  8:53 Joe Woodward
2011-11-18  9:06 ` Ohad Ben-Cohen
2011-11-18 10:00   ` Joe Woodward
2011-11-18 12:15     ` Ohad Ben-Cohen
2011-11-29 11:17       ` Joe Woodward
2011-11-29 12:43         ` Ohad Ben-Cohen
2011-11-29 21:42           ` Daniel Drake
2011-11-30 10:36             ` Ohad Ben-Cohen
2011-11-30 14:12               ` Daniel Drake
2011-11-30 14:29                 ` Ohad Ben-Cohen
2011-11-30 14:57                   ` Daniel Drake
2011-12-01  7:50                     ` Ohad Ben-Cohen
2011-11-30 15:00                   ` Joe Woodward
2011-12-01  8:07                     ` Ohad Ben-Cohen
2011-12-01 11:28                       ` Joe Woodward
2011-12-03 16:44                         ` Daniel Drake
2011-12-03 16:45                           ` Daniel Drake
2011-12-07 12:28                           ` Joe Woodward
2011-12-19  9:10                   ` Ohad Ben-Cohen
2011-12-19  9:22                     ` Ohad Ben-Cohen
2012-04-26 23:51                     ` Steve Sakoman
2012-04-27  8:26                       ` Joe Woodward
2012-04-28  9:51                       ` NeilBrown
2011-11-11  7:26 [PATCH 2/2] mmc: core: Support packed command for eMMC4.5 device Seungwon Jeon
2011-11-11  9:38 ` S, Venkatraman
2011-11-11 19:01   ` merez
2011-11-14  9:46     ` Seungwon Jeon
2011-11-15 12:48       ` merez
2011-11-17  2:02         ` Seungwon Jeon
2011-11-17  9:16           ` mmc: sdio: runtime PM and 8686 problems Joe Woodward

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=WC20111201112905.8702EB@terrafix.co.uk \
    --to=jw@terrafix.co.uk \
    --cc=cjb@laptop.org \
    --cc=dsd@laptop.org \
    --cc=linux-mmc@vger.kernel.org \
    --cc=ohad@wizery.com \
    /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 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.