]> git.karo-electronics.de Git - linux-beck.git/commit
usb: otg: don't set a_alt_hnp_support feature for OTG 2.0 device
authorLi Jun <jun.li@freescale.com>
Mon, 31 Aug 2015 08:20:49 +0000 (16:20 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 4 Oct 2015 09:51:58 +0000 (10:51 +0100)
commit7d2d641c44269656bf72381c72e2eb50b18a8404
tree505a3d7a757c41377352b63759328ab4b307699a
parent9766f2517e55338ab546891c4bfff6666ffacaea
usb: otg: don't set a_alt_hnp_support feature for OTG 2.0 device

Since a_alt_hnp_support is obsolete in OTG 2.0, HNP capable host should
send this set feature request only if the otg device is connecting to a
non-HNP port and it's compliant with OTG 1.x revision. This is done by
checking its otg descriptor length, OTG 2.0 uses usb_otg20_descriptor
which has different length than OTG 1.x using usb_otg_descriptor.

Signed-off-by: Li Jun <jun.li@freescale.com>
Acked-by: Peter Chen <peter.chen@freescale.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/core/hub.c