Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp1570626imm; Fri, 28 Sep 2018 22:58:31 -0700 (PDT) X-Google-Smtp-Source: ACcGV61mmb0YhUQotPN/W049bmVpNNGwjiKzcLvgY1Jbt/1hk7CXSb4Co1Q/z1zNjUSZ9zWGmXcV X-Received: by 2002:a63:86c8:: with SMTP id x191-v6mr1641634pgd.39.1538200711206; Fri, 28 Sep 2018 22:58:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538200711; cv=none; d=google.com; s=arc-20160816; b=U3tQHErfttuN3/e68Vr32yD0JJ61aQERGWRMbQW73MHv8/lfsDT/3i6G7S/vDV/DP2 lQus10chcgyPM0xo9YeT3AjWX/2i4JQSlKi8gGWjpRCOrJFamQMtr5wT4B6YDUNImY8c 9mVtqZPzOt3BojP4cmonlq+YHXYq7nkoKwVKJj+JlQEXF37i4wop0IdUCQCqLQEz1RZ4 WGdQ5LCiwzBqAk7/rAIoJFtHszHMk66LfI0U0EXEFQ4wMB6uWwMENC9EHv3J/jfMOxXw Z64JBYvqLAonQY65nM3gyD9orZ8ls7fURC1lYGGV/wUjGj36LOhl96YUnTAy7o9nQZ/Q KUzg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :references:in-reply-to:date:cc:to:from:subject:message-id; bh=gmv5HW1NHHs7akIzkLh3twhIu4vNeJlohK00gAOGon8=; b=sNAlifkLegIc+4iOMYXFiILOh5vY3hTq3X4jQOPuV0CyHuSlwqm6PCoaVJxStThqCw Hnj0l/npQyJ7ELAioPrhzid9DvHkcZXxlbiTuZDqZ1U5++hIWoZewE8Y5xB+F00TWaVB LTJfNIFYSDGB96OuWy1RGgZHlAtOIO4xE7glAYVNwqFUtQHFR9JSChbA1LUZ/u5V8mHH g9pjrfgAT9c06EnvzxXFSxPtVnjEjBV/6OKr+UcPKdl7ZqBKom3LD0RCW4NqSuBpNloA b12+BZpC6E5DxgKVb1nZ5k05O4LIBtH2tEW0dheHLFczogHkiGQLa/K41YIlUMaW/+9l dAeA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t80-v6si6963155pfk.228.2018.09.28.22.58.15; Fri, 28 Sep 2018 22:58:31 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727457AbeI2MZQ (ORCPT + 99 others); Sat, 29 Sep 2018 08:25:16 -0400 Received: from mailgw02.mediatek.com ([210.61.82.184]:9213 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1727362AbeI2MZP (ORCPT ); Sat, 29 Sep 2018 08:25:15 -0400 X-UUID: f4e8ce099007409596c57b2a305a28ca-20180929 Received: from mtkcas09.mediatek.inc [(172.21.101.178)] by mailgw02.mediatek.com (envelope-from ) (mhqrelay.mediatek.com ESMTP with TLS) with ESMTP id 1528896963; Sat, 29 Sep 2018 13:58:04 +0800 Received: from mtkcas09.mediatek.inc (172.21.101.178) by mtkmbs01n1.mediatek.inc (172.21.101.68) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Sat, 29 Sep 2018 13:58:02 +0800 Received: from [172.21.77.33] (172.21.77.33) by mtkcas09.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1395.4 via Frontend Transport; Sat, 29 Sep 2018 13:58:03 +0800 Message-ID: <1538200683.25778.6.camel@mtkswgap22> Subject: Re: [PATCH v5 0/9] PCI: mediatek: fixup find_port, enable_msi and add pm, module support From: Ryder Lee To: CC: , , , , , , , , , , , , , , Date: Sat, 29 Sep 2018 13:58:03 +0800 In-Reply-To: <1538129080-8206-1-git-send-email-honghui.zhang@mediatek.com> References: <1538129080-8206-1-git-send-email-honghui.zhang@mediatek.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.2.3-0ubuntu6 Content-Transfer-Encoding: 7bit MIME-Version: 1.0 X-MTK: N Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 2018-09-28 at 18:04 +0800, honghui.zhang@mediatek.com wrote: > From: Honghui Zhang > > This patchset includes misc patchs: > > The patch 1 fixup the mtk_pcie_find_port logic which will cause system > could not touch the EP's configuration space that connected to PCIe slot 1. > > The patch 2 fixup the class type for MT7622. > The patch 6 fixup the enable msi logic, the operation to enable msi > should be after system clock is enabled. Call mtk_pcie_enable_msi in > mtk_pcie_startup_port_v2 since the clock was all enabled at that time. > > The patch 7 was rebased and refactor of the v4 patch[1], changes are: > -Add PM support for MT7622. > -Using mtk_pcie_enable_port to re-establish the link when resumed. > -Rebased on this patchset. > > The patch 9 add loadable kernel module support. > > [1] https://patchwork.kernel.org/patch/10479079 > > Change since v4: > - Add patch 2 to fixup class type for MT7622. > - Add patch 3 to remove the redundant dev->pm_domain check > - Add patch 4 to covert to use pci_host_probe > - Add patch 5 to re-arrange the function define, this is a prepare patch for > fixup the enable_msi logic, no functional changed have been made by this one. > - Add patch 8 to save the GIC IRQ in mtk_pcie_port as a prepare patch for tear > down the irq when remove the kernel module. > - Re-arrange the find_port flow suggest by Lorenzo to make the code parse easier > for the patch 1. > - Remove the .pm_support in mtk_pcie_soc in patch 7 since if system pm was not > supported, then those pm callbacks will never be executed for MT7622. So the > .pm_support is not needed. > > Change since v3: > - Remove pm_runtime_XXX ops in suspend and resume callbacks in the third patch. > - Rebase to 4.19-rc1. > > Change since v2: > - Fix the list_for_each_entry_safe parameter error. > - Add Ryder's Acked-by flag. > > Change since v1: > - A bit of code refact of the first patch suggested by Andy Shevchenko, and > commit message updated. > - Using __maybe_unused. > - Remove the redundant list_empty check of the fourth patch. > > Honghui Zhang (9): > PCI: mediatek: Using slot's devfn for compare to fix > mtk_pcie_find_port logic > PCI: mediatek: Fixup class ID for MT7622 as PCI_CLASS_BRIDGE_PCI > PCI: mediatek: Remove the redundant dev->pm_domain check > PCI: mediatek: Convert to use pci_host_probe() > PCI: mediatek: Move the mtk_pcie_startup_port_v2 function's define > after mtk_pcie_setup_irq > PCI: mediatek: Enable msi after clock enabled > PCI: mediatek: Add system pm support for MT2712 and MT7622 > PCI: mediatek: Save the GIC IRQ in mtk_pcie_port > PCI: mediatek: Add loadable kernel module support > > drivers/pci/controller/Kconfig | 2 +- > drivers/pci/controller/pcie-mediatek.c | 326 +++++++++++++++++++++------------ > 2 files changed, 210 insertions(+), 118 deletions(-) > Acked-by: Ryder Lee for the whole series.