Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp1665479rwe; Fri, 2 Sep 2022 01:24:31 -0700 (PDT) X-Google-Smtp-Source: AA6agR7I9dd0mzf+JJFV2RXVibloF6RL4eqOXrw7bPuLWbOc1kTHSMfnszesNRslSd0t/OBaHRwC X-Received: by 2002:a05:6a00:114c:b0:528:2c7a:6302 with SMTP id b12-20020a056a00114c00b005282c7a6302mr35303818pfm.37.1662107071674; Fri, 02 Sep 2022 01:24:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662107071; cv=none; d=google.com; s=arc-20160816; b=iBT23TOxuLHcW9nU8pxnq8HGMVXDUYw7iAwtaC7UPzatKxo240Y924IbGC/nqlS9rK 0aMKNt0Wq2/hHZLj3tPrk4uzHf6hUwAZURxqjeQk6lbFO1kDP57lyospW8rff6XDheZy VAB/kqkdJHtE7CzZDdXDW4YAT9fFJTfE4lItnTYyAf5vn2JTvMYGVw9RT/pY+T/cPzVm o+JOE20K365ftlU/h6JErFdALRG6GDfLoCjY5DkOvJTFopc2cf+RVP56s9TDnWb78Njx eVoE17YHjfbPzr9ltvcmLeDLzeqDovHzyoq3BDl3ZH8VkiPE6tgIoPcHd1WtKqkT1DAc HXXQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from; bh=CR+9rDjHR6CYICyvJ/K7wf1kkF7QGs2rjcC7VNQmB7o=; b=Tx7VCRcnq5qnCQdSVVY03tRocaAbb5dj4k0F7xZwQeLAX/IQK6GAwMbgyMZVGh1la5 fuLt9HMYLbERKrPYVn2Sfn8MTMPZPy+bS0QCg//NpIukbRaAfZNN85EE5f81fWN5EQrf fPqB5A6xGEBb2ONhTTPjd/rGAwfjIXP4UebJiS30pW0GSKcS748ZCubLknDG8+XQAlfR DK6n7exl8N5t548a9O8QBnJOFJEGW8QddMptya1WErwas3SNFhtWdobODY2s45ZEkW/p wuamzO6lyxs4fHg0L9tLX/OQIFXmIiJFg1w4/lkDLe+wGVLFQhD7x5VR0hBR/A9A6TYq J3Vg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d9-20020a631d09000000b00420f9b6a69fsi1561846pgd.28.2022.09.02.01.24.19; Fri, 02 Sep 2022 01:24:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235505AbiIBHyQ (ORCPT + 99 others); Fri, 2 Sep 2022 03:54:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42994 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235491AbiIBHyL (ORCPT ); Fri, 2 Sep 2022 03:54:11 -0400 Received: from frasgout.his.huawei.com (frasgout.his.huawei.com [185.176.79.56]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3D42EB69E4 for ; Fri, 2 Sep 2022 00:54:10 -0700 (PDT) Received: from fraeml706-chm.china.huawei.com (unknown [172.18.147.207]) by frasgout.his.huawei.com (SkyGuard) with ESMTP id 4MJqp247Ycz67VyR; Fri, 2 Sep 2022 15:50:18 +0800 (CST) Received: from lhrpeml500003.china.huawei.com (7.191.162.67) by fraeml706-chm.china.huawei.com (10.206.15.55) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2375.31; Fri, 2 Sep 2022 09:54:08 +0200 Received: from localhost.localdomain (10.69.192.58) by lhrpeml500003.china.huawei.com (7.191.162.67) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.24; Fri, 2 Sep 2022 08:54:05 +0100 From: John Garry To: CC: , , , , , , John Garry Subject: [PATCH v2 3/5] bus: hisi_lpc: Correct error code for timeout Date: Fri, 2 Sep 2022 15:47:19 +0800 Message-ID: <1662104841-55360-4-git-send-email-john.garry@huawei.com> X-Mailer: git-send-email 2.8.1 In-Reply-To: <1662104841-55360-1-git-send-email-john.garry@huawei.com> References: <1662104841-55360-1-git-send-email-john.garry@huawei.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.69.192.58] X-ClientProxiedBy: dggems702-chm.china.huawei.com (10.3.19.179) To lhrpeml500003.china.huawei.com (7.191.162.67) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Andy Shevchenko The usual error code is -ETIMEDOUT, the currently used -ETIME is specific for timers. Signed-off-by: Andy Shevchenko Reviewed-by: Rafael J. Wysocki Signed-off-by: John Garry --- drivers/bus/hisi_lpc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/bus/hisi_lpc.c b/drivers/bus/hisi_lpc.c index 03d4d96ff794..a6513a571d7b 100644 --- a/drivers/bus/hisi_lpc.c +++ b/drivers/bus/hisi_lpc.c @@ -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; } /* -- 2.35.3