Skip to content

Commit

Permalink
hwmon: (drivetemp) Fix SCT support if SCT data tables are not supported
Browse files Browse the repository at this point in the history
If SCT is supported but SCT data tables are not, the driver unnecessarily
tries to fall back to SMART. Use SCT without data tables instead in this
situation.

Fixes: 5b46903 ("hwmon: Driver for disk and solid state drives with temperature sensors")
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
  • Loading branch information
Guenter Roeck committed May 9, 2020
1 parent ae83d0b commit bcb543c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/hwmon/drivetemp.c
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,7 @@ static int drivetemp_identify_sata(struct drivetemp_data *st)
st->have_temp_highest = temp_is_valid(buf[SCT_STATUS_TEMP_HIGHEST]);

if (!have_sct_data_table)
goto skip_sct;
goto skip_sct_data;

/* Request and read temperature history table */
memset(buf, '\0', sizeof(st->smartdata));
Expand Down

0 comments on commit bcb543c

Please sign in to comment.