usb: musb: Allow running without CONFIG_USB_PHY
authorPaul Cercueil <paul@crapouillou.net>
Wed, 26 Oct 2022 18:26:53 +0000 (19:26 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 9 Nov 2022 11:39:13 +0000 (12:39 +0100)
commita6d45ea063f0a9272f62925c8150439af5640e74
treea3bc834afb783a3df0ed7045b6876786131b15ee
parent285f28bfed89a56ed619054f21125b0bd2f0d4d6
usb: musb: Allow running without CONFIG_USB_PHY

Modify the core so that musb->xceiv is never deferenced without being
checked first.

Signed-off-by: Paul Cercueil <paul@crapouillou.net>
Link: https://lore.kernel.org/r/20221026182657.146630-4-paul@crapouillou.net
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/musb/musb_core.c
drivers/usb/musb/musb_core.h
drivers/usb/musb/musb_gadget.c
drivers/usb/musb/musb_host.c
drivers/usb/musb/musb_virthub.c