MLK-9617-6 usb: core: otg: do not break otg device enumeration
authorLi Jun <B47624@freescale.com>
Sat, 27 Sep 2014 14:23:39 +0000 (22:23 +0800)
committerNitin Garg <nitin.garg@nxp.com>
Mon, 19 Mar 2018 19:47:12 +0000 (14:47 -0500)
commit69e2c591afbdf1fa02b2489a7d0c8178db6d63bc
treef292c0b37868efbfc025c2f71e83a4ed195e95b9
parent218b0dd4091f45aa923021798d4453b7bac3593d
MLK-9617-6 usb: core: otg: do not break otg device enumeration

If a HNP capable device STALL b_hnp_enable set feature request, A device
as host should not break otg device enumeration, because this set feature
failure only indicates the B device does not want to be host role for the
moment, A device as host talk to it should be okay.

see charpter 6.2.2.2 of OTG and EH 2.0:
"If the a_hnp_support feature is set, but the b_hnp_enable feature is not set,
then it is likely that b_hnp_enable will be set later when the A-device is
finished using the bus."

Signed-off-by: Li Jun <b47624@freescale.com>
(cherry picked from commit 51317577d16034ba151da8d502319f4befb91278)
(cherry picked from commit 3d5d5139b3aef654e8004a2ad9ce757af50aee57)
drivers/usb/core/hub.c