From patchwork Fri Jan 4 16:53:31 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrey Smirnov X-Patchwork-Id: 10748501 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 C307E91E for ; Fri, 4 Jan 2019 16:53:58 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B0CAB22B1F for ; Fri, 4 Jan 2019 16:53:58 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A45662621B; Fri, 4 Jan 2019 16:53:58 +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=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1DDCE22B1F for ; Fri, 4 Jan 2019 16:53:58 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726891AbfADQx5 (ORCPT ); Fri, 4 Jan 2019 11:53:57 -0500 Received: from mail-pl1-f196.google.com ([209.85.214.196]:35967 "EHLO mail-pl1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726053AbfADQx5 (ORCPT ); Fri, 4 Jan 2019 11:53:57 -0500 Received: by mail-pl1-f196.google.com with SMTP id g9so17675165plo.3; Fri, 04 Jan 2019 08:53:57 -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:mime-version :content-transfer-encoding; bh=KHC/zMtIBsgOaORZM1PGs7BI8KoWKlR6MHjCuPkH680=; b=uF2/qmwUquF5L+bNLOVzyUlm3r6wjN9Uv+W37NpsWru0ExE/Lk7SNsuucBVo2wAf4+ C5w7D8dkBZcoDOD2VZpxjKxBrV4aA+KqFHr97HrJXc2mVXpRWxUC3gnJ4ALm8oOC4QCN +GPGO+GeskloIq3NtNnedtrJCviBH6uWwasjBuVaUpYsHY2v1a321o6cJtoLD0NMihkP Teh3P0sVuGG9tZZpJ6g0zMya3C3fu4xxYB9TPVLC5P8FtlQujNyXFgpbCALZyLEUVwbY gZ7EoVHkJQbyZ3hTO2sMdSgarMUqKam6i9ns5n+qM5P8Cv55usZjR3HjZSPo/ZpQocP/ IDyw== 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:mime-version :content-transfer-encoding; bh=KHC/zMtIBsgOaORZM1PGs7BI8KoWKlR6MHjCuPkH680=; b=ZX74V8VFiCnYqij8qauGxRjMsz7tFWxTIsp6ZF2UxlQa5h2LhGQfhMfcfg01S9hzDz 0AiTYjfzsMVS+o1RdRKvyTOquBEtoiSoIOhWi6l2YMLNLx7aolKC6tMn+FMDAjSt/V06 tIoyDGIM0rS0Dx/sC49+R9x5lhcjqsKBUG0sMDNkcgzc+U+KGiJHM4epv+Iquad5QF1A +sxplHyP87b3sKvapXrwsOvUzHcmNyRBzJ/Tjsh2vJ3WxAZWmDG+31yuP7i/L06hMKbt jz8KyRJM4N3OiCe8UUoO1//IcxOZ0cG6MLVS5/U2ze9TCU8mfiew9F4og48Wx+PaF38p 5URg== X-Gm-Message-State: AJcUukczXKXrn1enfjTRdDh+FLVqKaMzLAW04u/GCH7Q/noFRDPA3NO0 OY3WkS0hXmeY4NrztHQMYGM= X-Google-Smtp-Source: ALg8bN5VITyWQzPo2idOKEn1GD9kVo+ZZ+YuJPiFgVMh5C6p12jU3RIH5eJtV0LS4Yzh1O6kw+kqlg== X-Received: by 2002:a17:902:4d46:: with SMTP id o6mr49524570plh.302.1546620836177; Fri, 04 Jan 2019 08:53:56 -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 p67sm101900564pfg.44.2019.01.04.08.53.53 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 04 Jan 2019 08:53:55 -0800 (PST) From: Andrey Smirnov To: Lorenzo Pieralisi Cc: Andrey Smirnov , Bjorn Helgaas , Fabio Estevam , Chris Healy , Lucas Stach , Leonard Crestez , "A.s. Dong" , Richard Zhu , linux-imx@nxp.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-pci@vger.kernel.org Subject: [PATCH v4 0/4] PCIE support for i.MX8MQ Date: Fri, 4 Jan 2019 08:53:31 -0800 Message-Id: <20190104165335.13205-1-andrew.smirnov@gmail.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Sender: linux-pci-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pci@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Everyone: This series contains changes I made in order to enable support of PCIE IP block on i.MX8MQ SoCs. Changes since [v3]: - Based on feedback from NXP, DIRECT_SPEED_CHANGE quirk was expanded to cover both i.MX7 and i.MX8MQ - Code setting device type in GPR12 moved to a standalone function - Explicit "fsl,controller-id" binding was dropped, replaced by using controller physical address to determine logical ID - Dropped Reviewed-by from Lucas for patch 4/4 due to the change above (haven't heard explicit "yea" for it from him) Changes since [v2], [fixes]: - Incorporated [patch] introducing drvdata - i.MX6 PHY operation gating converted to a single patch and to use a dedicated flag instead of doing explicit variant check - Kconfig entry changed to use ARM64 && ARCH_MXC - Dropped FALLTHROUGH annotations Changes since [v1]: - Driver changed to use single "fsl,controller-id" property to distinguish between two intances of PCIE IP block - All code pertaining to L1SS was dropped to simplify the patch - Documented additions to DT bindings Feedback is welcome! Thanks, Andrey Smirnov [v3] https://lore.kernel.org/linux-arm-kernel/20181218040702.29231-1-andrew.smirnov@gmail.com [patch] https://patchwork.kernel.org/patch/10712261/ [fixes] https://lore.kernel.org/linux-arm-kernel/20181216230916.22982-1-andrew.smirnov@gmail.com [v2] https://lore.kernel.org/linux-arm-kernel/20181206073545.10967-1-andrew.smirnov@gmail.com [v1] https://lore.kernel.org/linux-arm-kernel/20181117181225.10737-1-andrew.smirnov@gmail.com/ Andrey Smirnov (4): PCI: imx6: introduce drvdata PCI: imx6: Mark PHY functions as i.MX6 specific PCI: imx6: Convert DIRECT_SPEED_CHANGE quirk code to use a flag PCI: imx6: Add support for i.MX8MQ .../bindings/pci/fsl,imx6q-pcie.txt | 3 +- drivers/pci/controller/dwc/Kconfig | 4 +- drivers/pci/controller/dwc/pci-imx6.c | 150 +++++++++++++++--- 3 files changed, 133 insertions(+), 24 deletions(-)