|
@@ -3672,6 +3672,9 @@ int s3c_hsotg_suspend(struct dwc2_hsotg *hsotg)
|
|
unsigned long flags;
|
|
unsigned long flags;
|
|
int ret = 0;
|
|
int ret = 0;
|
|
|
|
|
|
|
|
+ if (hsotg->lx_state != DWC2_L0)
|
|
|
|
+ return ret;
|
|
|
|
+
|
|
mutex_lock(&hsotg->init_mutex);
|
|
mutex_lock(&hsotg->init_mutex);
|
|
|
|
|
|
if (hsotg->driver) {
|
|
if (hsotg->driver) {
|
|
@@ -3712,6 +3715,9 @@ int s3c_hsotg_resume(struct dwc2_hsotg *hsotg)
|
|
unsigned long flags;
|
|
unsigned long flags;
|
|
int ret = 0;
|
|
int ret = 0;
|
|
|
|
|
|
|
|
+ if (hsotg->lx_state == DWC2_L2)
|
|
|
|
+ return ret;
|
|
|
|
+
|
|
mutex_lock(&hsotg->init_mutex);
|
|
mutex_lock(&hsotg->init_mutex);
|
|
|
|
|
|
if (hsotg->driver) {
|
|
if (hsotg->driver) {
|