]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commit
usb: host: xhci: plat: check hcc_params after add hcd
authorWilliam wu <william.wu@rock-chips.com>
Tue, 17 Jan 2017 07:32:07 +0000 (15:32 +0800)
committerTim Gardner <tim.gardner@canonical.com>
Mon, 13 Mar 2017 21:20:54 +0000 (15:20 -0600)
commit43ede1de008d318f29aa4dc1c93b12ab484e0b22
treeb3f62a2aa098fe03e5d34b69be0ab3c014100d70
parent1a28cfe32e333b2be3c3a2f87b35734905433a1c
usb: host: xhci: plat: check hcc_params after add hcd

BugLink: http://bugs.launchpad.net/bugs/1672544
commit 5de4e1ea9a731cad195ce5152705c21daef3bbba upstream.

The commit 4ac53087d6d4 ("usb: xhci: plat: Create both
HCDs before adding them") move add hcd to the end of
probe, this cause hcc_params uninitiated, because xHCI
driver sets hcc_params in xhci_gen_setup() called from
usb_add_hcd().

This patch checks the Maximum Primary Stream Array Size
in the hcc_params register after add primary hcd.

Signed-off-by: William wu <william.wu@rock-chips.com>
Acked-by: Roger Quadros <rogerq@ti.com>
Fixes: 4ac53087d6d4 ("usb: xhci: plat: Create both HCDs before adding them")
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
drivers/usb/host/xhci-plat.c