usb: host: ehci-msm: Conditionally call ehci suspend/resume
authorAndy Gross <andy.gross@linaro.org>
Fri, 20 May 2016 21:35:07 +0000 (16:35 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 8 Jun 2016 05:15:25 +0000 (22:15 -0700)
commit815c9d6a3caeb803ae36d09788c8969b85ce7e4c
treec773dcf6e9c5f16a0b784dfcb6fdd19972afd1c7
parent1700bd9872dcd06a284c38c1ce33bba0f239dbd3
usb: host: ehci-msm: Conditionally call ehci suspend/resume

This patch fixes a suspend/resume issue where the driver is blindly
calling ehci_suspend/resume functions when the ehci hasn't been setup.
This results in a crash during suspend/resume operations.

Signed-off-by: Andy Gross <andy.gross@linaro.org>
Tested-by: Pramod Gurav <pramod.gurav@linaro.org>
Acked-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/host/ehci-msm.c