Hans de Goede
5d04c88379
phy_sun4i_usb: set_mode: Allow using set_mode to force end the current session
...
The sunxi musb has a bug where sometimes it will generate a babble
error on device disconnect instead of a disconnect irq. When this
happens the musb-controller switches from host mode to device mode
(it clears MUSB_DEVCTL_SESSION and sets MUSB_DEVCTL_BDEVICE) and
gets stuck in this state.
Clearing this requires reporting Vbus low for 200 or more ms, but
on some devices Vbus is simply always high (host-only mode, no Vbus
control).
This commit modifies sun4i_usb_phy_set_mode so that it will force
end the current session when called with the current mode, before this
commit calling set_mode with the current mode was a nop since id_det
would stay the same resulting in the detect_work not doing anything.
This allows the sunxi-musb glue to use sun4i_usb_phy_set_mode to force
end the current session without changing the mode, to fixup the stuck
state after a babble error.
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
2016-11-18 18:19:16 +05:30
..
tegra
phy: fix returnvar.cocci warnings
2016-11-18 18:19:16 +05:30
Kconfig
phy: stih41x-usb: Remove usb phy driver and dt binding
2016-11-18 18:19:15 +05:30
Makefile
phy: stih41x-usb: Remove usb phy driver and dt binding
2016-11-18 18:19:15 +05:30
phy-armada375-usb2.c
phy-bcm-cygnus-pcie.c
phy-bcm-kona-usb2.c
phy-bcm-ns-usb2.c
phy-bcm-ns-usb3.c
phy: bcm-ns-usb3: new driver for USB 3.0 PHY on Northstar
2016-09-10 16:48:28 +05:30
phy-bcm-ns2-pcie.c
phy: bcm-ns2-pcie: Set missing .owner field in ns2_pci_phy_ops
2016-09-10 16:48:36 +05:30
phy-berlin-sata.c
phy: fix returnvar.cocci warnings
2016-11-18 18:19:16 +05:30
phy-berlin-usb.c
phy-brcm-sata.c
phy: fix semicolon.cocci warnings
2016-11-18 18:19:15 +05:30
phy-core.c
phy: Add reset callback
2016-09-10 17:31:39 +05:30
phy-da8xx-usb.c
phy: da8xx-usb: Configure CFGCHIP2 to support OTG workaround
2016-11-18 18:19:15 +05:30
phy-dm816x-usb.c
phy-exynos-dp-video.c
phy-exynos-mipi-video.c
phy: exynos-mipi-video: simplify check for coupled phy status
2016-11-18 18:19:15 +05:30
phy-exynos4x12-usb2.c
phy: fix semicolon.cocci warnings
2016-11-18 18:19:15 +05:30
phy-exynos5-usbdrd.c
phy: exynos5-usbdrd: Remove "static" from local variable
2016-09-10 16:48:25 +05:30
phy-exynos4210-usb2.c
phy: fix semicolon.cocci warnings
2016-11-18 18:19:15 +05:30
phy-exynos5250-sata.c
phy-exynos5250-usb2.c
phy: fix semicolon.cocci warnings
2016-11-18 18:19:15 +05:30
phy-hi6220-usb.c
phy-hix5hd2-sata.c
phy-lpc18xx-usb-otg.c
phy-meson8b-usb2.c
phy: meson8b-usb2: request a shared reset line
2016-11-18 18:19:14 +05:30
phy-miphy28lp.c
phy-mt65xx-usb3.c
phy-mvebu-sata.c
phy-omap-control.c
phy-omap-usb2.c
phy: omap-usb2: support suspend/resume
2016-09-10 16:48:39 +05:30
phy-pistachio-usb.c
phy-pxa-28nm-hsic.c
phy-pxa-28nm-usb2.c
phy-qcom-apq8064-sata.c
phy-qcom-ipq806x-sata.c
phy-qcom-ufs-i.h
phy-qcom-ufs-qmp-14nm.c
phy: phy-qcom-ufs-qmp-14nm: Remove site specific OOM error message
2016-07-04 18:07:39 +05:30
phy-qcom-ufs-qmp-14nm.h
phy-qcom-ufs-qmp-20nm.c
phy: phy-qcom-ufs-qmp-20nm: Remove site specific OOM error message
2016-07-04 18:07:39 +05:30
phy-qcom-ufs-qmp-20nm.h
phy-qcom-ufs.c
phy: qcom-ufs: use of_property_read_bool
2016-09-10 16:48:29 +05:30
phy-rcar-gen2.c
phy-rcar-gen3-usb2.c
phy: rcar-gen3-usb2: add sysfs for usb role swap
2016-11-18 18:19:15 +05:30
phy-rockchip-dp.c
phy-rockchip-emmc.c
phy: fix semicolon.cocci warnings
2016-11-18 18:19:15 +05:30
phy-rockchip-inno-usb2.c
phy: rockchip-inno-usb2: correct 480MHz output clock stable time
2016-11-18 18:19:15 +05:30
phy-rockchip-pcie.c
phy-rockchip-pcie: remove deassert of phy_rst from exit callback
2016-11-05 13:45:02 +05:30
phy-rockchip-typec.c
phy: rockchip-typec: add pm runtime support
2016-09-10 17:13:29 +05:30
phy-rockchip-usb.c
phy: rockchip-usb: use rockchip_usb_phy_reset to reset phy during wakeup
2016-09-10 17:31:40 +05:30
phy-s5pv210-usb2.c
phy: fix semicolon.cocci warnings
2016-11-18 18:19:15 +05:30
phy-samsung-usb2.c
phy-samsung-usb2.h
phy-spear1310-miphy.c
phy-spear1340-miphy.c
phy-stih407-usb.c
phy: phy-stih407-usb: Use explicit reset_control_get_exclusive() API
2016-07-01 10:52:09 +01:00
phy-sun4i-usb.c
phy_sun4i_usb: set_mode: Allow using set_mode to force end the current session
2016-11-18 18:19:16 +05:30
phy-sun9i-usb.c
phy: sun9i-usb: fix error handling
2016-08-12 14:59:10 +05:30
phy-ti-pipe3.c
phy: Fix ptr_ret.cocci warnings
2016-11-18 18:19:16 +05:30
phy-tusb1210.c
phy-twl4030-usb.c
phy-twl4030-usb: initialize charging-related stuff via pm_runtime
2016-09-14 10:59:12 +05:30
phy-xgene.c
phy: xgene: rename "enum phy_mode" to "enum xgene_phy_mode"
2016-07-04 17:19:21 +05:30
ulpi_phy.h