The struct rtsx_cr_option.dev_aspm_mode member is never set to anything other than DEV_ASPM_DYNAMIC (0). Remove it and code that tests it. No functional change intended.
Showing the changes to include/linux (1 of 5 files). Show all
Unified · Split
| @@ -1104,13 +1104,6 @@ enum PDEV_STAT {PDEV_STAT_IDLE, PDEV_STAT_RUN}; · 1103 unmodified lines | |||
| 1104 | #define L1_SNOOZE_TEST_EN BIT(5) | 1104 | #define L1_SNOOZE_TEST_EN BIT(5) |
| 1105 | #define LTR_L1SS_PWR_GATE_CHECK_CARD_EN BIT(6) | 1105 | #define LTR_L1SS_PWR_GATE_CHECK_CARD_EN BIT(6) |
| 1106 | 1106 | ||
| 1107 | enum dev_aspm_mode { | ||
| 1108 | DEV_ASPM_DYNAMIC, | ||
| 1109 | DEV_ASPM_BACKDOOR, | ||
| 1110 | DEV_ASPM_STATIC, | ||
| 1111 | DEV_ASPM_DISABLE, | ||
| 1112 | }; | ||
| 1113 | |||
| 1114 | /* | 1107 | /* |
| 1115 | * struct rtsx_cr_option - card reader option | 1108 | * struct rtsx_cr_option - card reader option |
| 1116 | * @dev_flags: device flags | 1109 | * @dev_flags: device flags |
| @@ -1121,7 +1114,6 @@ enum dev_aspm_mode { · 4 unmodified lines | |||
| 1121 | * @ltr_active_latency: ltr mode active latency | 1114 | * @ltr_active_latency: ltr mode active latency |
| 1122 | * @ltr_idle_latency: ltr mode idle latency | 1115 | * @ltr_idle_latency: ltr mode idle latency |
| 1123 | * @ltr_l1off_latency: ltr mode l1off latency | 1116 | * @ltr_l1off_latency: ltr mode l1off latency |
| 1124 | * @dev_aspm_mode: device aspm mode | ||
| 1125 | * @l1_snooze_delay: l1 snooze delay | 1117 | * @l1_snooze_delay: l1 snooze delay |
| 1126 | * @ltr_l1off_sspwrgate: ltr l1off sspwrgate | 1118 | * @ltr_l1off_sspwrgate: ltr l1off sspwrgate |
| 1127 | * @ltr_l1off_snooze_sspwrgate: ltr l1off snooze sspwrgate | 1119 | * @ltr_l1off_snooze_sspwrgate: ltr l1off snooze sspwrgate |
| @@ -1138,7 +1130,6 @@ struct rtsx_cr_option { · 10 unmodified lines | |||
| 1138 | u32 ltr_active_latency; | 1130 | u32 ltr_active_latency; |
| 1139 | u32 ltr_idle_latency; | 1131 | u32 ltr_idle_latency; |
| 1140 | u32 ltr_l1off_latency; | 1132 | u32 ltr_l1off_latency; |
| 1141 | enum dev_aspm_mode dev_aspm_mode; | ||
| 1142 | u32 l1_snooze_delay; | 1133 | u32 l1_snooze_delay; |
| 1143 | u8 ltr_l1off_sspwrgate; | 1134 | u8 ltr_l1off_sspwrgate; |
| 1144 | u8 ltr_l1off_snooze_sspwrgate; | 1135 | u8 ltr_l1off_snooze_sspwrgate; |