Commit fc8bb91
Felipe Balbi
usb: dwc3: implement runtime PM
this patch implements the most basic pm_runtime
support for dwc3. Whenever USB cable is dettached,
then we will allow core to runtime_suspend.
Runtime suspending will involve completely tearing
down event buffers and require a full soft-reset of
the IP.
Note that a further optimization could be
implemented once we decide to support hibernation,
which is to allow runtime_suspend with cable
connected when bus is in U3. That's subject to a
separate patch, however.
Tested-by: Baolin Wang <baolin.wang@linaro.org>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>1 parent 4cb4221 commit fc8bb91
3 files changed
+174
-15
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
51 | | - | |
| 51 | + | |
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
| |||
996 | 996 | | |
997 | 997 | | |
998 | 998 | | |
| 999 | + | |
| 1000 | + | |
| 1001 | + | |
999 | 1002 | | |
1000 | 1003 | | |
1001 | 1004 | | |
| |||
1057 | 1060 | | |
1058 | 1061 | | |
1059 | 1062 | | |
1060 | | - | |
| 1063 | + | |
1061 | 1064 | | |
1062 | 1065 | | |
1063 | 1066 | | |
| |||
1087 | 1090 | | |
1088 | 1091 | | |
1089 | 1092 | | |
| 1093 | + | |
1090 | 1094 | | |
1091 | 1095 | | |
1092 | 1096 | | |
| |||
1100 | 1104 | | |
1101 | 1105 | | |
1102 | 1106 | | |
1103 | | - | |
1104 | | - | |
1105 | | - | |
1106 | 1107 | | |
| 1108 | + | |
1107 | 1109 | | |
1108 | 1110 | | |
| 1111 | + | |
| 1112 | + | |
| 1113 | + | |
1109 | 1114 | | |
1110 | 1115 | | |
1111 | 1116 | | |
1112 | | - | |
1113 | | - | |
| 1117 | + | |
| 1118 | + | |
1114 | 1119 | | |
1115 | | - | |
| 1120 | + | |
1116 | 1121 | | |
1117 | 1122 | | |
1118 | 1123 | | |
1119 | 1124 | | |
| 1125 | + | |
1120 | 1126 | | |
| 1127 | + | |
1121 | 1128 | | |
1122 | 1129 | | |
1123 | 1130 | | |
| |||
1127 | 1134 | | |
1128 | 1135 | | |
1129 | 1136 | | |
1130 | | - | |
1131 | | - | |
1132 | 1137 | | |
1133 | 1138 | | |
1134 | 1139 | | |
1135 | | - | |
| 1140 | + | |
1136 | 1141 | | |
1137 | | - | |
| 1142 | + | |
1138 | 1143 | | |
1139 | 1144 | | |
1140 | | - | |
1141 | | - | |
1142 | 1145 | | |
1143 | 1146 | | |
1144 | 1147 | | |
1145 | 1148 | | |
1146 | 1149 | | |
1147 | 1150 | | |
1148 | 1151 | | |
| 1152 | + | |
1149 | 1153 | | |
| 1154 | + | |
1150 | 1155 | | |
1151 | 1156 | | |
1152 | 1157 | | |
1153 | 1158 | | |
1154 | 1159 | | |
1155 | 1160 | | |
1156 | 1161 | | |
| 1162 | + | |
| 1163 | + | |
| 1164 | + | |
| 1165 | + | |
| 1166 | + | |
| 1167 | + | |
| 1168 | + | |
| 1169 | + | |
| 1170 | + | |
| 1171 | + | |
| 1172 | + | |
| 1173 | + | |
| 1174 | + | |
| 1175 | + | |
| 1176 | + | |
| 1177 | + | |
| 1178 | + | |
| 1179 | + | |
| 1180 | + | |
| 1181 | + | |
| 1182 | + | |
| 1183 | + | |
| 1184 | + | |
| 1185 | + | |
| 1186 | + | |
| 1187 | + | |
| 1188 | + | |
| 1189 | + | |
| 1190 | + | |
| 1191 | + | |
| 1192 | + | |
| 1193 | + | |
| 1194 | + | |
| 1195 | + | |
| 1196 | + | |
| 1197 | + | |
| 1198 | + | |
| 1199 | + | |
| 1200 | + | |
| 1201 | + | |
| 1202 | + | |
| 1203 | + | |
| 1204 | + | |
| 1205 | + | |
| 1206 | + | |
| 1207 | + | |
| 1208 | + | |
| 1209 | + | |
| 1210 | + | |
| 1211 | + | |
| 1212 | + | |
| 1213 | + | |
| 1214 | + | |
| 1215 | + | |
| 1216 | + | |
| 1217 | + | |
| 1218 | + | |
| 1219 | + | |
| 1220 | + | |
| 1221 | + | |
| 1222 | + | |
| 1223 | + | |
| 1224 | + | |
| 1225 | + | |
| 1226 | + | |
| 1227 | + | |
| 1228 | + | |
| 1229 | + | |
| 1230 | + | |
| 1231 | + | |
| 1232 | + | |
| 1233 | + | |
| 1234 | + | |
| 1235 | + | |
| 1236 | + | |
| 1237 | + | |
| 1238 | + | |
| 1239 | + | |
| 1240 | + | |
| 1241 | + | |
| 1242 | + | |
| 1243 | + | |
| 1244 | + | |
| 1245 | + | |
| 1246 | + | |
| 1247 | + | |
| 1248 | + | |
| 1249 | + | |
| 1250 | + | |
| 1251 | + | |
| 1252 | + | |
| 1253 | + | |
| 1254 | + | |
| 1255 | + | |
| 1256 | + | |
| 1257 | + | |
| 1258 | + | |
| 1259 | + | |
| 1260 | + | |
| 1261 | + | |
| 1262 | + | |
| 1263 | + | |
| 1264 | + | |
| 1265 | + | |
| 1266 | + | |
| 1267 | + | |
| 1268 | + | |
| 1269 | + | |
| 1270 | + | |
| 1271 | + | |
| 1272 | + | |
| 1273 | + | |
| 1274 | + | |
1157 | 1275 | | |
1158 | 1276 | | |
1159 | 1277 | | |
| |||
1164 | 1282 | | |
1165 | 1283 | | |
1166 | 1284 | | |
| 1285 | + | |
| 1286 | + | |
1167 | 1287 | | |
1168 | 1288 | | |
1169 | 1289 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
763 | 763 | | |
764 | 764 | | |
765 | 765 | | |
| 766 | + | |
766 | 767 | | |
767 | 768 | | |
768 | 769 | | |
| |||
773 | 774 | | |
774 | 775 | | |
775 | 776 | | |
| 777 | + | |
776 | 778 | | |
777 | 779 | | |
778 | 780 | | |
| |||
907 | 909 | | |
908 | 910 | | |
909 | 911 | | |
| 912 | + | |
910 | 913 | | |
911 | 914 | | |
912 | 915 | | |
913 | 916 | | |
914 | 917 | | |
915 | 918 | | |
916 | 919 | | |
| 920 | + | |
917 | 921 | | |
918 | 922 | | |
919 | 923 | | |
| |||
1139 | 1143 | | |
1140 | 1144 | | |
1141 | 1145 | | |
| 1146 | + | |
1142 | 1147 | | |
1143 | 1148 | | |
1144 | 1149 | | |
| |||
1149 | 1154 | | |
1150 | 1155 | | |
1151 | 1156 | | |
| 1157 | + | |
| 1158 | + | |
| 1159 | + | |
| 1160 | + | |
1152 | 1161 | | |
1153 | 1162 | | |
1154 | 1163 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
199 | 199 | | |
200 | 200 | | |
201 | 201 | | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
202 | 205 | | |
203 | 206 | | |
204 | 207 | | |
| |||
1081 | 1084 | | |
1082 | 1085 | | |
1083 | 1086 | | |
| 1087 | + | |
| 1088 | + | |
1084 | 1089 | | |
1085 | 1090 | | |
1086 | 1091 | | |
| |||
1509 | 1514 | | |
1510 | 1515 | | |
1511 | 1516 | | |
| 1517 | + | |
| 1518 | + | |
| 1519 | + | |
1512 | 1520 | | |
1513 | 1521 | | |
1514 | 1522 | | |
| |||
1766 | 1774 | | |
1767 | 1775 | | |
1768 | 1776 | | |
1769 | | - | |
| 1777 | + | |
| 1778 | + | |
| 1779 | + | |
1770 | 1780 | | |
1771 | 1781 | | |
1772 | 1782 | | |
| |||
2355 | 2365 | | |
2356 | 2366 | | |
2357 | 2367 | | |
| 2368 | + | |
| 2369 | + | |
2358 | 2370 | | |
2359 | 2371 | | |
2360 | 2372 | | |
2361 | 2373 | | |
2362 | 2374 | | |
2363 | 2375 | | |
| 2376 | + | |
| 2377 | + | |
2364 | 2378 | | |
2365 | 2379 | | |
2366 | 2380 | | |
| |||
2822 | 2836 | | |
2823 | 2837 | | |
2824 | 2838 | | |
| 2839 | + | |
| 2840 | + | |
| 2841 | + | |
| 2842 | + | |
| 2843 | + | |
| 2844 | + | |
| 2845 | + | |
2825 | 2846 | | |
2826 | 2847 | | |
2827 | 2848 | | |
| |||
3028 | 3049 | | |
3029 | 3050 | | |
3030 | 3051 | | |
| 3052 | + | |
| 3053 | + | |
| 3054 | + | |
| 3055 | + | |
| 3056 | + | |
| 3057 | + | |
| 3058 | + | |
| 3059 | + | |
| 3060 | + | |
0 commit comments