mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-27 03:10:12 +00:00
hwmon: (drivetemp) Fix SCT support if SCT data tables are not supported
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: 5b46903d8b
("hwmon: Driver for disk and solid state drives with temperature sensors")
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
This commit is contained in:
parent
ae83d0b416
commit
bcb543cc3d
1 changed files with 1 additions and 1 deletions
|
@ -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));
|
||||
|
|
Loading…
Reference in a new issue