From patchwork Sat Nov 17 18:12:24 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrey Smirnov X-Patchwork-Id: 10687579 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 ADA4E109C for ; Sat, 17 Nov 2018 18:13:54 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9FBB12AB9E for ; Sat, 17 Nov 2018 18:13:54 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9315A2ABA2; Sat, 17 Nov 2018 18:13:54 +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=-3.6 required=2.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_LOW 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 34FDF2AB9E for ; Sat, 17 Nov 2018 18:13:54 +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=CE2taNGyXkXP3FB4ECcjVmz80KAJ2ScSegVagWMn988=; b=apsRtr6p6ovFpB a17jYwTgl0pN2Lcv3xS1CPVnQkbdlNdeoajN7vndx7xZzE5gLpTFylrSx4nrz5sW/IDnYuQZ43Xhh 9QJ7ZaEagxWLJ1u3e2wuqIPN+nVORyQME/GHO4bm3/MkOZJNpkUXD5TpPl+JfQ4RrArrZMPp8/MBl TvYKFtQZLuumgyLtPw/8MDGuFCsNldkTQ5jlD1LWdl9PB01fgZA+hdbtADqquHqXkRBb2SfD6Wl9B 45PVpT3JzCD6qp7UK4nncolIIl2Ozyi3bhg+dzMgVkOXAfwvCPsbNHOXiisFl27F9JEodoZoSF7CR 5dxtuiFMGfYIGxx7fOEg==; 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 1gO56L-0007af-BG; Sat, 17 Nov 2018 18:13:49 +0000 Received: from mail-pg1-x544.google.com ([2607:f8b0:4864:20::544]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gO55G-0006aU-Fz for linux-arm-kernel@lists.infradead.org; Sat, 17 Nov 2018 18:12:47 +0000 Received: by mail-pg1-x544.google.com with SMTP id z11so9372839pgu.0 for ; Sat, 17 Nov 2018 10:12:35 -0800 (PST) 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=CoWFU1/M/sA4Uua5q8QjmehvJJkUh/dgmdZgvo6IB4o=; b=U15FXuPyYjgm74usoStLKy0hs6jJwJvgfqtfFuDvP/TckaFJPVhw6ZDGuKGdfGgcl7 OCqyIE+elzhziy/3/rcKgCwqXUQXNNt1dylLTJlPcCWdLoPHWYzD76JTHpvVebbHyBXG VAzmYnwkkl8Ck4zRjwYpECAHVCYrzYUQH2Jx5FRmcSqxg2QNITziQhxJlyAkjU/GocX7 PVhpsRqGmzB0QXuh36se/DHqZUxvnAavZGXP5YNju/l9FT4kknSbbcmkLp7kHgiFoEOY gQ4l6OIRZMk3QKXMxswsd9IEWmAixpDhxGXvFyramGlQdhCeWwvRv8G5DmuQTSPdNxLB 49bw== 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=CoWFU1/M/sA4Uua5q8QjmehvJJkUh/dgmdZgvo6IB4o=; b=s4kQsqFwgseC4f+FhkIuWufDDDdlwQUgxBdU7Ts0hcvncmChrxlO8rMbGJ0D51OndU gDQ71Nt9qR7iEPKEgae4LKw+r3i6WEcFcA/uz5aHgk89mRQKYo22182zq3ityETrjpg1 IRKln4sy93VSBPqBnff86AlmhrQsTNKUyvqbKB+aa9wlIVty4VOkVmBARdOYQoB9f49t vXF2IVvp9UzsaUjSWC8Yd5A5cAa1qRqaVwU0isen6N/ZvuZvCp2zOT800Y3hDItKGZWC jXii3TofqLUuO+A6ScNqQzixY1XQdI2GdbVpIXRZTtrX8C77Jq8T1SPAlVyqOfOgzF7v IU9w== X-Gm-Message-State: AGRZ1gJHTlQB6BgTp8tFMIYej2Iv3KS+lykLTjULRVVUrOCc70QDDcm0 gs53cSrEotMUp/6kMoYIL5YJfnUvmA8= X-Google-Smtp-Source: AJdET5fM/iP+NFCY8lZwmVr07B9Ax31Kxyn0cj5vonUZ+0XPeS++u1xDpnuQEs1nxnB53ovmLPgoGQ== X-Received: by 2002:a63:8043:: with SMTP id j64mr14596108pgd.405.1542478354918; Sat, 17 Nov 2018 10:12:34 -0800 (PST) Received: from squirtle.lan (c-24-22-235-96.hsd1.wa.comcast.net. [24.22.235.96]) by smtp.gmail.com with ESMTPSA id t2sm13868196pfm.32.2018.11.17.10.12.33 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sat, 17 Nov 2018 10:12:34 -0800 (PST) From: Andrey Smirnov To: linux-kernel@vger.kernel.org Subject: [PATCH 2/3] PCI: imx: No-op imx6_pcie_reset_phy() on i.MX7D Date: Sat, 17 Nov 2018 10:12:24 -0800 Message-Id: <20181117181225.10737-3-andrew.smirnov@gmail.com> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20181117181225.10737-1-andrew.smirnov@gmail.com> References: <20181117181225.10737-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-20181117_101242_646865_BA978150 X-CRM114-Status: GOOD ( 12.48 ) 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" , Richard Zhu , linux-arm-kernel@lists.infradead.org, Andrey Smirnov , linux-pci@vger.kernel.org, Fabio Estevam , linux-imx@nxp.com, bhelgaas@google.com, Leonard Crestez , cphealy@gmail.com, l.stach@pengutronix.de 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 PCIE PHY IP block on i.MX7D differs from the one used on i.MX6 family, so none of the code in current implementation of imx6_pcie_reset_phy() is applicable. Cc: bhelgaas@google.com Cc: Fabio Estevam Cc: cphealy@gmail.com Cc: l.stach@pengutronix.de 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 --- drivers/pci/controller/dwc/pci-imx6.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/pci/controller/dwc/pci-imx6.c b/drivers/pci/controller/dwc/pci-imx6.c index c140f7987598..3c3002861d25 100644 --- a/drivers/pci/controller/dwc/pci-imx6.c +++ b/drivers/pci/controller/dwc/pci-imx6.c @@ -245,6 +245,9 @@ static void imx6_pcie_reset_phy(struct imx6_pcie *imx6_pcie) { u32 tmp; + if (imx6_pcie->variant == IMX7D) + return; + pcie_phy_read(imx6_pcie, PHY_RX_OVRD_IN_LO, &tmp); tmp |= (PHY_RX_OVRD_IN_LO_RX_DATA_EN | PHY_RX_OVRD_IN_LO_RX_PLL_EN);