public inbox for linux-mmc@vger.kernel.org
 help / color / mirror / Atom feed
* questions about runtime pm
@ 2015-12-22 13:24 Ludovic Desroches
  2016-01-15 15:01 ` Ludovic Desroches
  0 siblings, 1 reply; 3+ messages in thread
From: Ludovic Desroches @ 2015-12-22 13:24 UTC (permalink / raw)
  To: linux-mmc, ulf.hansson; +Cc: Ludovic Desroches

Hi guys,

I have recently added PM support for my driver but I don't have the
behavior I was expecting. I am wondering if I didn't do something wrong.

I have implemented runtime_suspend in a very simple way, I call
sdhci_runtime_suspend_host() and I disable the clocks. It works pretty
well with the eMMC which is non removable but with a SD card... If I
have my SD card present on boot time, it is detected but
insertion/removal is not detected.

Having a look to sdhci_runtime_suspend_host() internal, all the
interruptions are disabled expecting the card interrupt if it has been
set earlier.

>From my understanding, it means that if there is no activity on sdhci,
we will go to suspend and then we could wake up only on a software event
(or a sdio interrupt). How to manage card insertion/removal in this
case? My problem is so huge, I have probably missed something...

Moreover, to avoid system PM, I have used pm_runtime_force_suspend but I
could not wake up on card insertion/removal too. Do I have to use system
PM if I want to manage this case?

Thanks for your advices.

Regards

Ludovic

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

end of thread, other threads:[~2016-01-18  2:35 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-12-22 13:24 questions about runtime pm Ludovic Desroches
2016-01-15 15:01 ` Ludovic Desroches
2016-01-18  2:35   ` Jaehoon Chung

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox