Commit ce4c8d2
usb: typec: ucsi: Fix connector check on init
Fix issues when initially checking for a connector change:
- Use the correct connector number not the entire CCI.
- Call ->read under the PPM lock.
- Remove a bogus READ_ONCE.
Fixes: 808a8b9 ("usb: typec: ucsi: Check for notifications after init")
Cc: stable@kernel.org
Signed-off-by: Christian A. Ehrhardt <lk@c--e.de>
Reviewed-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Link: https://lore.kernel.org/r/20240401210515.1902048-1-lk@c--e.de
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>1 parent 3f03e77 commit ce4c8d2
1 file changed
Lines changed: 4 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1736 | 1736 | | |
1737 | 1737 | | |
1738 | 1738 | | |
| 1739 | + | |
1739 | 1740 | | |
| 1741 | + | |
1740 | 1742 | | |
1741 | 1743 | | |
1742 | | - | |
1743 | | - | |
| 1744 | + | |
| 1745 | + | |
1744 | 1746 | | |
1745 | 1747 | | |
1746 | 1748 | | |
| |||
0 commit comments