Commit 86629e0
usb: typec: tcpm: Invoke power_supply_changed for tcpm-source-psy-
tcpm-source-psy- does not invoke power_supply_changed API when
one of the published power supply properties is changed.
power_supply_changed needs to be called to notify
userspace clients(uevents) and kernel clients.
Fixes: f2a8aa0 ("typec: tcpm: Represent source supply through power_supply")
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Reviewed-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Signed-off-by: Badhri Jagan Sridharan <badhri@google.com>
Cc: stable <stable@vger.kernel.org>
Link: https://lore.kernel.org/r/20210317181249.1062995-1-badhri@google.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>1 parent 3cac910 commit 86629e0
1 file changed
Lines changed: 8 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
942 | 942 | | |
943 | 943 | | |
944 | 944 | | |
| 945 | + | |
945 | 946 | | |
946 | 947 | | |
947 | 948 | | |
| |||
2928 | 2929 | | |
2929 | 2930 | | |
2930 | 2931 | | |
| 2932 | + | |
2931 | 2933 | | |
2932 | 2934 | | |
2933 | 2935 | | |
| |||
2952 | 2954 | | |
2953 | 2955 | | |
2954 | 2956 | | |
| 2957 | + | |
2955 | 2958 | | |
2956 | 2959 | | |
2957 | 2960 | | |
| |||
3109 | 3112 | | |
3110 | 3113 | | |
3111 | 3114 | | |
| 3115 | + | |
3112 | 3116 | | |
3113 | 3117 | | |
3114 | 3118 | | |
| |||
3344 | 3348 | | |
3345 | 3349 | | |
3346 | 3350 | | |
| 3351 | + | |
3347 | 3352 | | |
3348 | 3353 | | |
3349 | 3354 | | |
| |||
3523 | 3528 | | |
3524 | 3529 | | |
3525 | 3530 | | |
| 3531 | + | |
3526 | 3532 | | |
3527 | 3533 | | |
3528 | 3534 | | |
| |||
5905 | 5911 | | |
5906 | 5912 | | |
5907 | 5913 | | |
5908 | | - | |
| 5914 | + | |
5909 | 5915 | | |
5910 | 5916 | | |
5911 | 5917 | | |
| |||
6058 | 6064 | | |
6059 | 6065 | | |
6060 | 6066 | | |
| 6067 | + | |
6061 | 6068 | | |
6062 | 6069 | | |
6063 | 6070 | | |
| |||
0 commit comments