Commit 99f6d43
usb: typec: ucsi: Check the connection on resume
Checking the connection status of every port on resume. This
fixes an issue where the partner device is not unregistered
properly after resume if it was unplugged while the system
was suspended.
The function ucsi_check_connection() is also modified so
that it can be used also for registering the connection on
top of unregistering it.
Link: https://bugzilla.kernel.org/show_bug.cgi?id=210425
Fixes: a94ecde ("usb: typec: ucsi: ccg: enable runtime pm support")
Cc: <stable@vger.kernel.org>
Signed-off-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Link: https://lore.kernel.org/r/20221007100951.43798-2-heikki.krogerus@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>1 parent 48ed324 commit 99f6d43
1 file changed
+29
-13
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
183 | 183 | | |
184 | 184 | | |
185 | 185 | | |
186 | | - | |
187 | | - | |
188 | | - | |
189 | | - | |
190 | | - | |
191 | | - | |
192 | | - | |
193 | | - | |
194 | | - | |
195 | | - | |
196 | 186 | | |
197 | 187 | | |
198 | 188 | | |
| |||
744 | 734 | | |
745 | 735 | | |
746 | 736 | | |
| 737 | + | |
747 | 738 | | |
748 | 739 | | |
749 | 740 | | |
| |||
754 | 745 | | |
755 | 746 | | |
756 | 747 | | |
| 748 | + | |
| 749 | + | |
| 750 | + | |
757 | 751 | | |
758 | | - | |
759 | | - | |
760 | | - | |
| 752 | + | |
| 753 | + | |
| 754 | + | |
761 | 755 | | |
762 | 756 | | |
763 | 757 | | |
| |||
1276 | 1270 | | |
1277 | 1271 | | |
1278 | 1272 | | |
| 1273 | + | |
| 1274 | + | |
| 1275 | + | |
| 1276 | + | |
| 1277 | + | |
| 1278 | + | |
| 1279 | + | |
| 1280 | + | |
| 1281 | + | |
| 1282 | + | |
| 1283 | + | |
| 1284 | + | |
| 1285 | + | |
| 1286 | + | |
| 1287 | + | |
| 1288 | + | |
| 1289 | + | |
| 1290 | + | |
| 1291 | + | |
| 1292 | + | |
| 1293 | + | |
| 1294 | + | |
1279 | 1295 | | |
1280 | 1296 | | |
1281 | 1297 | | |
| |||
0 commit comments