diff options
author | Linux Build Service Account <lnxbuild@quicinc.com> | 2017-05-25 15:52:00 -0700 |
---|---|---|
committer | Gerrit - the friendly Code Review server <code-review@localhost> | 2017-05-25 15:51:59 -0700 |
commit | 09173073cfbc3e4196f400b2cd0ffbaba4670ebf (patch) | |
tree | e13927f55f33f0cdb06ac7dc5223875fe74f72bc /drivers | |
parent | 97b8c1c0f8156c82af900074d9f8f5a3ce20037f (diff) | |
parent | 33af82c1f52c4d11681555a4a078fe54e35f0217 (diff) |
Merge "spcom: silent error messages until spss link is up"
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/soc/qcom/spcom.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/soc/qcom/spcom.c b/drivers/soc/qcom/spcom.c index f406292a6c4d..8b2dc14b2400 100644 --- a/drivers/soc/qcom/spcom.c +++ b/drivers/soc/qcom/spcom.c @@ -2154,6 +2154,10 @@ static int spcom_device_open(struct inode *inode, struct file *filp) struct spcom_channel *ch; const char *name = file_to_filename(filp); + /* silent error message until spss link is up */ + if (!spcom_is_sp_subsystem_link_up()) + return -ENODEV; + pr_debug("Open file [%s].\n", name); if (strcmp(name, DEVICE_NAME) == 0) { |