bus: hisi_lpc: Correct error code for timeout
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Mon, 5 Sep 2022 08:23:04 +0000 (16:23 +0800)
committerWei Xu <xuwei5@hisilicon.com>
Thu, 8 Sep 2022 02:27:29 +0000 (02:27 +0000)
The usual error code is -ETIMEDOUT, the currently used -ETIME is specific
for timers.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Signed-off-by: John Garry <john.garry@huawei.com>
Signed-off-by: Wei Xu <xuwei5@hisilicon.com>
drivers/bus/hisi_lpc.c

index 03d4d96ff7947d4db0f31b245f43057cd3ddc42d..a6513a571d7bbd0bd89289039c9a6b12beb82324 100644 (file)
@@ -85,7 +85,7 @@ static int wait_lpc_idle(void __iomem *mbase, unsigned int waitcnt)
                ndelay(LPC_NSEC_PERWAIT);
        } while (--waitcnt);
 
-       return -ETIME;
+       return -ETIMEDOUT;
 }
 
 /*