]> www.infradead.org Git - users/jedix/linux-maple.git/commit
USB: xhci: fix 'broken_suspend' placement in struct xchi_hcd
authorNicolas Saenz Julienne <nsaenzjulienne@suse.de>
Mon, 17 Dec 2018 13:37:40 +0000 (14:37 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 29 Dec 2018 12:39:08 +0000 (13:39 +0100)
commit4aa9cf83b766c2b0b31a360c5c93e1987c19e44c
treef71a5dc34e051f74c017ec2526c062181f742127
parent2ab5db613774c2c743d109eb63f71c5ee3b6a4ea
USB: xhci: fix 'broken_suspend' placement in struct xchi_hcd

commit 2419f30a4a4fcaa5f35111563b4c61f1b2b26841 upstream.

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: a7d57abcc8a5 ("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>
drivers/usb/host/xhci.h