Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

mmc: rtsx_usb_sdmmc: Enable runtime PM autosuspend

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>

+3
+3
drivers/mmc/host/rtsx_usb_sdmmc.c
··· 1374 1374 1375 1375 mutex_init(&host->host_mutex); 1376 1376 rtsx_usb_init_host(host); 1377 + pm_runtime_use_autosuspend(&pdev->dev); 1378 + pm_runtime_set_autosuspend_delay(&pdev->dev, 50); 1377 1379 pm_runtime_enable(&pdev->dev); 1378 1380 1379 1381 #ifdef RTSX_USB_USE_LEDS_CLASS ··· 1430 1428 1431 1429 mmc_free_host(mmc); 1432 1430 pm_runtime_disable(&pdev->dev); 1431 + pm_runtime_dont_use_autosuspend(&pdev->dev); 1433 1432 platform_set_drvdata(pdev, NULL); 1434 1433 1435 1434 dev_dbg(&(pdev->dev),