From patchwork Mon Oct 12 15:46:47 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabio Estevam X-Patchwork-Id: 7377331 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 A802A9F1D5 for ; Mon, 12 Oct 2015 15:49:26 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id E3FEC20522 for ; Mon, 12 Oct 2015 15:49:25 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 15CF1207CA for ; Mon, 12 Oct 2015 15:49:25 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751659AbbJLPtY (ORCPT ); Mon, 12 Oct 2015 11:49:24 -0400 Received: from mail-qk0-f171.google.com ([209.85.220.171]:33221 "EHLO mail-qk0-f171.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751620AbbJLPtX (ORCPT ); Mon, 12 Oct 2015 11:49:23 -0400 Received: by qkas79 with SMTP id s79so59514236qka.0 for ; Mon, 12 Oct 2015 08:49:23 -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=MfbGMRnWLlyAs8Xd8rRRbty1fWEeRq2HNdNNQM75Lqg=; b=Jfl4/pjE4jhNji+94vbMrtS2kb2JaoOcD+acFPuYyb/Jz5iZp+WKZrzDj+WL8HaOdU FjEq4M1O6sLidkTKlwxnHM6zJtigAN4KhRz1KrvH47wRfC1a+mtfm5KtiGvp57dF4xPX LkArqj8LhSeCk9AitmRE+UC2xNb/Yx3dP8XEy0oH6nx7OFcy3+8r+RWP/d9PwBtyZRNE 5kuCqouJxZuC42MG+uwTeAGmqiHtaXhOgDg/NvV2zTbHVd287H35WmEvFdlmnN+Voobj S9B3hQ5jHtPeaX4tHelLXLrFkiQWWKL7Gqm0SDXnRPeGwljnf3oSBCJFFPAg3OXr3in0 Bj8w== X-Received: by 10.55.24.193 with SMTP id 62mr15541751qky.24.1444664963150; Mon, 12 Oct 2015 08:49:23 -0700 (PDT) Received: from localhost.localdomain ([189.5.18.107]) by smtp.gmail.com with ESMTPSA id 5sm7361990qkq.19.2015.10.12.08.49.20 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 12 Oct 2015 08:49:22 -0700 (PDT) From: Fabio Estevam To: bhelgaas@google.com Cc: pratyush.anand@gmail.com, m-karicheri2@ti.com, l.stach@pengutronix.de, linux-pci@vger.kernel.org, Fabio Estevam Subject: [PATCH v3 2/3] PCI: imx6: Use define instead of hard coded value Date: Mon, 12 Oct 2015 12:46:47 -0300 Message-Id: <1444664808-16445-2-git-send-email-festevam@gmail.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1444664808-16445-1-git-send-email-festevam@gmail.com> References: <1444664808-16445-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 Reviewed-by: Lucas Stach --- Changes since v2: - Use . instead of ; in the commit log 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");