Commit 958c19b1 authored by John Stultz's avatar John Stultz Committed by Greg Kroah-Hartman
Browse files

ANDROID: usb: typec: tcpm: Fix event storm caused by error in backport

As noted by Badhri, the patch
  https://lore.kernel.org/linux-usb/20210317181249.1062995-1-badhri@google.com/



Adds the power_supply_changed() to tcpm_psy_set_prop(), but the
patch submitted to Gerrit added it in tcpm_psy_get_prop()

This causes a uevent storm which results in lots of strange
behavior and error messages.

Thus, as suggested by Badhri, this patch removes the
power_supply_changed() call in the tcpm_psy_get_prop(), and adds
it to the tcpm_psy_get_prop() function to match the original
patch.

Debugged-and-Suggested-by: default avatarBadhri Jagan Sridharan <badhri@google.com>
Signed-off-by: default avatarJohn Stultz <john.stultz@linaro.org>
Fixes: 6f85b7e0 ("UPSTREAM: usb: typec: tcpm: Invoke power_supply_changed for tcpm-source-psy-")
Change-Id: Ib161d15b82ef0fad541cda79f8832145218fb137
parent 0b6fadd0
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment