mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Pierre Ossman <drzeus-list@drzeus.cx>
To: Haavard Skinnemoen <haavard.skinnemoen@atmel.com>
Cc: kernel@avr32linux.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH 3/4] atmel-mci: support multiple mmc slots
Date: Thu, 2 Oct 2008 10:31:37 +0200	[thread overview]
Message-ID: <20081002103137.57f5a9ad@mjolnir.drzeus.cx> (raw)
In-Reply-To: <20080925155149.173dde16@hskinnemo-gx745.norway.atmel.com>

[-- Attachment #1: Type: text/plain, Size: 1751 bytes --]

On Thu, 25 Sep 2008 15:51:49 +0200
Haavard Skinnemoen <haavard.skinnemoen@atmel.com> wrote:

> Pierre Ossman <drzeus-list@drzeus.cx> wrote:
> > On Wed, 24 Sep 2008 16:35:27 +0200
> > Haavard Skinnemoen <haavard.skinnemoen@atmel.com> wrote:
> > 
> > Remember to deal with the case of a powered but unclocked card. This
> > will primarily happen during card init, but it could should up later as
> > well if we start implementing aggressive power management.
> 
> Ok, but how _do_ I deal with that? If the clock is turned off due to
> power management, it should be safe to leave it running at the same
> rate. But how about initialization? Should I stall the queue until the
> newly-powered card gets a clock rate?
> 

Yes, I don't see any other safe way of handling it.

> Btw, I just noticed that other thread about pxamci clock management.
> Will it cause problems if the clock stops briefly from time to time?
> Currently, the controller stops the clock if the FIFO gets full/empty
> during transfer -- this is configurable, but I'd much rather let the
> clock stop than risk FIFO overruns/underruns...

Hopefully not. :)

The spec gives no other means of flow control than messing with the
clock. But as has been noted, some cards get a bit freaky if we leave
them without a clock for too long, so care should be taken to try to
minimise the time it is stopped.

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.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 197 bytes --]

  reply	other threads:[~2008-10-02  8:31 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-09-22 16:38 [PATCH 0/4] atmel-mci: updates for 2.6.28 Haavard Skinnemoen
2008-09-22 16:38 ` [PATCH 1/4] atmel-mci: Implement tasklet as a state machine Haavard Skinnemoen
2008-09-22 16:38   ` [PATCH 2/4] atmel-mci: Platform code for supporting multiple mmc slots Haavard Skinnemoen
2008-09-22 16:38     ` [PATCH 3/4] atmel-mci: support " Haavard Skinnemoen
2008-09-22 16:38       ` [PATCH 4/4] atmel-mci: Add experimental DMA support Haavard Skinnemoen
2008-09-23 17:53       ` [PATCH 3/4] atmel-mci: support multiple mmc slots Pierre Ossman
2008-09-23 18:16         ` Haavard Skinnemoen
2008-09-23 19:12           ` Pierre Ossman
2008-09-24 14:35             ` Haavard Skinnemoen
2008-09-25  7:05               ` Pierre Ossman
2008-09-25 13:51                 ` Haavard Skinnemoen
2008-10-02  8:31                   ` Pierre Ossman [this message]
2008-09-23 17:40     ` [PATCH 2/4] atmel-mci: Platform code for supporting " Pierre Ossman
2008-09-23 18:02       ` Haavard Skinnemoen

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=20081002103137.57f5a9ad@mjolnir.drzeus.cx \
    --to=drzeus-list@drzeus.cx \
    --cc=haavard.skinnemoen@atmel.com \
    --cc=kernel@avr32linux.org \
    --cc=linux-kernel@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

all inboxes | Powered by JetHome®