Commit 0d776e5
mmc: via-sdmmc: use generic power management
Drivers using legacy PM have to manage PCI states and device's PM states
themselves. They also need to take care of configuration registers.
With improved and powerful support of generic PM, PCI Core takes care of
above mentioned, device-independent, jobs.
This driver makes use of PCI helper functions like
pci_save/restore_state(), pci_enable/disable_device(),
pci_enable_wake() and pci_set_power_state() and to do required operations.
In generic mode, they are no longer needed.
Change function parameter in both .suspend() and .resume() to
"struct device*" type. Use dev_get_drvdata() to get drv data.
Compile-tested only.
Signed-off-by: Vaibhav Gupta <vaibhavgupta40@gmail.com>
Link: https://lore.kernel.org/r/20200720142603.577323-1-vaibhavgupta40@gmail.com
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>1 parent c4e5e22 commit 0d776e5
1 file changed
Lines changed: 8 additions & 25 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1220 | 1220 | | |
1221 | 1221 | | |
1222 | 1222 | | |
1223 | | - | |
1224 | | - | |
1225 | | - | |
| 1223 | + | |
1226 | 1224 | | |
1227 | 1225 | | |
1228 | 1226 | | |
| |||
1256 | 1254 | | |
1257 | 1255 | | |
1258 | 1256 | | |
1259 | | - | |
| 1257 | + | |
1260 | 1258 | | |
1261 | 1259 | | |
1262 | 1260 | | |
1263 | | - | |
| 1261 | + | |
1264 | 1262 | | |
1265 | 1263 | | |
1266 | 1264 | | |
1267 | 1265 | | |
1268 | | - | |
1269 | | - | |
1270 | | - | |
1271 | | - | |
| 1266 | + | |
1272 | 1267 | | |
1273 | 1268 | | |
1274 | 1269 | | |
1275 | 1270 | | |
1276 | | - | |
| 1271 | + | |
1277 | 1272 | | |
1278 | 1273 | | |
1279 | 1274 | | |
1280 | 1275 | | |
1281 | 1276 | | |
1282 | | - | |
| 1277 | + | |
1283 | 1278 | | |
1284 | 1279 | | |
1285 | 1280 | | |
| |||
1294 | 1289 | | |
1295 | 1290 | | |
1296 | 1291 | | |
1297 | | - | |
1298 | | - | |
1299 | | - | |
1300 | | - | |
1301 | | - | |
1302 | | - | |
1303 | 1292 | | |
1304 | 1293 | | |
1305 | 1294 | | |
1306 | 1295 | | |
1307 | 1296 | | |
1308 | 1297 | | |
1309 | | - | |
1310 | | - | |
1311 | | - | |
1312 | | - | |
1313 | | - | |
1314 | | - | |
| 1298 | + | |
1315 | 1299 | | |
1316 | 1300 | | |
1317 | 1301 | | |
1318 | 1302 | | |
1319 | 1303 | | |
1320 | 1304 | | |
1321 | | - | |
1322 | | - | |
| 1305 | + | |
1323 | 1306 | | |
1324 | 1307 | | |
1325 | 1308 | | |
| |||
0 commit comments