public inbox for linux-arm-kernel@lists.infradead.org
 help / color / mirror / Atom feed
* [PATCH v2 0/8] mmc: sunxi: Add runtime PM support
@ 2018-03-08 14:52 Maxime Ripard
  2018-03-08 14:52 ` [PATCH v2 1/8] mmc: sunxi: Reorder the headers Maxime Ripard
                   ` (7 more replies)
  0 siblings, 8 replies; 19+ messages in thread
From: Maxime Ripard @ 2018-03-08 14:52 UTC (permalink / raw)
  To: linux-arm-kernel

Hi,

Since it's introduction, our MMC controller has had its external clocks
running all the time.

While that was working great, the power usage and most importantly the EMI
that it generated was pretty bad.

Let's implement some runtime_pm hooks with an autosuspend to shut down the
whole block when the MMC is not active.

However, some SDIO devices will not probe properly if we keep shutting down
the controller, so the autosuspend is disabled for the SDIO devices.

Let me know what you think,
Maxime

Changes from v1:
  - Disable entirely the controller
  - Made sure the driver would work with CONFIG_PM off
  - Fixed an issue with the SDIO devices
  - Rebased on top of 4.16

Maxime Ripard (8):
  mmc: sunxi: Reorder the headers
  mmc: sunxi: Move the power off action in a separate function
  mmc: sunxi: Move the power on action in a separate function
  mmc: sunxi: Move the power up action in a separate function
  mmc: sunxi: Move resources management to separate functions
  mmc: sunxi: Move the reset deassertion before enabling the clocks
  mmc: sunxi: Set our device drvdata earlier
  mmc: sunxi: Add runtime_pm support

 drivers/mmc/host/sunxi-mmc.c | 346 ++++++++++++++++++++++--------------
 1 file changed, 216 insertions(+), 130 deletions(-)

base-commit: 661e50bc853209e41a5c14a290ca4decc43cbfd1
-- 
git-series 0.9.1

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

end of thread, other threads:[~2018-03-19 13:41 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-03-08 14:52 [PATCH v2 0/8] mmc: sunxi: Add runtime PM support Maxime Ripard
2018-03-08 14:52 ` [PATCH v2 1/8] mmc: sunxi: Reorder the headers Maxime Ripard
2018-03-08 14:52 ` [PATCH v2 2/8] mmc: sunxi: Move the power off action in a separate function Maxime Ripard
2018-03-15  9:23   ` Ulf Hansson
2018-03-08 14:52 ` [PATCH v2 3/8] mmc: sunxi: Move the power on " Maxime Ripard
2018-03-08 14:52 ` [PATCH v2 4/8] mmc: sunxi: Move the power up " Maxime Ripard
2018-03-08 14:52 ` [PATCH v2 5/8] mmc: sunxi: Move resources management to separate functions Maxime Ripard
2018-03-15 10:24   ` Ulf Hansson
2018-03-08 14:52 ` [PATCH v2 6/8] mmc: sunxi: Move the reset deassertion before enabling the clocks Maxime Ripard
2018-03-15 10:24   ` Ulf Hansson
2018-03-08 14:52 ` [PATCH v2 7/8] mmc: sunxi: Set our device drvdata earlier Maxime Ripard
2018-03-15 10:24   ` Ulf Hansson
2018-03-08 14:52 ` [PATCH v2 8/8] mmc: sunxi: Add runtime_pm support Maxime Ripard
2018-03-15  9:30   ` Ulf Hansson
2018-03-15 10:04     ` Maxime Ripard
2018-03-15 10:24       ` Ulf Hansson
2018-03-15 12:04         ` Maxime Ripard
2018-03-15 12:40           ` Ulf Hansson
2018-03-19 13:41             ` Maxime Ripard

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