Merge tag 'for-5.14/io_uring-2021-06-30' of git://git.kernel.dk/linux-block
[linux-2.6-microblaze.git] / drivers / hwmon / sparx5-temp.c
index 1a2b102..98be48e 100644 (file)
@@ -56,7 +56,7 @@ static int s5_read(struct device *dev, enum hwmon_sensor_types type,
        case hwmon_temp_input:
                stat = readl_relaxed(hwmon->base + TEMP_STAT);
                if (!(stat & TEMP_STAT_VALID))
-                       return -EIO;
+                       return -EAGAIN;
                value = stat & TEMP_STAT_TEMP;
                /*
                 * From register documentation: