mirror of
https://github.com/raspberrypi/linux.git
synced 2025-12-06 10:00:17 +00:00
USB: xhci: fix 'broken_suspend' placement in struct xchi_hcd
commit2419f30a4aupstream. As commented in the struct's definition there shouldn't be anything underneath its 'priv[0]' member as it would break some macros. The patch converts the broken_suspend into a bit-field and relocates it next to to the rest of bit-fields. Fixes:a7d57abcc8("xhci: workaround CSS timeout on AMD SNPS 3.0 xHC") Reported-by: Oliver Neukum <oneukum@suse.com> Signed-off-by: Nicolas Saenz Julienne <nsaenzjulienne@suse.de> Acked-by: Mathias Nyman <mathias.nyman@linux.intel.com> Cc: stable <stable@vger.kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
2ab5db6137
commit
4aa9cf83b7
@@ -1859,6 +1859,8 @@ struct xhci_hcd {
|
|||||||
unsigned sw_lpm_support:1;
|
unsigned sw_lpm_support:1;
|
||||||
/* support xHCI 1.0 spec USB2 hardware LPM */
|
/* support xHCI 1.0 spec USB2 hardware LPM */
|
||||||
unsigned hw_lpm_support:1;
|
unsigned hw_lpm_support:1;
|
||||||
|
/* Broken Suspend flag for SNPS Suspend resume issue */
|
||||||
|
unsigned broken_suspend:1;
|
||||||
/* cached usb2 extened protocol capabilites */
|
/* cached usb2 extened protocol capabilites */
|
||||||
u32 *ext_caps;
|
u32 *ext_caps;
|
||||||
unsigned int num_ext_caps;
|
unsigned int num_ext_caps;
|
||||||
@@ -1871,8 +1873,6 @@ struct xhci_hcd {
|
|||||||
|
|
||||||
/* platform-specific data -- must come last */
|
/* platform-specific data -- must come last */
|
||||||
unsigned long priv[0] __aligned(sizeof(s64));
|
unsigned long priv[0] __aligned(sizeof(s64));
|
||||||
/* Broken Suspend flag for SNPS Suspend resume issue */
|
|
||||||
u8 broken_suspend;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
/* Platform specific overrides to generic XHCI hc_driver ops */
|
/* Platform specific overrides to generic XHCI hc_driver ops */
|
||||||
|
|||||||
Reference in New Issue
Block a user