]> git.baikalelectronics.ru Git - kernel.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>
Mon, 17 Dec 2018 15:01:02 +0000 (16:01 +0100)
commit386e850ed82bfabb685a0c3ab39735b8f3251c20
treef8690bbce5919e2a3dfef05be62ee0409aea303b
parent10cea96bfac88e1b7ed84c38f94d13eb79f64dbb
USB: xhci: fix 'broken_suspend' placement in struct xchi_hcd

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: 66dd2a5ff6df ("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