Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp3532437imm; Mon, 2 Jul 2018 00:22:22 -0700 (PDT) X-Google-Smtp-Source: ADUXVKLllxgRR1EMJEZv0QPeVqtSBExPHWYTwNNOYxTrITCMfOR/B290M3a69KjAwipMJonfu3b8 X-Received: by 2002:a63:2704:: with SMTP id n4-v6mr20194747pgn.87.1530516142849; Mon, 02 Jul 2018 00:22:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530516142; cv=none; d=google.com; s=arc-20160816; b=C1f5RxiJg0s1ZwvhOtLcm6s7pqzKupeT5ADrPfez2Z17AsffYw5u92uSXsdMxl/DbK bF9S10hCX1ednP+rzqiVDe9VLhx5CgItNhiRp77Bzx2+KO4zn7mnxIkTYO9Y3fZSgpdp XUDbFwt4fuT2Y05ZWd0ej4l75eAXRRkTnuvucqmPe/k1JDRcsHYfgLXnTW7F7TO8Y/a2 YcBhdwz2YG/gpM7wXWS7YuEm/k0xrNnASNohBBWHQEHYvPBM6oayLqAKdiPEgO5JD2WX 6NwvzEwBGexZIJvHAAcGjk+FV6L7SlBkwREByCKEogJbeCXkvMxKrhRq+0PXmVdeyTj0 0/0g== 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 :arc-authentication-results; bh=NSLnj9EkKoUu9DhiQqxoTElcGhNjaRKpd8eEo8Riq6k=; b=ME4+II4i7Vov6JalCJh3/Ooeihpa1qaG64ZLgQ9gBZFXj974wYMd4jG0XewEy52KTn b7wLfV4USM0xWhdGDgYDRTlono58Okp6+p5H32l6o3UTE3BoyRsG0SQ3TGFg0i1k/gJv fSxRezZRMVFYGsR9FfG5TeXOkiEpiV1NKU3KT0Di0LCCP3mhSfS+LV1asKvysnUf/Yq+ pkME6xiOZ+TWhayVC6R2OA4stQ9/4vS2Ttp36kRgfddXF8FV+E6YpHDxtiHS/0zT08gj z/RtplorTm2rPyDF70PXzptB83K0eHK15Hy9opvM4r5kZHonkkYkn+lWBtaN062hfQ8T 5JUQ== 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 d132-v6si13760831pga.355.2018.07.02.00.22.08; Mon, 02 Jul 2018 00:22:22 -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 S1753553AbeGBGsZ (ORCPT + 99 others); Mon, 2 Jul 2018 02:48:25 -0400 Received: from mailgw02.mediatek.com ([210.61.82.184]:36005 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1752973AbeGBGsY (ORCPT ); Mon, 2 Jul 2018 02:48:24 -0400 X-UUID: 45709eb789fe4d11b658f7591e232504-20180702 Received: from mtkexhb02.mediatek.inc [(172.21.101.103)] by mailgw02.mediatek.com (envelope-from ) (mhqrelay.mediatek.com ESMTP with TLS) with ESMTP id 1072964125; Mon, 02 Jul 2018 14:48:21 +0800 Received: from mtkcas09.mediatek.inc (172.21.101.178) by mtkmbs08n2.mediatek.inc (172.21.101.56) with Microsoft SMTP Server (TLS) id 15.0.1210.3; Mon, 2 Jul 2018 14:48:19 +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.1210.3 via Frontend Transport; Mon, 2 Jul 2018 14:48:20 +0800 Message-ID: <1530514099.6415.1.camel@mtkswgap22> Subject: Re: [PATCH v2 0/4] PCI: mediatek: fixup find_port, enable_msi and add pm, module support From: Ryder Lee To: CC: , , , , , , , , , , , , , , , Date: Mon, 2 Jul 2018 14:48:19 +0800 In-Reply-To: <1530503384-1218-1-git-send-email-honghui.zhang@mediatek.com> References: <1530503384-1218-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 Mon, 2018-07-02 at 11:49 +0800, honghui.zhang@mediatek.com wrote: > From: Honghui Zhang > > This patchset includes misc patchs: > > The first patch fixup the mtk_pcie_find_port logical which will cause system > could not touch the EP's configuration space which was connected to PCIe slot 1. > > The second patch fixup the enable msi logical, the operation to enable msi > should be after system clock is enabled. The function of mtk_pcie_startup_port_v2's > define location is re-arranged to avoid mtk_pcie_enable_msi's forward declaration. > And call mtk_pcie_enable_msi in mtk_pcie_startup_port_v2 since the clock was all > enabled at that time. > > The third patch 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. > -Rebase on the previous two patches. > > The fourth patch add loadable kernel module support. > > Some of those patches was already reviewed-by Ryder Lee , > so I just add the Reviewed-by tags in those patches. > > [1] https://patchwork.kernel.org/patch/10479079 > > 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 (4): > PCI: mediatek: fixup mtk_pcie_find_port logical > PCI: mediatek: enable msi after clock enabled > PCI: mediatek: Add system pm support for MT2712 and MT7622 > PCI: mediatek: Add loadable kernel module support > > drivers/pci/controller/Kconfig | 2 +- > drivers/pci/controller/pcie-mediatek.c | 289 ++++++++++++++++++++++++--------- > 2 files changed, 213 insertions(+), 78 deletions(-) > For the series: Acked-by: Ryder Lee Thanks.