linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v4 0/4] PCI: mediatek: fixup find_port, enable_msi and add pm, module support
@ 2018-09-10  9:50 honghui.zhang
  2018-09-10  9:50 ` [PATCH v4 1/4] PCI: mediatek: fixup mtk_pcie_find_port logical honghui.zhang
                   ` (3 more replies)
  0 siblings, 4 replies; 9+ messages in thread
From: honghui.zhang @ 2018-09-10  9:50 UTC (permalink / raw)
  To: lorenzo.pieralisi, marc.zyngier, bhelgaas, matthias.bgg,
	linux-arm-kernel, linux-mediatek, linux-pci, linux-kernel,
	devicetree, yingjoe.chen, eddie.huang, ryder.lee
  Cc: ulf.hansson, honghui.zhang, hongkun.cao, youlin.pei, yong.wu,
	yt.shen, sean.wang, xinping.qian

From: Honghui Zhang <honghui.zhang@mediatek.com>

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 <ryder.lee@mediatek.com>,
so I just add the Reviewed-by tags in those patches.

[1] https://patchwork.kernel.org/patch/10479079

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 (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 | 284 ++++++++++++++++++++++++---------
 2 files changed, 208 insertions(+), 78 deletions(-)

-- 
2.6.4


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2018-09-26  9:08 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-09-10  9:50 [PATCH v4 0/4] PCI: mediatek: fixup find_port, enable_msi and add pm, module support honghui.zhang
2018-09-10  9:50 ` [PATCH v4 1/4] PCI: mediatek: fixup mtk_pcie_find_port logical honghui.zhang
2018-09-21 16:07   ` Lorenzo Pieralisi
2018-09-26  9:06     ` Honghui Zhang
2018-09-10  9:50 ` [PATCH v4 2/4] PCI: mediatek: enable msi after clock enabled honghui.zhang
2018-09-21 16:46   ` Lorenzo Pieralisi
2018-09-26  9:08     ` Honghui Zhang
2018-09-10  9:50 ` [PATCH v4 3/4] PCI: mediatek: Add system pm support for MT2712 and MT7622 honghui.zhang
2018-09-10  9:50 ` [PATCH v4 4/4] PCI: mediatek: Add loadable kernel module support honghui.zhang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).