All of lore.kernel.org
 help / color / mirror / Atom feed
* [RFC] MMC: Proposals on reworking clock and power management
@ 2010-10-27 13:57 Ghorai, Sukumar
  2010-10-27 14:32 ` Alan Cox
                   ` (2 more replies)
  0 siblings, 3 replies; 18+ messages in thread
From: Ghorai, Sukumar @ 2010-10-27 13:57 UTC (permalink / raw)
  To: Chris Ball, Linus Walleij, Nicolas Pitre, Adrian Hunter,
	"linux-mmc@vger.kernel.org" <linux>
  Cc: Kadiyala, Kishore, Chikkature Rajashekar, Madhusudhan,
	S, Venkatraman

Hi Chris, Linus, Nicolas, Adrian and all,

It has been identified after several discussions [1], [2], that
MMC/SD/SDIO driver need to re-work on clock and power management.
I am trying to list all the design considerations which are part
of this study/discussion are following:
 
1. Remove clock handling APIs currently implemented through claim_host/
   release_host

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". 

   Going in details of different state handlings - Clock disable,
   Card sleep, card power cutoff;
   
   2.a) clock disable: 
     Option-1: can be handled in the host itself using a timer based
               on some idle period, OR
     Option-2: let the core do enabling/ disabling clks based on
               existing enable/ disable provided in the host, OR
     Option-3: with the *existing* API calls, namely the set_ios()
               method as proposed by Linus Walleij  [4]

   2.a) Card sleep, Power cutoff to the card:
     This should be handled in the core where based on block layer
     activity, calling corresponding API's from bus layer:
     mmc_power_save_host/ mmc_power_restore_host 

3. MMC_CAP_DISABLE - should not be a host capability.  This should be
   a core feature that should be _transparent_  to all hosts with no
   changes to any of the host drivers.  

Also it's discussed that different groups need to work together [3].

Few Patches posted by Linus Wallej in July 2009 [4], but they are
not merged yet. They would require some rework.

Therefore would like to know -
a). if the work can be taken forward from where Linus Walleij left.
b). does anyone started working on it and need to do any shearing
    to make bit faster.
c). if anything else also need to take care at re-design.

Regards,
Ghorai

	

[1] [PATCH 11/15] wireless: wl1271: introduce platform device support
    http://www.mail-archive.com/linux-omap@vger.kernel.org/msg31703.html

[2] [RFC RESEND] sdhci-s3c: support clock enable/disable (clock-gating)
    http://www.mail-archive.com/linux-mmc@vger.kernel.org/msg03532.html

[3] http://www.mail-archive.com/linux-mmc@vger.kernel.org/msg03956.html

[4] [PATCH 1/2] MMC Agressive clocking framework v5
    http://www.gossamer-threads.com/lists/linux/kernel/1106880?do=post_view_threaded#1106880



^ permalink raw reply	[flat|nested] 18+ messages in thread

end of thread, other threads:[~2010-10-29 17:00 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-10-27 13:57 [RFC] MMC: Proposals on reworking clock and power management Ghorai, Sukumar
2010-10-27 14:32 ` Alan Cox
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

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.