Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1500205
| From | Ulf Hansson <ulf.hansson@linaro.org> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH 5/6] mmc: rtsx_usb_sdmmc: Enable runtime PM autosuspend |
| Date | 2016-10-13 13:50 +0200 |
| Message-ID | <srMGm-30B-17@gated-at.bofh.it> (permalink) |
| References | <srMwG-2X1-11@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
Enable runtime PM autosuspend for the rtsx_usb_sdmmc driver to avoid the device being runtime suspended and runtime resumed between each request. Let's use a default timeout of 50ms, to be consistent with other mmc hosts. Cc: Ritesh Raj Sarraf <rrs@researchut.com> Cc: Alan Stern <stern@rowland.harvard.edu> Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org> --- drivers/mmc/host/rtsx_usb_sdmmc.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/mmc/host/rtsx_usb_sdmmc.c b/drivers/mmc/host/rtsx_usb_sdmmc.c index 6e9c0f8..dc1abd1 100644 --- a/drivers/mmc/host/rtsx_usb_sdmmc.c +++ b/drivers/mmc/host/rtsx_usb_sdmmc.c @@ -1374,6 +1374,8 @@ static int rtsx_usb_sdmmc_drv_probe(struct platform_device *pdev) mutex_init(&host->host_mutex); rtsx_usb_init_host(host); + pm_runtime_use_autosuspend(&pdev->dev); + pm_runtime_set_autosuspend_delay(&pdev->dev, 50); pm_runtime_enable(&pdev->dev); #ifdef RTSX_USB_USE_LEDS_CLASS @@ -1428,6 +1430,7 @@ static int rtsx_usb_sdmmc_drv_remove(struct platform_device *pdev) mmc_free_host(mmc); pm_runtime_disable(&pdev->dev); + pm_runtime_dont_use_autosuspend(&pdev->dev); platform_set_drvdata(pdev, NULL); dev_dbg(&(pdev->dev), -- 1.9.1
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH 0/6] mmc/memstick: rtsx_usb: Fix runtime PM issues Ulf Hansson <ulf.hansson@linaro.org> - 2016-10-13 13:40 +0200
[PATCH 4/6] memstick: rtsx_usb_ms: Manage runtime PM when accessing the device Ulf Hansson <ulf.hansson@linaro.org> - 2016-10-13 13:40 +0200
[PATCH 1/6] mmc: rtsx_usb_sdmmc: Avoid keeping the device runtime resumed when unused Ulf Hansson <ulf.hansson@linaro.org> - 2016-10-13 13:40 +0200
[PATCH 2/6] mmc: rtsx_usb_sdmmc: Handle runtime PM while changing the led Ulf Hansson <ulf.hansson@linaro.org> - 2016-10-13 13:40 +0200
[PATCH 5/6] mmc: rtsx_usb_sdmmc: Enable runtime PM autosuspend Ulf Hansson <ulf.hansson@linaro.org> - 2016-10-13 13:50 +0200
[PATCH 6/6] mmc: core: Don't power off the card when starting the host Ulf Hansson <ulf.hansson@linaro.org> - 2016-10-13 13:50 +0200
[PATCH 3/6] memstick: rtsx_usb_ms: Runtime resume the device when polling for cards Ulf Hansson <ulf.hansson@linaro.org> - 2016-10-13 13:50 +0200
Re: [PATCH 0/6] mmc/memstick: rtsx_usb: Fix runtime PM issues Ulf Hansson <ulf.hansson@linaro.org> - 2016-10-17 16:00 +0200
Re: [PATCH 0/6] mmc/memstick: rtsx_usb: Fix runtime PM issues Alan Stern <stern@rowland.harvard.edu> - 2016-10-17 18:40 +0200
csiph-web