]> git.baikalelectronics.ru Git - kernel.git/commit
usb: typec: tipd: Fix initialization sequence for cd321x
authorHector Martin <marcan@marcan.st>
Sat, 20 Nov 2021 03:07:17 +0000 (12:07 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 23 Nov 2021 13:08:08 +0000 (14:08 +0100)
commit6da45df5114a944c1d276d867cb949ccf3428f49
treed961eff584fa41e0c8a82a0d6de98a458279e4f5
parentb9848297e9ae5cf4fa8db5e700171c86839d7427
usb: typec: tipd: Fix initialization sequence for cd321x

The power state switch needs to happen first, as that
kickstarts the firmware into normal mode.

Fixes: 9ca6c69b33bb ("usb: typec: tipd: Switch CD321X power state to S0")
Reviewed-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Reviewed-by: Sven Peter <sven@svenpeter.dev>
Signed-off-by: Hector Martin <marcan@marcan.st>
Link: https://lore.kernel.org/r/20211120030717.84287-3-marcan@marcan.st
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/typec/tipd/core.c