]> www.infradead.org Git - users/jedix/linux-maple.git/commit
usb: typec: ps883x: fix registration race
authorJohan Hovold <johan+linaro@kernel.org>
Tue, 18 Feb 2025 15:29:31 +0000 (16:29 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 19 Feb 2025 14:16:08 +0000 (15:16 +0100)
commit9f9de3e02d7f6f99ce6f4be92c28537706634ae9
treee22b505019b7aff1e521af2fa9b6e0ecaf78391a
parent834d1cb7ecf3f2812fc3c8cbe870cf2ad192f68e
usb: typec: ps883x: fix registration race

Make sure that the retimer is fully setup before registering it to avoid
having consumers try to access it while it is being reset.

Fixes: 257a087c8b52 ("usb: typec: Add support for Parade PS8830 Type-C Retimer")
Cc: Abel Vesa <abel.vesa@linaro.org>
Signed-off-by: Johan Hovold <johan+linaro@kernel.org>
Link: https://lore.kernel.org/r/20250218152933.22992-2-johan+linaro@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/typec/mux/ps883x.c