Commit bb61075
PCI: brcmstb: Use reset/rearm instead of deassert/assert
The Broadcom STB PCIe RC uses a reset control "rescal" for certain chips.
The "rescal" implements a "pulse reset" so using assert/deassert is wrong
for this device. Instead, we use reset/rearm. We need to use rearm so
that we can reset it after a suspend/resume cycle; w/o using "rearm", the
"rescal" device will only ever fire once.
Of course for suspend/resume to work we also need to put the reset/rearm
calls in the suspend and resume routines.
Fixes: 740d6c3 ("PCI: brcmstb: Add control of rescal reset")
Link: https://lore.kernel.org/r/20210430152156.21162-4-jim2101024@gmail.com
Signed-off-by: Jim Quinlan <jim2101024@gmail.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Acked-by: Florian Fainelli <f.fainelli@gmail.com>1 parent e8d6f9e commit bb61075
1 file changed
Lines changed: 13 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1148 | 1148 | | |
1149 | 1149 | | |
1150 | 1150 | | |
| 1151 | + | |
1151 | 1152 | | |
1152 | 1153 | | |
1153 | 1154 | | |
| |||
1163 | 1164 | | |
1164 | 1165 | | |
1165 | 1166 | | |
| 1167 | + | |
| 1168 | + | |
| 1169 | + | |
| 1170 | + | |
1166 | 1171 | | |
1167 | 1172 | | |
1168 | | - | |
| 1173 | + | |
1169 | 1174 | | |
1170 | 1175 | | |
1171 | 1176 | | |
| |||
1180 | 1185 | | |
1181 | 1186 | | |
1182 | 1187 | | |
1183 | | - | |
| 1188 | + | |
1184 | 1189 | | |
1185 | 1190 | | |
1186 | 1191 | | |
1187 | 1192 | | |
1188 | 1193 | | |
1189 | 1194 | | |
1190 | | - | |
| 1195 | + | |
| 1196 | + | |
| 1197 | + | |
1191 | 1198 | | |
1192 | 1199 | | |
1193 | 1200 | | |
| |||
1197 | 1204 | | |
1198 | 1205 | | |
1199 | 1206 | | |
1200 | | - | |
| 1207 | + | |
1201 | 1208 | | |
1202 | 1209 | | |
1203 | 1210 | | |
| |||
1278 | 1285 | | |
1279 | 1286 | | |
1280 | 1287 | | |
1281 | | - | |
| 1288 | + | |
1282 | 1289 | | |
1283 | 1290 | | |
1284 | 1291 | | |
1285 | 1292 | | |
1286 | 1293 | | |
1287 | | - | |
| 1294 | + | |
1288 | 1295 | | |
1289 | 1296 | | |
1290 | 1297 | | |
| |||
0 commit comments