usb: xhci: Initialize dev_state to 0 in the input slot context
authorBin Meng <bmeng.cn@gmail.com>
Thu, 24 May 2018 06:40:48 +0000 (23:40 -0700)
committerMarek Vasut <marex@denx.de>
Wed, 30 May 2018 09:59:10 +0000 (11:59 +0200)
commitae751b060e8cee3f9c48112898cd3e31ee6c0734
treea38cf8b9ad310821b792a1794cd0390bfca5b7b2
parent793c819c6e2168110ad7cfca0349738c79d79a1f
usb: xhci: Initialize dev_state to 0 in the input slot context

Per xHCI spec chapter 6.2.2 table 6-7, as input, software shall
initialize the dev_state field to '0'. Though this does not seem
to cause any issue with most xHC implementations, let's do this
to conform with the spec.

Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
Tested-by: Marek Vasut <marek.vasut@gmail.com>
Tested-by: Matthias Blankertz <matthias.blankertz@cetitec.com>
drivers/usb/host/xhci.c