platform/chrome: cros_ec_typec: Use workqueue for port update
authorPrashant Malani <pmalani@chromium.org>
Mon, 29 Jun 2020 21:13:27 +0000 (14:13 -0700)
committerEnric Balletbo i Serra <enric.balletbo@collabora.com>
Tue, 30 Jun 2020 14:35:08 +0000 (16:35 +0200)
commit83cbc69df8b8ec598ff8ca7629be34a50274e5b5
tree827b0ec6ea761fda394dee2d23698a918f28b55b
parentbdc4094591c3809e53eb7792344248bb447768c3
platform/chrome: cros_ec_typec: Use workqueue for port update

Use a work queue to call the port update routines, instead of doing it
directly in the PD notifier callback. This will prevent other drivers
with PD notifier callbacks from being blocked on the port update routine
completing.

Signed-off-by: Prashant Malani <pmalani@chromium.org>
Reviewed-by: Guenter Roeck <groeck@chromium.org>
Reviewed-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Signed-off-by: Enric Balletbo i Serra <enric.balletbo@collabora.com>
drivers/platform/chrome/cros_ec_typec.c