1
0
Fork 0
alistair23-linux/drivers/usb/phy
George Cherian 2fc711d763 usb: phy: am335x: Enable USB remote wakeup using PHY wakeup
USB remote wakeup using PHY wakeup is supported only in standby mode.
Enabling the PHY_WKUP will break DS0 mode of system suspend.
If the same is enabled while entering DS0, AM33xx never stays in DS0,
it returns immediately from DS0. By default make the PHY wakeup
disabled, using sysfs entry enable the same manually to get
the remote wakeup working from standby.

echo enabled > /sys/bus/platform/device/<usb phy id>/power/wakeup
This will enable the PHY wakeup while going to standby.

PHY wakeup feature is required to wakeup  the system from standby
state. Since AM33xx has a bug in which PHY wakeup should not
be enabled while entering DS0, disable the same by default.
A user wishing to use USB wakeup from standby mode need to enable
the same using the sysfs entries.

Also remove am335x_phy_runtime_(suspend/resume) this driver doesnot really
enable/disable the clocks to the PHY.
Add am335x_phy_(suspend/resume) and use the same for enabling the PHY_WKUP.

Signed-off-by: George Cherian <george.cherian@ti.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
2013-12-19 09:27:41 -06:00
..
Kconfig usb: phy: add Keystone usb phy driver 2013-12-12 13:43:34 -06:00
Makefile usb: phy: add Keystone usb phy driver 2013-12-12 13:43:34 -06:00
am35x-phy-control.h usb: phy: Add AM335x PHY driver 2013-08-09 17:34:15 +03:00
of.c usb: add devicetree helpers for determining dr_mode and phy_type 2013-06-17 13:47:09 -07:00
phy-ab8500-usb.c usb: phy: initialize the notifier when add a new phy 2013-12-12 13:43:34 -06:00
phy-am335x-control.c usb: phy: am335x-control: Remove redundant of_match_ptr 2013-10-01 09:56:24 -05:00
phy-am335x.c usb: phy: am335x: Enable USB remote wakeup using PHY wakeup 2013-12-19 09:27:41 -06:00
phy-fsl-usb.c usb: phy: replace spinlock with mutex in OTG FSM 2013-11-26 10:58:18 -06:00
phy-fsl-usb.h usb: phy: move OTG FSM header 2013-11-26 10:58:18 -06:00
phy-fsm-usb.c usb: phy: move OTG FSM header 2013-11-26 10:58:18 -06:00
phy-generic.c Linux 3.13-rc4 2013-12-19 09:18:53 -06:00
phy-generic.h usb: phy: generic: fix how we find out about our resources 2013-11-25 10:25:57 -06:00
phy-gpio-vbus-usb.c usb: phy: initialize the notifier when add a new phy 2013-12-12 13:43:34 -06:00
phy-isp1301-omap.c USB: phy: remove custom DBG macro 2013-07-23 16:33:23 -07:00
phy-isp1301.c usb: phy: Fix NULL pointer exception during usb_get_phy 2013-05-15 17:32:47 +03:00
phy-keystone.c Linux 3.13-rc4 2013-12-19 09:18:53 -06:00
phy-msm-usb.c usb: phy: use dev_get_platdata() 2013-07-30 11:18:53 +03:00
phy-mv-u3d-usb.c usb: phy: mv-u3d: Staticize mv_u3d_phy_shutdown() 2013-08-09 16:34:21 +03:00
phy-mv-u3d-usb.h usb: phy: rename all phy drivers to phy-$name-usb.c 2013-03-18 11:18:08 +02:00
phy-mv-usb.c usb: phy: mv-usb: remove incorrect __exit_p annotation 2013-08-09 16:34:23 +03:00
phy-mv-usb.h usb: otg: mv_otg: remove unused clock 2013-04-02 11:42:45 +03:00
phy-mxs-usb.c Linux 3.13-rc4 2013-12-19 09:18:53 -06:00
phy-omap-control.c usb: phy: omap: get rid of omap_get_control_dev() 2013-10-03 15:47:31 -07:00
phy-omap-otg.c usb: omap1: OTG controller driver 2013-12-06 14:40:26 -06:00
phy-omap-usb3.c usb: phy: omap-usb3: Don't use omap_get_control_dev() 2013-10-03 15:47:31 -07:00
phy-rcar-gen2-usb.c Linux 3.13-rc4 2013-12-19 09:18:53 -06:00
phy-rcar-usb.c usb: phy: use dev_get_platdata() 2013-07-30 11:18:53 +03:00
phy-samsung-usb.c usb: phy: samsung: Add support HSIC on Exynos4X12 2013-05-28 20:16:37 +03:00
phy-samsung-usb.h usb: phy: samsung: Add support HSIC on Exynos4X12 2013-05-28 20:16:37 +03:00
phy-samsung-usb2.c USB: phy: samsung: Support multiple PHYs of same type 2013-10-29 16:46:48 -07:00
phy-samsung-usb3.c USB: phy: samsung: Support multiple PHYs of same type 2013-10-29 16:46:48 -07:00
phy-tahvo.c usb: omap1: Tahvo USB transceiver driver 2013-12-06 14:46:32 -06:00
phy-tegra-usb.c usb: phy: tegra-usb: Remove redundant of_match_ptr 2013-10-01 09:56:26 -05:00
phy-twl6030-usb.c usb: phy: twl6030-usb: Include linux/of.h header 2013-10-17 11:33:20 -05:00
phy-ulpi-viewport.c usb: Remove unnecessary semicolons 2013-10-11 16:26:46 -07:00
phy-ulpi.c usb: phy: rename all phy drivers to phy-$name-usb.c 2013-03-18 11:18:08 +02:00
phy.c usb: phy: initialize the notifier when add a new phy 2013-12-12 13:43:34 -06:00