usb: typec: Change power status check in tps6598x_interrupt
Since power status can change not only when TPS_REG_INT_POWER_STATUS_UPDATE is set but also when TPS_REG_INT_PP_SWITCH_CHANGED is set, check for power status change also in the TPS_REG_INT_PP_SWITCH_CHANGED case. In this way we detect power status change in some cases where it was earlier undetected.
Fixes https://source.puri.sm/Librem5/linux-next/-/issues/250 and https://source.puri.sm/Librem5/linux-next/-/issues/291
Signed-off-by: Elias Rudberg mail@eliasrudberg.se
Edited by Elias Rudberg