diff options
author | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2018-05-29 07:28:32 +0300 |
---|---|---|
committer | Joel Stanley <joel@jms.id.au> | 2018-05-30 06:05:22 +0300 |
commit | 1305f7cf04b913b789796bb6938f86bed9c7181a (patch) | |
tree | 94712c5d110b3e33c5bb7bd09fd9f3e75a0625a0 | |
parent | 0db42f180ca97e889f8098423d7f645579b76a35 (diff) | |
download | linux-1305f7cf04b913b789796bb6938f86bed9c7181a.tar.xz |
hwmon: occ: Avoid displaying an error when host is down
Instead display a much less scary informational message as
this can happen in normal circumstances.
OpenBMC-Staging-Count: 1
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Joel Stanley <joel@jms.id.au>
-rw-r--r-- | drivers/hwmon/occ/common.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/hwmon/occ/common.c b/drivers/hwmon/occ/common.c index 365bf207cf0d..16fcae4b45bc 100644 --- a/drivers/hwmon/occ/common.c +++ b/drivers/hwmon/occ/common.c @@ -1359,7 +1359,10 @@ int occ_setup(struct occ *occ, const char *name) /* no need to lock */ rc = occ_poll(occ); - if (rc < 0) { + if (rc == -ESHUTDOWN) { + dev_info(occ->bus_dev, "host is not ready\n"); + return rc; + } else if (rc < 0) { dev_err(occ->bus_dev, "failed to get OCC poll response: %d\n", rc); return rc; |