Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp561109rwe; Thu, 1 Sep 2022 04:25:39 -0700 (PDT) X-Google-Smtp-Source: AA6agR42lzAUGTgI4iPC+Vuk7JZsb4OJsTjEtdu/IQ4qpvNnhZwyXJ2ho/YKOYh5g3ybdM9tlBMp X-Received: by 2002:a17:907:a218:b0:731:5e2c:c28a with SMTP id qp24-20020a170907a21800b007315e2cc28amr22860883ejc.472.1662031539234; Thu, 01 Sep 2022 04:25:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662031539; cv=none; d=google.com; s=arc-20160816; b=bz/bvY3za63OXeR/KcfgHc1PEp/gc4uxbMQigIJ78VSEWjI0LTlP6cNrDYCvC1+38R EXYo5Y5fSzUVC5OhqRHAz14j9zVjcENA/kEkHEojxhLNAvICoQ2bJiC2XIz8Q6EVJIXx PK3FHY38p9e+VoRCS2np7bI41+/HJ3+4A7NTxjPaHvEC8X7c1JTHUxXdjXvu0zNq6ZsO of3pgrYMYMBpHrogENSS8QTiRqE4e+JYtNUmUpRjgn3uopWlaqhdD44Eh3Qz4xYgBcdG Rhhu/TJR1UlRkKXSNvXb5U1LEDHU0TVDdI3S5EMzOwtMtRntB+zOvYn1hTgA0/KYUvQX ib0w== 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=z+oH829Y91QBnCYz1UGOlvI8CqkStHIDZY8pP59UJkN7u7qzaR1vGiVXgg/swMUmRQ LT3Q0t599+oEP5yFvME82pWXf2asX5eZNkihtAOOb2iiFvvQAwnEi4aJafFZ5gmftbHt coy9vgpM9sZTODF9Mfj+W2c8RPhEcUzjbDviePzZZojbDCugBB7+tccRzro4U/Oe5f4t 4danZiGFJ4TZzr5Tqp5LK4sLptbgDyxPNavcMO67vA3oLktZPcymboQ2cnHui5l6d+1+ aIKlgMBvvxLAqHitVE7jguUEEanAYVEzczg0z1uMTrXjkeMZRd/XT8LEENbI2d1swd0H os8g== 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 q16-20020a50aa90000000b004486f44f266si1476751edc.147.2022.09.01.04.24.49; Thu, 01 Sep 2022 04:25:39 -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 S234406AbiIALVX (ORCPT + 99 others); Thu, 1 Sep 2022 07:21:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43802 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234221AbiIALVM (ORCPT ); Thu, 1 Sep 2022 07:21:12 -0400 Received: from frasgout.his.huawei.com (frasgout.his.huawei.com [185.176.79.56]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9841E125B99 for ; Thu, 1 Sep 2022 04:21:11 -0700 (PDT) Received: from fraeml711-chm.china.huawei.com (unknown [172.18.147.207]) by frasgout.his.huawei.com (SkyGuard) with ESMTP id 4MJJW64sQcz67nFV; Thu, 1 Sep 2022 19:20:34 +0800 (CST) Received: from lhrpeml500003.china.huawei.com (7.191.162.67) by fraeml711-chm.china.huawei.com (10.206.15.60) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Thu, 1 Sep 2022 13:21:09 +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; Thu, 1 Sep 2022 12:21:05 +0100 From: John Garry To: CC: , , , , , , John Garry Subject: [PATCH 3/5] bus: hisi_lpc: Correct error code for timeout Date: Thu, 1 Sep 2022 19:14:29 +0800 Message-ID: <1662030871-182688-4-git-send-email-john.garry@huawei.com> X-Mailer: git-send-email 2.8.1 In-Reply-To: <1662030871-182688-1-git-send-email-john.garry@huawei.com> References: <1662030871-182688-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: dggems701-chm.china.huawei.com (10.3.19.178) 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