From patchwork Mon Apr 1 04:25:39 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrey Smirnov X-Patchwork-Id: 10879077 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 44AB6139A for ; Mon, 1 Apr 2019 04:26:43 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2AB91287B6 for ; Mon, 1 Apr 2019 04:26:43 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 1EDF3287EA; Mon, 1 Apr 2019 04:26:43 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id C753B2881E for ; Mon, 1 Apr 2019 04:26:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=PFImwyM0ctL7UPMPIsBWUJ5ch/l4bmgtN53jZtwTVLw=; b=cJXKNQYxt9sg+e WubKvF/QG6Z2WmgVPquMpxAUHsv11m4e8CvMaJg76dSlm580i6CRJWEoap+RVBpQZbJWgnGO3BXoC yI4wkFaOXukVE4wiAdnYPnHORFKZl8Ls7rd59WUb3u2FPUgIQ47dqbqAcXYwx5b5Zbp+/0rJfvu3E GlEZOkWtMoWqZbI1QEjH1DFGhZ7I7erlUxxeoWIXzTf7LaYu/d5EeMpeKZ8MXOfYPl/z0DAE+xkQC +iFuk0qfS0LgkCL6wPkN/9yfvc7jLaWlsH803co7yK7b00/FHPxBWHhlQaf+A0w8s5RfIpdAJtRrY i+cxfBZ2uOeUwBsbkKWA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1hAoWu-00049G-BN; Mon, 01 Apr 2019 04:26:40 +0000 Received: from mail-pl1-x641.google.com ([2607:f8b0:4864:20::641]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1hAoWL-0003QS-VX for linux-arm-kernel@lists.infradead.org; Mon, 01 Apr 2019 04:26:09 +0000 Received: by mail-pl1-x641.google.com with SMTP id ck15so2615333plb.3 for ; Sun, 31 Mar 2019 21:26:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=lRIMMJnFx48ZsTwclAff4hTCypRB7eLLBoMHJVX8zVw=; b=YdJza43BOnVXl9w4aQozS74ldOjIc2qmzmlWkf+Rwl8s9hWdwv0lPiAIAGYAlEf+C1 6sOKRcqWnBbADp51djipuN4KA5q8DAhPigCcZCZsap+TpsLaGBDDq/7gcQN3K4/CiDOT zK/pSCYjJRrKtwgCc6XM9H6wgayOD0bIHCh7p3ModGUslfawaNzTKShKHGknuQbvPF8/ 0PJJybLnyDeMDKlemP4vluJWGOFokCDDtAlYaOG3hWG76sV9f6VGZhNUHMPBfFyFDpoj wNP5mRdx/lRSWtJTKmIpsd6nzEgRrFrZsOhR9wnkDaXYdOn8P6zYOQ5WXamlKUnswHqy kXKw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=lRIMMJnFx48ZsTwclAff4hTCypRB7eLLBoMHJVX8zVw=; b=dN3845OA4572CeZVHMiVzsWndXY830Jj7FZYdiy/A5QRKlVRAZU01PnzSI9IzpXq+y oAjwamEm6HNb/fv0zkaaKenBj3X9wUiYrpLtzOhPr2MaEjBlxwonyJUUWjlNo6pQ1Znt OUFOvjVNGXaqKRDM0vo604eZGiYQ58HrxNWaNGLDO1cUjE4mfNDYaY3GCMDVSXsV6J6g /ZYYhiSNfHEWdYnbflLTt96vb1UraIlkcSfnF1ettTtj2RlKzMhu6lkuacuxcnUxEywD 4BsH0HD1mLovKxwBbscF7pV8GI0glFchK77O7uaAmpvpnxLwoph+6e0GKbkUdZAzKktd ZFGQ== X-Gm-Message-State: APjAAAX0yzdH6XbD68WwXcv7UU4n7tboGo2HJLl1xzPPFW4+h2ps61ME BlCD2woNtrBVjiAhju9LkDE= X-Google-Smtp-Source: APXvYqxffyBQyjAtvVDGeBIA7I3n5OMk2RMcayjx8YTwssnSmQDR2SuLAIdmd2JKzBnrn+YGHp6XWw== X-Received: by 2002:a17:902:6b81:: with SMTP id p1mr62773899plk.106.1554092764177; Sun, 31 Mar 2019 21:26:04 -0700 (PDT) Received: from squirtle.lan (c-24-22-235-96.hsd1.wa.comcast.net. [24.22.235.96]) by smtp.gmail.com with ESMTPSA id t22sm10996829pgu.45.2019.03.31.21.26.02 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 31 Mar 2019 21:26:03 -0700 (PDT) From: Andrey Smirnov To: linux-pci@vger.kernel.org Subject: [PATCH v3 03/11] PCI: imx6: Return -ETIMEOUT from imx6_pcie_wait_for_speed_change() Date: Sun, 31 Mar 2019 21:25:39 -0700 Message-Id: <20190401042547.14067-4-andrew.smirnov@gmail.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190401042547.14067-1-andrew.smirnov@gmail.com> References: <20190401042547.14067-1-andrew.smirnov@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190331_212606_501515_33EA6C58 X-CRM114-Status: GOOD ( 13.36 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: "A.s. Dong" , Lorenzo Pieralisi , Richard Zhu , linux-arm-kernel@lists.infradead.org, Andrey Smirnov , linux-kernel@vger.kernel.org, Fabio Estevam , linux-imx@nxp.com, Bjorn Helgaas , Leonard Crestez , Chris Healy , Lucas Stach Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Change error code from EINVAL to ETIMEDOUT in imx6_pcie_wait_for_speed_change() since that error code seems more appropriate. Cc: Lorenzo Pieralisi Cc: Bjorn Helgaas Cc: Fabio Estevam Cc: Chris Healy Cc: Lucas Stach Cc: Leonard Crestez Cc: "A.s. Dong" Cc: Richard Zhu Cc: linux-imx@nxp.com Cc: linux-arm-kernel@lists.infradead.org Cc: linux-kernel@vger.kernel.org Cc: linux-pci@vger.kernel.org Signed-off-by: Andrey Smirnov Reviewed-by: Lucas Stach --- drivers/pci/controller/dwc/pci-imx6.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/pci/controller/dwc/pci-imx6.c b/drivers/pci/controller/dwc/pci-imx6.c index 7582d0b2fbe7..3f4707072942 100644 --- a/drivers/pci/controller/dwc/pci-imx6.c +++ b/drivers/pci/controller/dwc/pci-imx6.c @@ -747,7 +747,7 @@ static int imx6_pcie_wait_for_speed_change(struct imx6_pcie *imx6_pcie) } dev_err(dev, "Speed change timeout\n"); - return -EINVAL; + return -ETIMEDOUT; } static void imx6_pcie_ltssm_enable(struct device *dev)