misc: rtsx: rts5249 support runtime PM
authorRicky Wu <ricky_wu@realtek.com>
Wed, 2 Dec 2020 06:58:57 +0000 (14:58 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 9 Dec 2020 18:42:18 +0000 (19:42 +0100)
commit5b4258f6721f41b092c63f6ee71be76e9616718b
treed03baa1087a1555f7716c288ec1e3012cf12da11
parent121e9c6b5c4cad63e078f1fc5890f265521d2994
misc: rtsx: rts5249 support runtime PM

rtsx_pcr:
add callback functions to support runtime PM
add delay_work to put device to D3 after idle
over 10 sec

rts5249:
add extra init flow for rtd3 and set rtd3_en from
config setting

rtsx_pci_sdmmc:
child device support autosuspend

Signed-off-by: Ricky Wu <ricky_wu@realtek.com>
Link: https://lore.kernel.org/r/20201202065857.19412-1-ricky_wu@realtek.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/misc/cardreader/rts5249.c
drivers/misc/cardreader/rtsx_pcr.c
drivers/misc/cardreader/rtsx_pcr.h
drivers/mmc/host/rtsx_pci_sdmmc.c
include/linux/rtsx_pci.h