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)
commit113972d2e111304553d4d3226f49d18ea4b7f2f7
treed961eff584fa41e0c8a82a0d6de98a458279e4f5
parent7b9c90e3e6a13d89048717f846ba664dfbd4c6c7
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: c9c14be664cf ("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