Merge "soc: qcom: glink_spi_xprt: Fix the suspend and resume sequence"
This commit is contained in:
commit
dbf87d1e56
1 changed files with 8 additions and 6 deletions
|
@ -210,11 +210,12 @@ static uint32_t negotiate_features_v1(struct glink_transport_if *if_ptr,
|
||||||
*/
|
*/
|
||||||
static int wdsp_suspend(struct glink_cmpnt *cmpnt)
|
static int wdsp_suspend(struct glink_cmpnt *cmpnt)
|
||||||
{
|
{
|
||||||
|
int rc = 0;
|
||||||
|
|
||||||
if (cmpnt && cmpnt->master_dev &&
|
if (cmpnt && cmpnt->master_dev &&
|
||||||
cmpnt->master_ops && cmpnt->master_ops->suspend)
|
cmpnt->master_ops && cmpnt->master_ops->suspend)
|
||||||
return cmpnt->master_ops->suspend(cmpnt->master_dev);
|
rc = cmpnt->master_ops->suspend(cmpnt->master_dev);
|
||||||
else
|
return rc;
|
||||||
return -EINVAL;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -225,11 +226,12 @@ static int wdsp_suspend(struct glink_cmpnt *cmpnt)
|
||||||
*/
|
*/
|
||||||
static int wdsp_resume(struct glink_cmpnt *cmpnt)
|
static int wdsp_resume(struct glink_cmpnt *cmpnt)
|
||||||
{
|
{
|
||||||
|
int rc = 0;
|
||||||
|
|
||||||
if (cmpnt && cmpnt->master_dev &&
|
if (cmpnt && cmpnt->master_dev &&
|
||||||
cmpnt->master_ops && cmpnt->master_ops->resume)
|
cmpnt->master_ops && cmpnt->master_ops->resume)
|
||||||
return cmpnt->master_ops->resume(cmpnt->master_dev);
|
rc = cmpnt->master_ops->resume(cmpnt->master_dev);
|
||||||
else
|
return rc;
|
||||||
return -EINVAL;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Add table
Reference in a new issue