]> 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)
commit045a6c748081cce9e4ee442757a247fba9ae30d1
treed961eff584fa41e0c8a82a0d6de98a458279e4f5
parente787b13e4e5b4e810003b7541316064ef0bc887d
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: 864afd2bfe97 ("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