diff options
author | Robert Mustacchi <rm@fingolfin.org> | 2020-11-20 10:06:59 -0800 |
---|---|---|
committer | Robert Mustacchi <rm@fingolfin.org> | 2020-12-10 16:52:18 -0800 |
commit | 15174c59605d00b59ea3aae8ba85744a42aa1e96 (patch) | |
tree | 841d99419682eea65238af309bed37fe29cd252b /usr/src | |
parent | 9a2cc6e2be46528f552f7ed112fed60a329cd001 (diff) | |
download | illumos-joyent-15174c59605d00b59ea3aae8ba85744a42aa1e96.tar.gz |
13343 some mlxcx devices don't support temperature sensors
Reviewed by: C Fraire <cfraire@me.com>
Reviewed by: Jerry Jelinek <gjelinek@gmail.com>
Reviewed by: Andy Fiddaman <andy@omnios.org>
Reviewed by: Paul Winder <paul@winder.uk.net>
Approved by: Dan McDonald <danmcd@joyent.com>
Diffstat (limited to 'usr/src')
-rw-r--r-- | usr/src/uts/common/io/mlxcx/mlxcx.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/usr/src/uts/common/io/mlxcx/mlxcx.c b/usr/src/uts/common/io/mlxcx/mlxcx.c index 90964d2fd1..9aae5244de 100644 --- a/usr/src/uts/common/io/mlxcx/mlxcx.c +++ b/usr/src/uts/common/io/mlxcx/mlxcx.c @@ -2874,10 +2874,14 @@ mlxcx_attach(dev_info_t *dip, ddi_attach_cmd_t cmd) } mlxp->mlx_attach |= MLXCX_ATTACH_CHKTIMERS; - if (!mlxcx_setup_sensors(mlxp)) { - goto err; + /* + * Some devices may not have a working temperature sensor; however, + * there isn't a great way for us to know. We shouldn't fail attach if + * this doesn't work. + */ + if (mlxcx_setup_sensors(mlxp)) { + mlxp->mlx_attach |= MLXCX_ATTACH_SENSORS; } - mlxp->mlx_attach |= MLXCX_ATTACH_SENSORS; /* * Finally, tell MAC that we exist! |