diff options
author | Ricky Wu <ricky_wu@realtek.com> | 2020-12-02 14:58:57 +0800 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2020-12-09 19:42:18 +0100 |
commit | 5b4258f6721f41b092c63f6ee71be76e9616718b (patch) | |
tree | d03baa1087a1555f7716c288ec1e3012cf12da11 /include/linux/rtsx_pci.h | |
parent | 121e9c6b5c4cad63e078f1fc5890f265521d2994 (diff) | |
download | linux-5b4258f6721f41b092c63f6ee71be76e9616718b.tar.gz linux-5b4258f6721f41b092c63f6ee71be76e9616718b.tar.bz2 linux-5b4258f6721f41b092c63f6ee71be76e9616718b.zip |
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>
Diffstat (limited to 'include/linux/rtsx_pci.h')
-rw-r--r-- | include/linux/rtsx_pci.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/rtsx_pci.h b/include/linux/rtsx_pci.h index 745f5e73f99a..f895ccabbe29 100644 --- a/include/linux/rtsx_pci.h +++ b/include/linux/rtsx_pci.h @@ -1174,6 +1174,7 @@ struct rtsx_pcr { struct delayed_work carddet_work; struct delayed_work idle_work; + struct delayed_work rtd3_work; spinlock_t lock; struct mutex pcr_mutex; @@ -1183,6 +1184,7 @@ struct rtsx_pcr { unsigned int cur_clock; bool remove_pci; bool msi_en; + bool is_runtime_suspended; #define EXTRA_CAPS_SD_SDR50 (1 << 0) #define EXTRA_CAPS_SD_SDR104 (1 << 1) |