kernel-ark/drivers/usb/chipidea
Li Jun d20f780799 usb: chipidea: otg: add a_alt_hnp_support response for B device
This patch adds response to a_alt_hnp_support set feature request from legacy
A device, that is, B-device can provide a message to the user indicating that
the user needs to connect the B-device to an alternate port on the A-device.
A device sets this feature indicates to the B-device that it is connected
to an A-device port that is not capable of HNP, but that the A-device does have
an alternate port that is capable of HNP.

[Peter]
Without this patch, the OTG B device can't be enumerated on
non-HNP port at A device, see below log:
[    2.287464] usb 1-1: Dual-Role OTG device on non-HNP port
[    2.293105] usb 1-1: can't set HNP mode: -32
[    2.417422] usb 1-1: new high-speed USB device number 4 using ci_hdrc
[    2.460635] usb 1-1: Dual-Role OTG device on non-HNP port
[    2.466424] usb 1-1: can't set HNP mode: -32
[    2.587464] usb 1-1: new high-speed USB device number 5 using ci_hdrc
[    2.630649] usb 1-1: Dual-Role OTG device on non-HNP port
[    2.636436] usb 1-1: can't set HNP mode: -32
[    2.641003] usb usb1-port1: unable to enumerate USB device

Cc: stable <stable@vger.kernel.org>
Acked-by: Peter Chen <peter.chen@freescale.com>
Signed-off-by: Li Jun <b47624@freescale.com>
Signed-off-by: Peter Chen <peter.chen@freescale.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2015-03-15 10:27:20 +01:00
..
bits.h usb: chipidea: OTG fsm timers initialization 2014-04-24 12:56:35 -07:00
ci_hdrc_imx.c Driver core patches for 3.19-rc1 2014-12-14 16:10:09 -08:00
ci_hdrc_imx.h chipidea: usbmisc_imx: Add USB support for VF610 SoCs 2014-09-23 21:32:30 -07:00
ci_hdrc_msm.c usb: chipidea: remove flag CI_HDRC_REQUIRE_TRANSCEIVER 2014-11-26 09:28:12 -08:00
ci_hdrc_pci.c ehci-pci: disable for Intel MID platforms (update) 2015-02-03 15:28:31 -08:00
ci_hdrc_usb2.c usb: chipidea: fix platform_no_drv_owner.cocci warnings 2014-11-26 11:47:43 -08:00
ci_hdrc_zevio.c usb: chipidea: drop owner assignment from platform_drivers 2014-10-20 16:21:47 +02:00
ci.h usb: chipidea: parameter 'mode' isn't needed for hw_device_reset 2014-11-26 09:28:12 -08:00
core.c Revert "usb: chipidea: remove duplicate dev_set_drvdata for host_start" 2015-01-09 09:45:30 -08:00
debug.c usb: allow to supply the PHY in the drivers when using HCD 2014-11-03 10:02:50 -06:00
debug.h
host.c Revert "usb: chipidea: remove duplicate dev_set_drvdata for host_start" 2015-01-09 09:45:30 -08:00
host.h
Kconfig
Makefile usb: chipidea: add a usb2 driver for ci13xxx 2014-11-26 09:28:13 -08:00
otg_fsm.c usb: chipidea: Fixed a few typos in comments 2014-11-26 09:28:13 -08:00
otg_fsm.h usb: chipidea: add sys inputs for OTG fsm input 2014-04-24 12:56:35 -07:00
otg.c usb: chipidea: add sys inputs for OTG fsm input 2014-04-24 12:56:35 -07:00
otg.h usb: chipidea: using one inline function to cover queue work operations 2014-05-23 11:35:02 +09:00
udc.c usb: chipidea: otg: add a_alt_hnp_support response for B device 2015-03-15 10:27:20 +01:00
udc.h
usbmisc_imx.c Driver core patches for 3.19-rc1 2014-12-14 16:10:09 -08:00