Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp937292imw; Fri, 8 Jul 2022 14:50:15 -0700 (PDT) X-Google-Smtp-Source: AGRyM1swfHuqEY8OcKzjKe8BmozCOhs0IWu72/g0o+mOMMyBWb2Z9MLdtGQHpICFYX5t0knEHUIQ X-Received: by 2002:a63:7204:0:b0:40c:9dc6:57f1 with SMTP id n4-20020a637204000000b0040c9dc657f1mr5045251pgc.153.1657317015235; Fri, 08 Jul 2022 14:50:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657317015; cv=none; d=google.com; s=arc-20160816; b=PhNZhkDchaPqIG+JBe3kz8SCMLtUgL+RmfOOrGq32CWimfdJdzoECnfO4+EoKLmUto gstjQ0lgldLGbdnLlXlleZWTv12vuDxxEOSChvhzyeazbJRFsNBvqABdCYwKVNgQjIXy nrNao4nVwDkk6+1RKwvj4cU8evGivFlNk3z657PKthxkjzQNNNlTEr+cLK/X6rdNxArn X5CdYF9cP5z368kEAn8l5xpdUoqkzp5AtwcqSKHHqQLXvbzhCGo8In9xQ/BfspOOJt1f DpDlAQBfdQZSyGBleXSecAwe6v0WMTII28nnFD9VtTE/YVjYosIhsqUqeLSQD8K48kPA 5Kcg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=8cPMUXyEiH+S8YCyu5IuVqAh0se/neYc1Gh7Edw38hQ=; b=cRp3hHFf8PXvf1ua2MLNWLycRSS8j0lxEHVDDOm7d3W1uT4wPOkD4GDSflcMskyNlY 5c4c4n7ciZ2Cm3VLjvuKE2ArFOKQKE4PjJoWNSiT5MpLMMVGfnjYnA0Em8+BpOMfuei4 3yPIcEXOSGmq101ZA+Eg024wzlCbEWt26rjM1ujljkX0HQaBHMKSnm8YlPoL1BgB6cWq +gOCYqiJLhFACbERJr9HFwr2bMxwOvBI5jV6bvXa8bAAZnVifKwMdkzH6kjkIHDabIlE Y/ZHS3WtX8Cjvjq9SjM1Je8XdzZroB4dZT1Bor7SyT+JGywfRepJtEOhYFXRX+BTLxJn 97oA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b="Z/hI9tna"; 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=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f1-20020a63de01000000b0040d4ea0274fsi25266667pgg.697.2022.07.08.14.50.02; Fri, 08 Jul 2022 14:50:15 -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; dkim=pass header.i=@intel.com header.s=Intel header.b="Z/hI9tna"; 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=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240435AbiGHVJF (ORCPT + 99 others); Fri, 8 Jul 2022 17:09:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59630 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239867AbiGHVI4 (ORCPT ); Fri, 8 Jul 2022 17:08:56 -0400 Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3C0B119C39 for ; Fri, 8 Jul 2022 14:08:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1657314536; x=1688850536; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=MipkBwVboIvfu0j2zCoNnDzdVOGJWV6aLvl1LNNDEZ8=; b=Z/hI9tnaCXm5CIyH0jKG7E2ROv2AUbpg7Et3935R5k1xkgq5YV6ippmv gIKCAU3Vl6w/zE3lpLO0o5BSLri21Hjf4eEDi2hacKX5pIPMqs6l4pZ/E pVOD9WWlyjLok9MOQGaMCfXFUUuQPLJi2fDtV7R/QE9/UPArypsyXkjrL v02B1VywqU/dgecMuh6neWrxPN1po+OdnUsDGg/TMOq8XlE+PSAokDQYO JBFV3PluuE2DgTyhrXYO2Kjp65biF+UUudZ1oM9PKsLZlUGTZr/+4jha6 2T3okkgPOVeSbIApoD/jLrra7SqLNpZhegB+pvOg7XVuXla92Q3sHXinT g==; X-IronPort-AV: E=McAfee;i="6400,9594,10402"; a="370678951" X-IronPort-AV: E=Sophos;i="5.92,256,1650956400"; d="scan'208";a="370678951" Received: from orsmga005.jf.intel.com ([10.7.209.41]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Jul 2022 14:08:55 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.92,256,1650956400"; d="scan'208";a="770903044" Received: from black.fi.intel.com ([10.237.72.28]) by orsmga005.jf.intel.com with ESMTP; 08 Jul 2022 14:08:53 -0700 Received: by black.fi.intel.com (Postfix, from userid 1003) id A367B400; Sat, 9 Jul 2022 00:09:00 +0300 (EEST) From: Andy Shevchenko To: Andy Shevchenko , "Rafael J. Wysocki" , linux-kernel@vger.kernel.org Cc: john.garry@huawei.com Subject: [PATCH v2 3/4] bus: hisi_lpc: Correct error code for timeout Date: Sat, 9 Jul 2022 00:08:58 +0300 Message-Id: <20220708210859.6774-3-andriy.shevchenko@linux.intel.com> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220708210859.6774-1-andriy.shevchenko@linux.intel.com> References: <20220708210859.6774-1-andriy.shevchenko@linux.intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-5.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE,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 The usual error code is -ETIMEDOUT, the currently used -ETIME is specific for timers. Signed-off-by: Andy Shevchenko Acked-by: John Garry Reviewed-by: Rafael J. Wysocki --- v2: added tags (John, Rafael) 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.1