]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit98f270df40fad4af91bbb0fbb4fea5e7433a5f81
tree7eb1d7958f6f9dd8e94aa9f1e01999c34549db16
parent54013aa73f47c92c981c83b8beb53c1e28c5b44d
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