Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

usb: xhci-plat: Don't include xhci.h

The xhci_plat.h should not need to include the entire xhci.h header.
This can cause redefinition in dwc3 if it selectively includes some xHCI
definitions. This is a prerequisite change for a fix to disable suspend
during initialization for dwc3.

Cc: stable@vger.kernel.org
Signed-off-by: Thinh Nguyen <Thinh.Nguyen@synopsys.com>
Link: https://lore.kernel.org/r/310acfa01c957a10d9feaca3f7206269866ba2eb.1713394973.git.Thinh.Nguyen@synopsys.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Thinh Nguyen and committed by
Greg Kroah-Hartman
4a237d55 650ae71c

+4 -1
+3 -1
drivers/usb/host/xhci-plat.h
··· 8 8 #ifndef _XHCI_PLAT_H 9 9 #define _XHCI_PLAT_H 10 10 11 - #include "xhci.h" /* for hcd_to_xhci() */ 11 + struct device; 12 + struct platform_device; 13 + struct usb_hcd; 12 14 13 15 struct xhci_plat_priv { 14 16 const char *firmware_name;
+1
drivers/usb/host/xhci-rzv2m.c
··· 6 6 */ 7 7 8 8 #include <linux/usb/rzv2m_usb3drd.h> 9 + #include "xhci.h" 9 10 #include "xhci-plat.h" 10 11 #include "xhci-rzv2m.h" 11 12