]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
xhci: Allow more than 32 quirks
authorMarc Zyngier <marc.zyngier@arm.com>
Wed, 5 Dec 2018 08:32:00 +0000 (09:32 +0100)
committerKleber Sacilotto de Souza <kleber.souza@canonical.com>
Thu, 6 Dec 2018 13:47:52 +0000 (14:47 +0100)
commit45d2957612457139c5fd7b69a040cff5a74322bf
tree8935df154e8b16831b3a2c41156a9ce2a08a26b4
parent45fc25deac8d9ac1eaefe444fceb9b90100e9348
xhci: Allow more than 32 quirks

BugLink: https://bugs.launchpad.net/bugs/1806838
We now have 32 different quirks, and the field that holds them
is full. Let's bump it up to the next stage so that we can handle
some more... The type is now an unsigned long long, which is 64bit
on most architectures.

We take this opportunity to change the quirks from using (1 << x)
to BIT_ULL(x).

Tested-by: Domenico Andreoli <domenico.andreoli@linux.com>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
Tested-by: Faiz Abbas <faiz_abbas@ti.com>
Tested-by: Domenico Andreoli <domenico.andreoli@linux.com>
Acked-by: Mathias Nyman <mathias.nyman@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
(backported from commit 36b6857932f380fcb55c31ac75857e3e81dd583a)
Signed-off-by: Kai-Heng Feng <kai.heng.feng@canonical.com>
Acked-by: Seth Forshee <seth.forshee@canonical.com>
Acked-by: Khalid Elmously <khalid.elmously@canonical.com>
Acked-by: Andy Whitcroft <andy.whitcroft@canonical.com>
Signed-off-by: Kleber Sacilotto de Souza <kleber.souza@canonical.com>
drivers/usb/host/xhci.c
drivers/usb/host/xhci.h