distro kernel.
https://universe.0xinfinity.dev/distro/kernel/atom?h=linux-6.1.y2025-07-24T06:51:54Zusb: musb: Add and use inline functions musb_{get,set}_state2025-07-24T06:51:54ZPaul Cercueilpaul@crapouillou.net2022-10-26T18:26:51Zurn:sha1:a2c245823691b52008b32953099fdf86f6c9a7cf
commit 21acc656a06e912341d9db66c67b58cc7ed071e7 upstream.
Instead of manipulating musb->xceiv->otg->state directly, use the newly
introduced musb_get_state() and musb_set_state() inline functions.
Later, these inline functions will be modified to get rid of the
musb->xceiv dependency, which prevents the musb code from using the
generic PHY subsystem.
Signed-off-by: Paul Cercueil <paul@crapouillou.net>
Link: https://lore.kernel.org/r/20221026182657.146630-2-paul@crapouillou.net
Stable-dep-of: 67a59f82196c ("usb: musb: fix gadget state on disconnect")
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>