From patchwork Sat Oct 3 21:11:31 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabio Estevam X-Patchwork-Id: 7322631 X-Patchwork-Delegate: bhelgaas@google.com Return-Path: X-Original-To: patchwork-linux-pci@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 4B7979F1B9 for ; Sat, 3 Oct 2015 21:12:06 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 75E0220795 for ; Sat, 3 Oct 2015 21:12:05 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 9CAAC20794 for ; Sat, 3 Oct 2015 21:12:04 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750921AbbJCVMD (ORCPT ); Sat, 3 Oct 2015 17:12:03 -0400 Received: from mail-qg0-f42.google.com ([209.85.192.42]:35234 "EHLO mail-qg0-f42.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750898AbbJCVMD (ORCPT ); Sat, 3 Oct 2015 17:12:03 -0400 Received: by qgt47 with SMTP id 47so121575286qgt.2 for ; Sat, 03 Oct 2015 14:12:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=jP0zrcPcQqBMKfBBMtApcweAgJqmRtQo8Oi8fdfXDAY=; b=HhAGFgZ0NYw9AdYYKNmPpA014AihKT3yr/y+XpO7f4CKIuLLpjT/5jzekgE7/2joOU eDfUNADdKpV6q25N7dbYENWxCik+U7aMrW7MVMnsCrk7QPUM2L6GyOTobe3Lru1Q3dHG afLWHzhHu12IhIUfZnBQ+pz3aKbo3Fe2pCReZQuUY5uVE6MmpkVaPQ4UAuxuOoRQNl0U 0MlAt8yoMF4ui1NnKVNmpUGWnCICdeaRuumo/WmEQjPjozg4UnjWGAZq7NeeBsxgCYLt GDRWcLqMiJjWXp8JLzX6sFZFW+aKUsnAjZuh4w2+i5freSrEmpt6BndOTLIPN93ZVUfd 1flA== X-Received: by 10.140.43.70 with SMTP id d64mr28567661qga.11.1443906721603; Sat, 03 Oct 2015 14:12:01 -0700 (PDT) Received: from localhost.localdomain ([189.5.19.77]) by smtp.gmail.com with ESMTPSA id d9sm7591086qka.49.2015.10.03.14.11.59 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sat, 03 Oct 2015 14:12:01 -0700 (PDT) From: Fabio Estevam To: bhelgaas@google.com Cc: pratyush.anand@gmail.com, l.stach@pengutronix.de, linux-pci@vger.kernel.org, Fabio Estevam Subject: [PATCH 2/2] PCI: imx6: Use define instead of hard coded value Date: Sat, 3 Oct 2015 18:11:31 -0300 Message-Id: <1443906691-14642-2-git-send-email-festevam@gmail.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1443906691-14642-1-git-send-email-festevam@gmail.com> References: <1443906691-14642-1-git-send-email-festevam@gmail.com> Sender: linux-pci-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pci@vger.kernel.org X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, T_DKIM_INVALID, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Fabio Estevam Use LTSSM_STATE_RCVRY_LOCK define instead of hard coded value in order to improve the code readability; Signed-off-by: Fabio Estevam --- drivers/pci/host/pci-imx6.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/pci/host/pci-imx6.c b/drivers/pci/host/pci-imx6.c index 6f43086..4e7b577 100644 --- a/drivers/pci/host/pci-imx6.c +++ b/drivers/pci/host/pci-imx6.c @@ -508,7 +508,7 @@ static int imx6_pcie_link_up(struct pcie_port *pp) if (rx_valid & PCIE_PHY_RX_ASIC_OUT_VALID) return 0; - if ((debug_r0 & PCIE_PHY_DEBUG_R0_LTSSM_MASK) != 0x0d) + if ((debug_r0 & PCIE_PHY_DEBUG_R0_LTSSM_MASK) != LTSSM_STATE_RCVRY_LOCK) return 0; dev_err(pp->dev, "transition to gen2 is stuck, reset PHY!\n");