usb: typec: tipd: Only update power status on IRQ
authorGuido Günther <agx@sigxcpu.org>
Thu, 17 Mar 2022 15:45:12 +0000 (16:45 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 21 Apr 2022 16:31:08 +0000 (18:31 +0200)
commit92440202a88009ef66a236001981513e03a300fb
tree7eb1d7958f6f9dd8e94aa9f1e01999c34549db16
parent38c695e1e2a2caaacb3b2dc5cddbba5e8024412f
usb: typec: tipd: Only update power status on IRQ

Instead of refetching power status cache it and only update it when a
change is signalled via irq. This simplifies tracing and adding more
supply properties in follow up patches.

Signed-off-by: Guido Günther <agx@sigxcpu.org>
Signed-off-by: Sebastian Krzyszkowiak <sebastian.krzyszkowiak@puri.sm>
Reviewed-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Link: https://lore.kernel.org/r/20220317154518.4082046-2-sebastian.krzyszkowiak@puri.sm
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/typec/tipd/core.c