]> git.ipfire.org Git - people/ms/u-boot.git/commit
usb: xhci: Set number of event segments and entries to 1
authorMarek Vasut <marek.vasut@gmail.com>
Tue, 12 Sep 2017 21:02:08 +0000 (23:02 +0200)
committerMarek Vasut <marek.vasut+renesas@gmail.com>
Wed, 27 Sep 2017 10:12:21 +0000 (12:12 +0200)
commit7489d22a3c73b527c21c147f3547e8cc02484e47
tree334c5057b7e3c32a0f5aeea386f91ff8fa9a3679
parent9241265f29f3670e380a9859a343ddc14873c46f
usb: xhci: Set number of event segments and entries to 1

The Linux kernel driver sets the number of event segments and entries
to 1 , while the initial import of the xhci code set that values to 3
for reasons unknown. While most controllers are fine with more event
segments with more entries, there are standard-conformant controllers
(ie. Renesas RCar xHCI) which only support 1 event segment.

Set the number of event segments and event entries back to 1 to allow
such controllers to work with U-Boot xHCI stack. Note that the Renesas
controller correctly indicates ERST Max = 1 in HCSPARAMS2[7:4] .

Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com>
Cc: Bin Meng <bmeng.cn@gmail.com>
drivers/usb/host/xhci.h