Linux MultiMedia Card development
 help / color / mirror / Atom feed
From: Alan Cox <alan@lxorguk.ukuu.org.uk>
To: "Ghorai, Sukumar" <s-ghorai@ti.com>
Cc: Chris Ball <cjb@laptop.org>,
	Linus Walleij <linus.ml.walleij@gmail.com>,
	Nicolas Pitre <nico@fluxnic.net>,
	Adrian Hunter <adrian.hunter@nokia.com>,
	"linux-mmc@vger.kernel.org" <linux-mmc@vger.kernel.org>,
	"Kadiyala, Kishore" <kishore.kadiyala@ti.com>,
	"Chikkature Rajashekar, Madhusudhan" <madhu.cr@ti.com>,
	"S, Venkatraman" <svenkatr@ti.com>
Subject: Re: [RFC] MMC: Proposals on reworking clock and power management
Date: Wed, 27 Oct 2010 15:32:18 +0100	[thread overview]
Message-ID: <20101027153218.04462a45@lxorguk.ukuu.org.uk> (raw)
In-Reply-To: <2A3DCF3DA181AD40BDE86A3150B27B6B0356A579AF@dbde02.ent.ti.com>

> 2. Ideally host-driver driver should not tell the core to shut down
>    the upper layers, instead the core should decide when to
>    "disabled clock or cut the power". 

How will the core know ?

I actually think you are simply perpetuating the mess in the existing MMC
driver where everything is driven by a core which as a result is a twisty
maze of exceptions and flags to say "except for this" "except for that".

The core MMC code only knows when the *core* parts are no longer
requiring power. It shouldn't know about anything deeper and if you are
using the runtime PM layer the runtime PM refcounting can do all your
work.

Alan

  reply	other threads:[~2010-10-27 14:33 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-10-27 13:57 [RFC] MMC: Proposals on reworking clock and power management Ghorai, Sukumar
2010-10-27 14:32 ` Alan Cox [this message]
2010-10-27 15:07   ` Kishore Kadiyala
2010-10-27 15:47   ` Madhusudhan
2010-10-27 15:53     ` Alan Cox
2010-10-27 19:50       ` Nicolas Pitre
2010-10-27 19:57 ` Nicolas Pitre
2010-10-28 15:11   ` Kishore Kadiyala
2010-10-28 15:31     ` Ohad Ben-Cohen
2010-10-28 15:39     ` Kishore Kadiyala
2010-10-28 15:48       ` Ohad Ben-Cohen
2010-10-28 16:13         ` Nicolas Pitre
2010-10-28 16:40           ` Kishore Kadiyala
2010-10-28 20:51             ` Ohad Ben-Cohen
2010-10-29 10:47               ` Roger Quadros
2010-10-29 14:03                 ` Ohad Ben-Cohen
2010-10-29 14:34               ` Kishore Kadiyala
2010-10-29 17:00 ` Linus Walleij

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=20101027153218.04462a45@lxorguk.ukuu.org.uk \
    --to=alan@lxorguk.ukuu.org.uk \
    --cc=adrian.hunter@nokia.com \
    --cc=cjb@laptop.org \
    --cc=kishore.kadiyala@ti.com \
    --cc=linus.ml.walleij@gmail.com \
    --cc=linux-mmc@vger.kernel.org \
    --cc=madhu.cr@ti.com \
    --cc=nico@fluxnic.net \
    --cc=s-ghorai@ti.com \
    --cc=svenkatr@ti.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox