mirror of
https://gitee.com/bianbu-linux/linux-6.6
synced 2025-04-24 14:07:52 -04:00
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>
This commit is contained in:
parent
121e9c6b5c
commit
5b4258f672
5 changed files with 145 additions and 6 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue