usb: xhci-mtk: check hcc_params after adding primary hcd
authorChunfeng Yun <chunfeng.yun@mediatek.com>
Thu, 9 Mar 2017 13:39:34 +0000 (15:39 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 9 Mar 2017 17:00:39 +0000 (18:00 +0100)
commit94a631d91ad341b3b4bdac72d1104d9f090e0ca9
tree2e7df18a34001344606589f6e1f463575418de30
parentfeec467f3995c1639e5f12eca7c7885c8b1d411d
usb: xhci-mtk: check hcc_params after adding primary hcd

hcc_params is set in xhci_gen_setup() called from usb_add_hcd(),
so checks the Maximum Primary Stream Array Size in the hcc_params
register after adding primary hcd.

Signed-off-by: Chunfeng Yun <chunfeng.yun@mediatek.com>
Signed-off-by: Mathias Nyman <mathias.nyman@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/host/xhci-mtk.c