Hello, As part of an effort to bring suspend to RAM support to Armada 3700 SoCs (main target: ESPRESSObin), this series handles the work around the USB2 and USB32 IPs. First, a change in the core adds support for the new PHY framework by following the phy_set_mode()/phy_power_on() sequence (patch 1). The second change needed is to update the xHCI MVEBU driver (patch 2) with the XHCI_RESET_ON_RESUME quirk that will do most of the reconfiguration work when resuming. Then, because of the asynchronous suspend feature implemented lately, the xHCI driver was blocking during the S2RAM operation, probably due to a register access while the clock was not enabled. A first patch has been written for that, adding a new quirk to ignore the asynchronous setting [1] which has become useless once clock links with consumer have been contributed [2] (series not merged yet). Then, the OHCI Orion (USB2 host controller) driver is updated to avoid doing twice the PHY management (patch 3) and upgraded with traditional S2RAM callbacks (patch 4). [1] http://code.bulix.org/s2ccd4-511198 [2] http://lists.infradead.org/pipermail/linux-arm-kernel/2019-January/623885.html Thanks, Miquèl Changes since v4: ================= * ehci: the ehci_suspend/resume() API is not symmetrical, on the resume path the second parameter is force_reset and should be set to false, not to device_may_wakeup(). * ehci: with the above addressed, added Alan's ack. * Drop PHY and DT patches: will be sent in another series. Changes since v3: ================= * Bindings: as suggested by Gregory and Rob, used the "-misc" suffix instead of "-miscellaneous" and prefixed the compatible with "armada-3700" to follow what has been used for the other IPs of the same SoC (and added Rob's ack). * Orion driver: added Alan's ack on the removal of the double PHY initialization. * Orion driver: removed the superfluous calls to ehci_prepare_ports_for_controller_suspend() (reported by Alan). Changes since v2: ================= * Typos * UTMI PHY bindings: > New name for the USB2 host/PHY syscons (+ changes in the DT). > Clearly state that the PHYs are different between OTG and host-only controllers. * UTMI PHY driver: > Use GENMASK macro. > Removed useless checks on driver data retrieval. > Dropped the empty ->remove() hook. > Updated the licence macro to match the SPDX tag. > Used the of_device_get_match_data() helper. > Removed the use of a local variable in the ->probe() for the driver's operations. > Fixed the driver co-author: Igal, not Evan. * xHCI mvebu driver: > Used Armada 38x naming convention: s/Armada 3700 SoC/Armada 37xx SoC/ > Added Gregory's Reviewed-by tag. Changes since v1: ================= * Add UTMI PHY driver/bindings/DT changes to bring S2RAM support to both USB ports available on the A3700 SoC. * Updates to the OHCI Orion driver to avoid doing the PHY initialization twice. * Upgrade of the OHCI Orion driver with S2RAM callbacks. * Added a reference to the A3700 SoC in the USB Host Kconfig prompt (not only in the help section). * Rebased on top of v5.0-rc1. Miquel Raynal (3): usb: core: comply to PHY framework usb: ehci-orion: avoid double PHY initialization usb: ehci-orion: add S2RAM support Ofer Heifetz (1): usb: host: xhci: mvebu: add reset on resume quirk drivers/usb/core/hcd.c | 5 ++++ drivers/usb/core/phy.c | 28 ++++++++++++++++++++++ drivers/usb/core/phy.h | 2 ++ drivers/usb/host/Kconfig | 4 ++-- drivers/usb/host/ehci-orion.c | 44 +++++++++++++++++------------------ drivers/usb/host/xhci-mvebu.c | 11 +++++++++ drivers/usb/host/xhci-mvebu.h | 6 +++++ drivers/usb/host/xhci-plat.c | 7 ++++++ 8 files changed, 82 insertions(+), 25 deletions(-) -- 2.19.1