linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH RESEND v5 00/14] PCI: dwc: Relatively simple fixes and cleanups
@ 2023-05-11 19:08 Serge Semin
  2023-05-11 19:08 ` [PATCH RESEND v5 01/14] PCI: dwc: Fix erroneous version type test helper Serge Semin
                   ` (13 more replies)
  0 siblings, 14 replies; 29+ messages in thread
From: Serge Semin @ 2023-05-11 19:08 UTC (permalink / raw)
  To: Bjorn Helgaas, Lorenzo Pieralisi, Cai Huoqing, Jingoo Han,
	Gustavo Pimentel, Vinod Koul, Manivannan Sadhasivam,
	Yoshihiro Shimoda, Rob Herring
  Cc: Serge Semin, Serge Semin, Alexey Malahov, Pavel Parkhomenko,
	linux-pci, dmaengine, linux-kernel

It turns out the recent DW PCIe-related patchset was merged in with
several relatively trivial issues left unsettled (noted by Bjorn and
Manivannan). All of these lefovers have been fixed in this patchset.
Namely the series starts with two bug-fixes. The first one concerns the
improper link-mode initialization in case if the CDM-check is enabled. The
second unfortunate mistake I made in the IP-core version type helper. In
particular instead of testing the IP-core version type the macro function
referred to the just IP-core version which obviously wasn't what I
intended.

Afterwards two @Mani-noted fixes follow. Firstly the dma-ranges related warning
message is fixed to start with "DMA-ranges" word instead of "Dma-ranges".
Secondly the Baikal-T1 PCIe Host driver is converted to perform the
asynchronous probe type which saved us of about 15% of bootup time if no any
PCIe peripheral device attached to the port.

Then the patchset contains the Baikal-T1 PCIe driver fix. The
corresponding patch removes the false error message printed during the
controller probe procedure. I accidentally added the unconditional
dev_err_probe() method invocation. It was obviously wrong.

Then two trivial cleanups are introduced. The first one concerns the
duplicated fast-link-mode flag unsetting. The second one implies
dropping a redundant empty line from the dw_pcie_link_set_max_speed()
function.

The series continues with a patch inspired by the last @Bjorn note
regarding the generic resources request interface. As @Bjorn correctly
said it would be nice to have the new interface used wider in the DW PCIe
subsystem. Aside with the Baikal-T1 PCIe Host driver the Toshiba Visconti
PCIe driver can be easily converted to using the generic clock names.
That's what is done in the noted patch.

The patchset is closed with a series of MAINTAINERS-list related patches.
Firstly after getting the DW PCIe RP/EP DT-schemas refactored I forgot to
update the MAINTAINER-list with the new files added in the framework of
that procedure. All the snps,dw-pcie* schemas shall be maintained by the
DW PCIe core driver maintainers. Secondly seeing how long it took for my
patchsets to review and not having any comments from the original driver
maintainers I'd suggest to add myself as the reviewer to the DW PCIe and
eDMA drivers. Thus hopefully the new updates review process will be
performed with much less latencies. For the same reason @Manivannan is
added to the maintainers list of the DW PCIe/eDMA drivers as he already
agreed to be in.

Link: https://lore.kernel.org/linux-pci/20230217093956.27126-1-Sergey.Semin@baikalelectronics.ru/
Changelog v2:
- Rebase onto the kernel 6.3-rc2.

Link: https://lore.kernel.org/linux-pci/20230313200816.30105-1-Sergey.Semin@baikalelectronics.ru/
Changelog v3:
- Drop the patch:
  [PATCH v2 01/11] PCI: dwc: Fix port link CSR improper init if CDM check enabled
  and rebase onto the already submitted by @Yoshihiro fix:
  commit cdce67099117 ("PCI: dwc: Fix PORT_LINK_CONTROL update when CDM check enabled")
- Just resend.

Link: https://lore.kernel.org/linux-pci/20230411033928.30397-1-Sergey.Semin@baikalelectronics.ru/
Changelog v4:
- Demote @Gustavo to being DW PCIe/eDMA drivers reviewer:
  [PATCH v4 9/14] MAINTAINERS: Demote Gustavo Pimentel to DW PCIe core reviewer
  [PATCH v4 12/14] MAINTAINERS: Demote Gustavo Pimentel to DW EDMA driver reviewer
- Add Manivannan to the DW PCIe/eDMA drivers maintainers list:
  [PATCH v4 10/14] MAINTAINERS: Add Manivannan to DW PCIe core maintainers list
  [PATCH v4 13/14] MAINTAINERS: Add Manivannan to DW eDMA driver maintainers list

Link: https://lore.kernel.org/linux-pci/20230414021832.13167-1-Sergey.Semin@baikalelectronics.ru/
Changelog v5:
- Rebase onto the kernel 6.4-rc1.
- Just resend.

Signed-off-by: Serge Semin <Sergey.Semin@baikalelectronics.ru>
Cc: Alexey Malahov <Alexey.Malahov@baikalelectronics.ru>
Cc: Pavel Parkhomenko <Pavel.Parkhomenko@baikalelectronics.ru>
Cc: linux-pci@vger.kernel.org
Cc: dmaengine@vger.kernel.org
Cc: linux-kernel@vger.kernel.org

Serge Semin (14):
  PCI: dwc: Fix erroneous version type test helper
  PCI: dwc: Fix inbound iATU entries out-of-bounds warning message
  PCI: bt1: Enable async probe type
  PCI: bt1: Fix printing false error message
  PCI: dwc: Drop duplicated fast-link-mode flag unsetting
  PCI: dwc: Drop empty line from dw_pcie_link_set_max_speed()
  PCI: visconti: Convert to using generic resources getter
  MAINTAINERS: Add all generic DW PCIe RP/EP DT-schemas
  MAINTAINERS: Demote Gustavo Pimentel to DW PCIe core reviewer
  MAINTAINERS: Add Manivannan to DW PCIe core maintainers list
  MAINTAINERS: Add myself as the DW PCIe core reviewer
  MAINTAINERS: Demote Gustavo Pimentel to DW EDMA driver reviewer
  MAINTAINERS: Add Manivannan to DW eDMA driver maintainers list
  MAINTAINERS: Add myself as the DW eDMA driver reviewer

 MAINTAINERS                                   | 11 ++++--
 drivers/pci/controller/dwc/pcie-bt1.c         |  5 ++-
 .../pci/controller/dwc/pcie-designware-host.c |  2 +-
 drivers/pci/controller/dwc/pcie-designware.c  |  2 -
 drivers/pci/controller/dwc/pcie-designware.h  |  7 +++-
 drivers/pci/controller/dwc/pcie-visconti.c    | 37 +++++++++----------
 6 files changed, 34 insertions(+), 30 deletions(-)

-- 
2.40.0



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

* [PATCH RESEND v5 01/14] PCI: dwc: Fix erroneous version type test helper
  2023-05-11 19:08 [PATCH RESEND v5 00/14] PCI: dwc: Relatively simple fixes and cleanups Serge Semin
@ 2023-05-11 19:08 ` Serge Semin
  2023-05-12  9:55   ` Yoshihiro Shimoda
  2023-05-11 19:08 ` [PATCH RESEND v5 02/14] PCI: dwc: Fix inbound iATU entries out-of-bounds warning message Serge Semin
                   ` (12 subsequent siblings)
  13 siblings, 1 reply; 29+ messages in thread
From: Serge Semin @ 2023-05-11 19:08 UTC (permalink / raw)
  To: Bjorn Helgaas, Lorenzo Pieralisi, Cai Huoqing, Jingoo Han,
	Gustavo Pimentel, Vinod Koul, Manivannan Sadhasivam,
	Yoshihiro Shimoda, Rob Herring, Manivannan Sadhasivam,
	Serge Semin, Lorenzo Pieralisi, Krzysztof Wilczyński
  Cc: Serge Semin, Alexey Malahov, Pavel Parkhomenko, linux-pci,
	dmaengine, linux-kernel

Due to an unfortunate mistake the macro function actually checks the
IP-core version instead of the IP-core version type which isn't what
originally implied. Fix it by introducing a new helper
__dw_pcie_ver_type_cmp() with the same semantic as the __dw_pcie_ver_cmp()
counterpart except it refers to the dw_pcie.type field in order to perform
the passed comparison operation.

Fixes: 0b0a780d52ad ("PCI: dwc: Add macros to compare Synopsys IP core versions")
Signed-off-by: Serge Semin <Sergey.Semin@baikalelectronics.ru>
Reviewed-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
---
 drivers/pci/controller/dwc/pcie-designware.h | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/drivers/pci/controller/dwc/pcie-designware.h b/drivers/pci/controller/dwc/pcie-designware.h
index 79713ce075cc..adad0ea61799 100644
--- a/drivers/pci/controller/dwc/pcie-designware.h
+++ b/drivers/pci/controller/dwc/pcie-designware.h
@@ -37,17 +37,20 @@
 #define __dw_pcie_ver_cmp(_pci, _ver, _op) \
 	((_pci)->version _op DW_PCIE_VER_ ## _ver)
 
+#define __dw_pcie_ver_type_cmp(_pci, _type, _op) \
+	((_pci)->type _op DW_PCIE_VER_TYPE_ ## _type)
+
 #define dw_pcie_ver_is(_pci, _ver) __dw_pcie_ver_cmp(_pci, _ver, ==)
 
 #define dw_pcie_ver_is_ge(_pci, _ver) __dw_pcie_ver_cmp(_pci, _ver, >=)
 
 #define dw_pcie_ver_type_is(_pci, _ver, _type) \
 	(__dw_pcie_ver_cmp(_pci, _ver, ==) && \
-	 __dw_pcie_ver_cmp(_pci, TYPE_ ## _type, ==))
+	 __dw_pcie_ver_type_cmp(_pci, _type, ==))
 
 #define dw_pcie_ver_type_is_ge(_pci, _ver, _type) \
 	(__dw_pcie_ver_cmp(_pci, _ver, ==) && \
-	 __dw_pcie_ver_cmp(_pci, TYPE_ ## _type, >=))
+	 __dw_pcie_ver_type_cmp(_pci, _type, >=))
 
 /* DWC PCIe controller capabilities */
 #define DW_PCIE_CAP_REQ_RES		0
-- 
2.40.0



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

* [PATCH RESEND v5 02/14] PCI: dwc: Fix inbound iATU entries out-of-bounds warning message
  2023-05-11 19:08 [PATCH RESEND v5 00/14] PCI: dwc: Relatively simple fixes and cleanups Serge Semin
  2023-05-11 19:08 ` [PATCH RESEND v5 01/14] PCI: dwc: Fix erroneous version type test helper Serge Semin
@ 2023-05-11 19:08 ` Serge Semin
  2023-05-12  9:55   ` Yoshihiro Shimoda
  2023-05-11 19:08 ` [PATCH RESEND v5 03/14] PCI: bt1: Enable async probe type Serge Semin
                   ` (11 subsequent siblings)
  13 siblings, 1 reply; 29+ messages in thread
From: Serge Semin @ 2023-05-11 19:08 UTC (permalink / raw)
  To: Bjorn Helgaas, Lorenzo Pieralisi, Cai Huoqing, Jingoo Han,
	Gustavo Pimentel, Vinod Koul, Manivannan Sadhasivam,
	Yoshihiro Shimoda, Rob Herring, Manivannan Sadhasivam,
	Serge Semin, Lorenzo Pieralisi, Krzysztof Wilczyński
  Cc: Serge Semin, Alexey Malahov, Pavel Parkhomenko, linux-pci,
	dmaengine, linux-kernel

The message is printed if the number of requested inbound iATU windows
exceed the device capability. In that case the message should either refer
to the "dma-ranges" DT property or to the DMA-ranges mapping. We suggest
to use the later version as a counterpart to the just CPU-ranges mapping.
In any case the current "Dma-ranges" phrase seems incorrect.

Suggested-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Signed-off-by: Serge Semin <Sergey.Semin@baikalelectronics.ru>
Reviewed-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
---
 drivers/pci/controller/dwc/pcie-designware-host.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/pci/controller/dwc/pcie-designware-host.c b/drivers/pci/controller/dwc/pcie-designware-host.c
index 9952057c8819..5718b4bb67f0 100644
--- a/drivers/pci/controller/dwc/pcie-designware-host.c
+++ b/drivers/pci/controller/dwc/pcie-designware-host.c
@@ -723,7 +723,7 @@ static int dw_pcie_iatu_setup(struct dw_pcie_rp *pp)
 	}
 
 	if (pci->num_ib_windows <= i)
-		dev_warn(pci->dev, "Dma-ranges exceed inbound iATU size (%u)\n",
+		dev_warn(pci->dev, "DMA-ranges exceed inbound iATU size (%u)\n",
 			 pci->num_ib_windows);
 
 	return 0;
-- 
2.40.0



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

* [PATCH RESEND v5 03/14] PCI: bt1: Enable async probe type
  2023-05-11 19:08 [PATCH RESEND v5 00/14] PCI: dwc: Relatively simple fixes and cleanups Serge Semin
  2023-05-11 19:08 ` [PATCH RESEND v5 01/14] PCI: dwc: Fix erroneous version type test helper Serge Semin
  2023-05-11 19:08 ` [PATCH RESEND v5 02/14] PCI: dwc: Fix inbound iATU entries out-of-bounds warning message Serge Semin
@ 2023-05-11 19:08 ` Serge Semin
  2023-05-11 19:08 ` [PATCH RESEND v5 04/14] PCI: bt1: Fix printing false error message Serge Semin
                   ` (10 subsequent siblings)
  13 siblings, 0 replies; 29+ messages in thread
From: Serge Semin @ 2023-05-11 19:08 UTC (permalink / raw)
  To: Bjorn Helgaas, Lorenzo Pieralisi, Cai Huoqing, Jingoo Han,
	Gustavo Pimentel, Vinod Koul, Manivannan Sadhasivam,
	Yoshihiro Shimoda, Rob Herring, Lorenzo Pieralisi,
	Krzysztof Wilczyński
  Cc: Serge Semin, Serge Semin, Alexey Malahov, Pavel Parkhomenko,
	linux-pci, dmaengine, linux-kernel

It's safe to enable the asyncronous probe type since the PCIe peripheral
devices probing order isn't essential for booting the system. Moreover
enabling that feature saves 0.5 seconds of bootup time if no any device
attached to the PCIe root port. It's a significant performance gain seeing
the total bootup time takes about 3 seconds.

Suggested-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Signed-off-by: Serge Semin <Sergey.Semin@baikalelectronics.ru>
Reviewed-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
---
 drivers/pci/controller/dwc/pcie-bt1.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/pci/controller/dwc/pcie-bt1.c b/drivers/pci/controller/dwc/pcie-bt1.c
index 95a723a6fd46..e36a20bf82cf 100644
--- a/drivers/pci/controller/dwc/pcie-bt1.c
+++ b/drivers/pci/controller/dwc/pcie-bt1.c
@@ -638,6 +638,7 @@ static struct platform_driver bt1_pcie_driver = {
 	.driver = {
 		.name	= "bt1-pcie",
 		.of_match_table = bt1_pcie_of_match,
+		.probe_type = PROBE_PREFER_ASYNCHRONOUS,
 	},
 };
 module_platform_driver(bt1_pcie_driver);
-- 
2.40.0



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

* [PATCH RESEND v5 04/14] PCI: bt1: Fix printing false error message
  2023-05-11 19:08 [PATCH RESEND v5 00/14] PCI: dwc: Relatively simple fixes and cleanups Serge Semin
                   ` (2 preceding siblings ...)
  2023-05-11 19:08 ` [PATCH RESEND v5 03/14] PCI: bt1: Enable async probe type Serge Semin
@ 2023-05-11 19:08 ` Serge Semin
  2023-05-11 19:08 ` [PATCH RESEND v5 05/14] PCI: dwc: Drop duplicated fast-link-mode flag unsetting Serge Semin
                   ` (9 subsequent siblings)
  13 siblings, 0 replies; 29+ messages in thread
From: Serge Semin @ 2023-05-11 19:08 UTC (permalink / raw)
  To: Bjorn Helgaas, Lorenzo Pieralisi, Cai Huoqing, Jingoo Han,
	Gustavo Pimentel, Vinod Koul, Manivannan Sadhasivam,
	Yoshihiro Shimoda, Rob Herring, Lorenzo Pieralisi,
	Krzysztof Wilczyński
  Cc: Serge Semin, Serge Semin, Alexey Malahov, Pavel Parkhomenko,
	linux-pci, dmaengine, linux-kernel

The dev_err_probe() method is supposed to be invoked only if any error is
happened. It was definitely wrong to call it unconditionally. Due to that
the DWC PCIe host initialization error-message is printed all the time the
Baikal-T1 PCIe controller is probed even if no error actually happened.

Fixes: ba6ed462dcf4 ("PCI: dwc: Add Baikal-T1 PCIe controller support")
Signed-off-by: Serge Semin <Sergey.Semin@baikalelectronics.ru>
Reviewed-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
---
 drivers/pci/controller/dwc/pcie-bt1.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/drivers/pci/controller/dwc/pcie-bt1.c b/drivers/pci/controller/dwc/pcie-bt1.c
index e36a20bf82cf..6557141873ad 100644
--- a/drivers/pci/controller/dwc/pcie-bt1.c
+++ b/drivers/pci/controller/dwc/pcie-bt1.c
@@ -597,8 +597,10 @@ static int bt1_pcie_add_port(struct bt1_pcie *btpci)
 	dw_pcie_cap_set(&btpci->dw, REQ_RES);
 
 	ret = dw_pcie_host_init(&btpci->dw.pp);
+	if (ret)
+		dev_err_probe(dev, ret, "Failed to initialize DWC PCIe host\n");
 
-	return dev_err_probe(dev, ret, "Failed to initialize DWC PCIe host\n");
+	return ret;
 }
 
 static void bt1_pcie_del_port(struct bt1_pcie *btpci)
-- 
2.40.0



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

* [PATCH RESEND v5 05/14] PCI: dwc: Drop duplicated fast-link-mode flag unsetting
  2023-05-11 19:08 [PATCH RESEND v5 00/14] PCI: dwc: Relatively simple fixes and cleanups Serge Semin
                   ` (3 preceding siblings ...)
  2023-05-11 19:08 ` [PATCH RESEND v5 04/14] PCI: bt1: Fix printing false error message Serge Semin
@ 2023-05-11 19:08 ` Serge Semin
  2023-05-12  9:55   ` Yoshihiro Shimoda
  2023-05-11 19:08 ` [PATCH RESEND v5 06/14] PCI: dwc: Drop empty line from dw_pcie_link_set_max_speed() Serge Semin
                   ` (8 subsequent siblings)
  13 siblings, 1 reply; 29+ messages in thread
From: Serge Semin @ 2023-05-11 19:08 UTC (permalink / raw)
  To: Bjorn Helgaas, Lorenzo Pieralisi, Cai Huoqing, Jingoo Han,
	Gustavo Pimentel, Vinod Koul, Manivannan Sadhasivam,
	Yoshihiro Shimoda, Rob Herring, Manivannan Sadhasivam,
	Serge Semin, Lorenzo Pieralisi, Krzysztof Wilczyński
  Cc: Serge Semin, Alexey Malahov, Pavel Parkhomenko, linux-pci,
	dmaengine, linux-kernel

Most likely by mistake the PORT_LINK_FAST_LINK_MODE flag unsetting was
added twice in the commit cff9244432e8 ("PCI: dwc: Ensure FAST_LINK_MODE
is cleared"): first it is cleared right after the content of the
PCIE_PORT_LINK_CONTROL register is read, second it's cleared in the
framework of the link-mode initialization procedure. The later action is
redundant. Let's drop it.

Signed-off-by: Serge Semin <Sergey.Semin@baikalelectronics.ru>
Reviewed-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
---
 drivers/pci/controller/dwc/pcie-designware.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/drivers/pci/controller/dwc/pcie-designware.c b/drivers/pci/controller/dwc/pcie-designware.c
index 8e33e6e59e68..e55b7b387eb6 100644
--- a/drivers/pci/controller/dwc/pcie-designware.c
+++ b/drivers/pci/controller/dwc/pcie-designware.c
@@ -1019,7 +1019,6 @@ void dw_pcie_setup(struct dw_pcie *pci)
 	}
 
 	/* Set the number of lanes */
-	val &= ~PORT_LINK_FAST_LINK_MODE;
 	val &= ~PORT_LINK_MODE_MASK;
 	switch (pci->num_lanes) {
 	case 1:
-- 
2.40.0



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

* [PATCH RESEND v5 06/14] PCI: dwc: Drop empty line from dw_pcie_link_set_max_speed()
  2023-05-11 19:08 [PATCH RESEND v5 00/14] PCI: dwc: Relatively simple fixes and cleanups Serge Semin
                   ` (4 preceding siblings ...)
  2023-05-11 19:08 ` [PATCH RESEND v5 05/14] PCI: dwc: Drop duplicated fast-link-mode flag unsetting Serge Semin
@ 2023-05-11 19:08 ` Serge Semin
  2023-05-12  9:56   ` Yoshihiro Shimoda
  2023-05-11 19:08 ` [PATCH RESEND v5 07/14] PCI: visconti: Convert to using generic resources getter Serge Semin
                   ` (7 subsequent siblings)
  13 siblings, 1 reply; 29+ messages in thread
From: Serge Semin @ 2023-05-11 19:08 UTC (permalink / raw)
  To: Bjorn Helgaas, Lorenzo Pieralisi, Cai Huoqing, Jingoo Han,
	Gustavo Pimentel, Vinod Koul, Manivannan Sadhasivam,
	Yoshihiro Shimoda, Rob Herring, Manivannan Sadhasivam,
	Serge Semin, Lorenzo Pieralisi, Krzysztof Wilczyński
  Cc: Serge Semin, Alexey Malahov, Pavel Parkhomenko, linux-pci,
	dmaengine, linux-kernel

Well, just drop a redundant empty line from the tail of the denoted
function which by mistake was added in commit 39bc5006501c ("PCI: dwc:
Centralize link gen setting").

Signed-off-by: Serge Semin <Sergey.Semin@baikalelectronics.ru>
Reviewed-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
---
 drivers/pci/controller/dwc/pcie-designware.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/drivers/pci/controller/dwc/pcie-designware.c b/drivers/pci/controller/dwc/pcie-designware.c
index e55b7b387eb6..ede166645289 100644
--- a/drivers/pci/controller/dwc/pcie-designware.c
+++ b/drivers/pci/controller/dwc/pcie-designware.c
@@ -729,7 +729,6 @@ static void dw_pcie_link_set_max_speed(struct dw_pcie *pci, u32 link_gen)
 
 	cap &= ~((u32)PCI_EXP_LNKCAP_SLS);
 	dw_pcie_writel_dbi(pci, offset + PCI_EXP_LNKCAP, cap | link_speed);
-
 }
 
 void dw_pcie_iatu_detect(struct dw_pcie *pci)
-- 
2.40.0



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

* [PATCH RESEND v5 07/14] PCI: visconti: Convert to using generic resources getter
  2023-05-11 19:08 [PATCH RESEND v5 00/14] PCI: dwc: Relatively simple fixes and cleanups Serge Semin
                   ` (5 preceding siblings ...)
  2023-05-11 19:08 ` [PATCH RESEND v5 06/14] PCI: dwc: Drop empty line from dw_pcie_link_set_max_speed() Serge Semin
@ 2023-05-11 19:08 ` Serge Semin
  2023-05-17  5:29   ` Manivannan Sadhasivam
  2023-05-11 19:08 ` [PATCH RESEND v5 08/14] MAINTAINERS: Add all generic DW PCIe RP/EP DT-schemas Serge Semin
                   ` (6 subsequent siblings)
  13 siblings, 1 reply; 29+ messages in thread
From: Serge Semin @ 2023-05-11 19:08 UTC (permalink / raw)
  To: Bjorn Helgaas, Lorenzo Pieralisi, Cai Huoqing, Jingoo Han,
	Gustavo Pimentel, Vinod Koul, Manivannan Sadhasivam,
	Yoshihiro Shimoda, Rob Herring, Lorenzo Pieralisi,
	Krzysztof Wilczyński, Nobuhiro Iwamatsu
  Cc: Serge Semin, Serge Semin, Alexey Malahov, Pavel Parkhomenko,
	linux-pci, dmaengine, linux-kernel, Bjorn Helgaas,
	linux-arm-kernel

The generic resources request infrastructure has been recently added to
the DW PCIe core driver. Since the DT-bindings of the Toshibo Visconti
PCIe Host controller is fully compatible with the generic names set let's
convert the driver to using that infrastructure. It won't take much effort
since the low-level device driver implies the resources request only with
no additional manipulations involving them. So just drop the locally
defined clocks request procedures, activate the generic resources request
capability and make sure the mandatory resources have been requested by
the DW PCIe core driver.

Suggested-by: Bjorn Helgaas <helgaas@kernel.org>
Signed-off-by: Serge Semin <Sergey.Semin@baikalelectronics.ru>
---
 drivers/pci/controller/dwc/pcie-visconti.c | 37 ++++++++++------------
 1 file changed, 17 insertions(+), 20 deletions(-)

diff --git a/drivers/pci/controller/dwc/pcie-visconti.c b/drivers/pci/controller/dwc/pcie-visconti.c
index 71026fefa366..ae1517b52c58 100644
--- a/drivers/pci/controller/dwc/pcie-visconti.c
+++ b/drivers/pci/controller/dwc/pcie-visconti.c
@@ -29,9 +29,6 @@ struct visconti_pcie {
 	void __iomem *ulreg_base;
 	void __iomem *smu_base;
 	void __iomem *mpu_base;
-	struct clk *refclk;
-	struct clk *coreclk;
-	struct clk *auxclk;
 };
 
 #define PCIE_UL_REG_S_PCIE_MODE		0x00F4
@@ -198,6 +195,21 @@ static int visconti_pcie_host_init(struct dw_pcie_rp *pp)
 	int err;
 	u32 val;
 
+	if (!pcie->pci.core_clks[DW_PCIE_REF_CLK].clk) {
+		dev_err(pci->dev, "Missing ref clock source\n");
+		return -ENOENT;
+	}
+
+	if (!pcie->pci.core_clks[DW_PCIE_CORE_CLK].clk) {
+		dev_err(pci->dev, "Missing core clock source\n");
+		return -ENOENT;
+	}
+
+	if (!pcie->pci.core_clks[DW_PCIE_AUX_CLK].clk) {
+		dev_err(pci->dev, "Missing aux clock source\n");
+		return -ENOENT;
+	}
+
 	visconti_smu_writel(pcie,
 			    PISMU_CKON_PCIE_AUX_CLK | PISMU_CKON_PCIE_MSTR_ACLK,
 			    PISMU_CKON_PCIE);
@@ -242,8 +254,6 @@ static const struct dw_pcie_host_ops visconti_pcie_host_ops = {
 static int visconti_get_resources(struct platform_device *pdev,
 				  struct visconti_pcie *pcie)
 {
-	struct device *dev = &pdev->dev;
-
 	pcie->ulreg_base = devm_platform_ioremap_resource_byname(pdev, "ulreg");
 	if (IS_ERR(pcie->ulreg_base))
 		return PTR_ERR(pcie->ulreg_base);
@@ -256,21 +266,6 @@ static int visconti_get_resources(struct platform_device *pdev,
 	if (IS_ERR(pcie->mpu_base))
 		return PTR_ERR(pcie->mpu_base);
 
-	pcie->refclk = devm_clk_get(dev, "ref");
-	if (IS_ERR(pcie->refclk))
-		return dev_err_probe(dev, PTR_ERR(pcie->refclk),
-				     "Failed to get ref clock\n");
-
-	pcie->coreclk = devm_clk_get(dev, "core");
-	if (IS_ERR(pcie->coreclk))
-		return dev_err_probe(dev, PTR_ERR(pcie->coreclk),
-				     "Failed to get core clock\n");
-
-	pcie->auxclk = devm_clk_get(dev, "aux");
-	if (IS_ERR(pcie->auxclk))
-		return dev_err_probe(dev, PTR_ERR(pcie->auxclk),
-				     "Failed to get aux clock\n");
-
 	return 0;
 }
 
@@ -304,6 +299,8 @@ static int visconti_pcie_probe(struct platform_device *pdev)
 	pci->dev = dev;
 	pci->ops = &dw_pcie_ops;
 
+	dw_pcie_cap_set(pci, REQ_RES);
+
 	ret = visconti_get_resources(pdev, pcie);
 	if (ret)
 		return ret;
-- 
2.40.0



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

* [PATCH RESEND v5 08/14] MAINTAINERS: Add all generic DW PCIe RP/EP DT-schemas
  2023-05-11 19:08 [PATCH RESEND v5 00/14] PCI: dwc: Relatively simple fixes and cleanups Serge Semin
                   ` (6 preceding siblings ...)
  2023-05-11 19:08 ` [PATCH RESEND v5 07/14] PCI: visconti: Convert to using generic resources getter Serge Semin
@ 2023-05-11 19:08 ` Serge Semin
  2023-05-11 19:08 ` [PATCH RESEND v5 09/14] MAINTAINERS: Demote Gustavo Pimentel to DW PCIe core reviewer Serge Semin
                   ` (5 subsequent siblings)
  13 siblings, 0 replies; 29+ messages in thread
From: Serge Semin @ 2023-05-11 19:08 UTC (permalink / raw)
  To: Bjorn Helgaas, Lorenzo Pieralisi, Cai Huoqing, Jingoo Han,
	Gustavo Pimentel, Vinod Koul, Manivannan Sadhasivam,
	Yoshihiro Shimoda, Rob Herring
  Cc: Serge Semin, Serge Semin, Alexey Malahov, Pavel Parkhomenko,
	linux-pci, dmaengine, linux-kernel

Recently the DT-schema of the DW PCIe Root Port and End-point controllers
has been refactored by detaching the common bindings into a separate
schema. The provided modification must be reflected in the MAINTAINERS
list so the patch submitters would be aware of the new files maintainers.
Let's do that by adding the maintained files wildcard pattern like
snps,dw-pcie*.yaml, which is applicable for all the old DW PCIe DT-schema
files and the new one.

Signed-off-by: Serge Semin <Sergey.Semin@baikalelectronics.ru>
Acked-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
---
 MAINTAINERS | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/MAINTAINERS b/MAINTAINERS
index 7e0b87d5aa2e..817cd8f40e65 100644
--- a/MAINTAINERS
+++ b/MAINTAINERS
@@ -16169,8 +16169,7 @@ M:	Jingoo Han <jingoohan1@gmail.com>
 M:	Gustavo Pimentel <gustavo.pimentel@synopsys.com>
 L:	linux-pci@vger.kernel.org
 S:	Maintained
-F:	Documentation/devicetree/bindings/pci/snps,dw-pcie.yaml
-F:	Documentation/devicetree/bindings/pci/snps,dw-pcie-ep.yaml
+F:	Documentation/devicetree/bindings/pci/snps,dw-pcie*.yaml
 F:	drivers/pci/controller/dwc/*designware*
 
 PCI DRIVER FOR TI DRA7XX/J721E
-- 
2.40.0



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

* [PATCH RESEND v5 09/14] MAINTAINERS: Demote Gustavo Pimentel to DW PCIe core reviewer
  2023-05-11 19:08 [PATCH RESEND v5 00/14] PCI: dwc: Relatively simple fixes and cleanups Serge Semin
                   ` (7 preceding siblings ...)
  2023-05-11 19:08 ` [PATCH RESEND v5 08/14] MAINTAINERS: Add all generic DW PCIe RP/EP DT-schemas Serge Semin
@ 2023-05-11 19:08 ` Serge Semin
  2023-05-17  5:30   ` Manivannan Sadhasivam
  2023-05-11 19:08 ` [PATCH RESEND v5 10/14] MAINTAINERS: Add Manivannan to DW PCIe core maintainers list Serge Semin
                   ` (4 subsequent siblings)
  13 siblings, 1 reply; 29+ messages in thread
From: Serge Semin @ 2023-05-11 19:08 UTC (permalink / raw)
  To: Bjorn Helgaas, Lorenzo Pieralisi, Cai Huoqing, Jingoo Han,
	Gustavo Pimentel, Vinod Koul, Manivannan Sadhasivam,
	Yoshihiro Shimoda, Rob Herring
  Cc: Serge Semin, Serge Semin, Alexey Malahov, Pavel Parkhomenko,
	linux-pci, dmaengine, linux-kernel

No maintaining actions from Gustavo have been noticed for over two years.
Demote him to being the DW PCIe RP/EP driver reviewer for now.

Signed-off-by: Serge Semin <Sergey.Semin@baikalelectronics.ru>
---
 MAINTAINERS | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/MAINTAINERS b/MAINTAINERS
index 817cd8f40e65..0d93e1e4e776 100644
--- a/MAINTAINERS
+++ b/MAINTAINERS
@@ -16166,7 +16166,7 @@ F:	drivers/pci/controller/dwc/pci-exynos.c
 
 PCI DRIVER FOR SYNOPSYS DESIGNWARE
 M:	Jingoo Han <jingoohan1@gmail.com>
-M:	Gustavo Pimentel <gustavo.pimentel@synopsys.com>
+R:	Gustavo Pimentel <gustavo.pimentel@synopsys.com>
 L:	linux-pci@vger.kernel.org
 S:	Maintained
 F:	Documentation/devicetree/bindings/pci/snps,dw-pcie*.yaml
-- 
2.40.0



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

* [PATCH RESEND v5 10/14] MAINTAINERS: Add Manivannan to DW PCIe core maintainers list
  2023-05-11 19:08 [PATCH RESEND v5 00/14] PCI: dwc: Relatively simple fixes and cleanups Serge Semin
                   ` (8 preceding siblings ...)
  2023-05-11 19:08 ` [PATCH RESEND v5 09/14] MAINTAINERS: Demote Gustavo Pimentel to DW PCIe core reviewer Serge Semin
@ 2023-05-11 19:08 ` Serge Semin
  2023-05-17  5:31   ` Manivannan Sadhasivam
  2023-05-11 19:08 ` [PATCH RESEND v5 11/14] MAINTAINERS: Add myself as the DW PCIe core reviewer Serge Semin
                   ` (3 subsequent siblings)
  13 siblings, 1 reply; 29+ messages in thread
From: Serge Semin @ 2023-05-11 19:08 UTC (permalink / raw)
  To: Bjorn Helgaas, Lorenzo Pieralisi, Cai Huoqing, Jingoo Han,
	Gustavo Pimentel, Vinod Koul, Manivannan Sadhasivam,
	Yoshihiro Shimoda, Rob Herring
  Cc: Serge Semin, Serge Semin, Alexey Malahov, Pavel Parkhomenko,
	linux-pci, dmaengine, linux-kernel

Manivannan has been very active in reviewing and testing the bits coming
to the DW PCIe RP/EP core driver. Let's add him to the driver maintainers
list.

Signed-off-by: Serge Semin <Sergey.Semin@baikalelectronics.ru>
---
 MAINTAINERS | 1 +
 1 file changed, 1 insertion(+)

diff --git a/MAINTAINERS b/MAINTAINERS
index 0d93e1e4e776..dc1a5164c93c 100644
--- a/MAINTAINERS
+++ b/MAINTAINERS
@@ -16166,6 +16166,7 @@ F:	drivers/pci/controller/dwc/pci-exynos.c
 
 PCI DRIVER FOR SYNOPSYS DESIGNWARE
 M:	Jingoo Han <jingoohan1@gmail.com>
+M:	Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
 R:	Gustavo Pimentel <gustavo.pimentel@synopsys.com>
 L:	linux-pci@vger.kernel.org
 S:	Maintained
-- 
2.40.0



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

* [PATCH RESEND v5 11/14] MAINTAINERS: Add myself as the DW PCIe core reviewer
  2023-05-11 19:08 [PATCH RESEND v5 00/14] PCI: dwc: Relatively simple fixes and cleanups Serge Semin
                   ` (9 preceding siblings ...)
  2023-05-11 19:08 ` [PATCH RESEND v5 10/14] MAINTAINERS: Add Manivannan to DW PCIe core maintainers list Serge Semin
@ 2023-05-11 19:08 ` Serge Semin
  2023-05-11 19:09 ` [PATCH RESEND v5 12/14] MAINTAINERS: Demote Gustavo Pimentel to DW EDMA driver reviewer Serge Semin
                   ` (2 subsequent siblings)
  13 siblings, 0 replies; 29+ messages in thread
From: Serge Semin @ 2023-05-11 19:08 UTC (permalink / raw)
  To: Bjorn Helgaas, Lorenzo Pieralisi, Cai Huoqing, Jingoo Han,
	Gustavo Pimentel, Vinod Koul, Manivannan Sadhasivam,
	Yoshihiro Shimoda, Rob Herring
  Cc: Serge Semin, Serge Semin, Alexey Malahov, Pavel Parkhomenko,
	linux-pci, dmaengine, linux-kernel

No actions have been spotted from the driver original maintainers for
almost two years now. It significantly delays the review process of the
relatively often incoming updates. Since that IP-core has been used in
several our SoCs adding myself to the list of reviewers will help in the
evolving the driver faster and in catching any potential problem as early
as possible.

Signed-off-by: Serge Semin <Sergey.Semin@baikalelectronics.ru>
Acked-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
---
 MAINTAINERS | 1 +
 1 file changed, 1 insertion(+)

diff --git a/MAINTAINERS b/MAINTAINERS
index dc1a5164c93c..1cd2e42110d5 100644
--- a/MAINTAINERS
+++ b/MAINTAINERS
@@ -16168,6 +16168,7 @@ PCI DRIVER FOR SYNOPSYS DESIGNWARE
 M:	Jingoo Han <jingoohan1@gmail.com>
 M:	Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
 R:	Gustavo Pimentel <gustavo.pimentel@synopsys.com>
+R:	Serge Semin <fancer.lancer@gmail.com>
 L:	linux-pci@vger.kernel.org
 S:	Maintained
 F:	Documentation/devicetree/bindings/pci/snps,dw-pcie*.yaml
-- 
2.40.0



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

* [PATCH RESEND v5 12/14] MAINTAINERS: Demote Gustavo Pimentel to DW EDMA driver reviewer
  2023-05-11 19:08 [PATCH RESEND v5 00/14] PCI: dwc: Relatively simple fixes and cleanups Serge Semin
                   ` (10 preceding siblings ...)
  2023-05-11 19:08 ` [PATCH RESEND v5 11/14] MAINTAINERS: Add myself as the DW PCIe core reviewer Serge Semin
@ 2023-05-11 19:09 ` Serge Semin
  2023-05-17  5:31   ` Manivannan Sadhasivam
  2023-05-11 19:09 ` [PATCH RESEND v5 13/14] MAINTAINERS: Add Manivannan to DW eDMA driver maintainers list Serge Semin
  2023-05-11 19:09 ` [PATCH RESEND v5 14/14] MAINTAINERS: Add myself as the DW eDMA driver reviewer Serge Semin
  13 siblings, 1 reply; 29+ messages in thread
From: Serge Semin @ 2023-05-11 19:09 UTC (permalink / raw)
  To: Bjorn Helgaas, Lorenzo Pieralisi, Cai Huoqing, Jingoo Han,
	Gustavo Pimentel, Vinod Koul, Manivannan Sadhasivam,
	Yoshihiro Shimoda, Rob Herring
  Cc: Serge Semin, Serge Semin, Alexey Malahov, Pavel Parkhomenko,
	linux-pci, dmaengine, linux-kernel

No maintaining actions from Gustavo have been noticed for over a year.
Demote him to being the DW eDMA driver reviewer for now.

Signed-off-by: Serge Semin <Sergey.Semin@baikalelectronics.ru>
---
 MAINTAINERS | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/MAINTAINERS b/MAINTAINERS
index 1cd2e42110d5..b49a3f0e6dde 100644
--- a/MAINTAINERS
+++ b/MAINTAINERS
@@ -5885,7 +5885,7 @@ S:	Orphan
 F:	drivers/mtd/nand/raw/denali*
 
 DESIGNWARE EDMA CORE IP DRIVER
-M:	Gustavo Pimentel <gustavo.pimentel@synopsys.com>
+R:	Gustavo Pimentel <gustavo.pimentel@synopsys.com>
 L:	dmaengine@vger.kernel.org
 S:	Maintained
 F:	drivers/dma/dw-edma/
-- 
2.40.0



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

* [PATCH RESEND v5 13/14] MAINTAINERS: Add Manivannan to DW eDMA driver maintainers list
  2023-05-11 19:08 [PATCH RESEND v5 00/14] PCI: dwc: Relatively simple fixes and cleanups Serge Semin
                   ` (11 preceding siblings ...)
  2023-05-11 19:09 ` [PATCH RESEND v5 12/14] MAINTAINERS: Demote Gustavo Pimentel to DW EDMA driver reviewer Serge Semin
@ 2023-05-11 19:09 ` Serge Semin
  2023-05-17  5:28   ` Manivannan Sadhasivam
  2023-05-11 19:09 ` [PATCH RESEND v5 14/14] MAINTAINERS: Add myself as the DW eDMA driver reviewer Serge Semin
  13 siblings, 1 reply; 29+ messages in thread
From: Serge Semin @ 2023-05-11 19:09 UTC (permalink / raw)
  To: Bjorn Helgaas, Lorenzo Pieralisi, Cai Huoqing, Jingoo Han,
	Gustavo Pimentel, Vinod Koul, Manivannan Sadhasivam,
	Yoshihiro Shimoda, Rob Herring
  Cc: Serge Semin, Serge Semin, Alexey Malahov, Pavel Parkhomenko,
	linux-pci, dmaengine, linux-kernel

Manivannan has been very active in reviewing the bits coming to the DW
eDMA driver. Let's add him to the driver maintainers list.

Signed-off-by: Serge Semin <Sergey.Semin@baikalelectronics.ru>
---
 MAINTAINERS | 1 +
 1 file changed, 1 insertion(+)

diff --git a/MAINTAINERS b/MAINTAINERS
index b49a3f0e6dde..9f66461ede29 100644
--- a/MAINTAINERS
+++ b/MAINTAINERS
@@ -5885,6 +5885,7 @@ S:	Orphan
 F:	drivers/mtd/nand/raw/denali*
 
 DESIGNWARE EDMA CORE IP DRIVER
+M:	Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
 R:	Gustavo Pimentel <gustavo.pimentel@synopsys.com>
 L:	dmaengine@vger.kernel.org
 S:	Maintained
-- 
2.40.0



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

* [PATCH RESEND v5 14/14] MAINTAINERS: Add myself as the DW eDMA driver reviewer
  2023-05-11 19:08 [PATCH RESEND v5 00/14] PCI: dwc: Relatively simple fixes and cleanups Serge Semin
                   ` (12 preceding siblings ...)
  2023-05-11 19:09 ` [PATCH RESEND v5 13/14] MAINTAINERS: Add Manivannan to DW eDMA driver maintainers list Serge Semin
@ 2023-05-11 19:09 ` Serge Semin
  2023-05-18  9:32   ` Vinod Koul
  13 siblings, 1 reply; 29+ messages in thread
From: Serge Semin @ 2023-05-11 19:09 UTC (permalink / raw)
  To: Bjorn Helgaas, Lorenzo Pieralisi, Cai Huoqing, Jingoo Han,
	Gustavo Pimentel, Vinod Koul, Manivannan Sadhasivam,
	Yoshihiro Shimoda, Rob Herring
  Cc: Serge Semin, Serge Semin, Alexey Malahov, Pavel Parkhomenko,
	linux-pci, dmaengine, linux-kernel

The driver original maintainer has been inactive for almost two years now.
It doesn't positively affect the new patches tests and reviews process.
Since the DW eDMA engine has been embedded into the PCIe controllers in
several our SoCs we will be interested in helping with the updates review.

Signed-off-by: Serge Semin <Sergey.Semin@baikalelectronics.ru>
Acked-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
---
 MAINTAINERS | 1 +
 1 file changed, 1 insertion(+)

diff --git a/MAINTAINERS b/MAINTAINERS
index 9f66461ede29..485d32e630d4 100644
--- a/MAINTAINERS
+++ b/MAINTAINERS
@@ -5887,6 +5887,7 @@ F:	drivers/mtd/nand/raw/denali*
 DESIGNWARE EDMA CORE IP DRIVER
 M:	Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
 R:	Gustavo Pimentel <gustavo.pimentel@synopsys.com>
+R:	Serge Semin <fancer.lancer@gmail.com>
 L:	dmaengine@vger.kernel.org
 S:	Maintained
 F:	drivers/dma/dw-edma/
-- 
2.40.0



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

* RE: [PATCH RESEND v5 01/14] PCI: dwc: Fix erroneous version type test helper
  2023-05-11 19:08 ` [PATCH RESEND v5 01/14] PCI: dwc: Fix erroneous version type test helper Serge Semin
@ 2023-05-12  9:55   ` Yoshihiro Shimoda
  2023-05-12 10:23     ` Serge Semin
  0 siblings, 1 reply; 29+ messages in thread
From: Yoshihiro Shimoda @ 2023-05-12  9:55 UTC (permalink / raw)
  To: Serge Semin, Bjorn Helgaas, Lorenzo Pieralisi, Cai Huoqing,
	Jingoo Han, Gustavo Pimentel, Vinod Koul, Manivannan Sadhasivam,
	Rob Herring, Manivannan Sadhasivam, Serge Semin,
	Lorenzo Pieralisi, Krzysztof Wilczyński
  Cc: Alexey Malahov, Pavel Parkhomenko, linux-pci, dmaengine, linux-kernel

Hi Serge,

> From: Serge Semin, Sent: Friday, May 12, 2023 4:09 AM
> 
> Due to an unfortunate mistake the macro function actually checks the
> IP-core version instead of the IP-core version type which isn't what
> originally implied. Fix it by introducing a new helper
> __dw_pcie_ver_type_cmp() with the same semantic as the __dw_pcie_ver_cmp()
> counterpart except it refers to the dw_pcie.type field in order to perform
> the passed comparison operation.
> 
> Fixes: 0b0a780d52ad ("PCI: dwc: Add macros to compare Synopsys IP core versions")
> Signed-off-by: Serge Semin <Sergey.Semin@baikalelectronics.ru>
> Reviewed-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>

I'm not sure whether my review is useful or not, but anyway,

Reviewed-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>

Best regards,
Yoshihiro Shimoda

> ---
>  drivers/pci/controller/dwc/pcie-designware.h | 7 +++++--
>  1 file changed, 5 insertions(+), 2 deletions(-)
> 
> diff --git a/drivers/pci/controller/dwc/pcie-designware.h b/drivers/pci/controller/dwc/pcie-designware.h
> index 79713ce075cc..adad0ea61799 100644
> --- a/drivers/pci/controller/dwc/pcie-designware.h
> +++ b/drivers/pci/controller/dwc/pcie-designware.h
> @@ -37,17 +37,20 @@
>  #define __dw_pcie_ver_cmp(_pci, _ver, _op) \
>  	((_pci)->version _op DW_PCIE_VER_ ## _ver)
> 
> +#define __dw_pcie_ver_type_cmp(_pci, _type, _op) \
> +	((_pci)->type _op DW_PCIE_VER_TYPE_ ## _type)
> +
>  #define dw_pcie_ver_is(_pci, _ver) __dw_pcie_ver_cmp(_pci, _ver, ==)
> 
>  #define dw_pcie_ver_is_ge(_pci, _ver) __dw_pcie_ver_cmp(_pci, _ver, >=)
> 
>  #define dw_pcie_ver_type_is(_pci, _ver, _type) \
>  	(__dw_pcie_ver_cmp(_pci, _ver, ==) && \
> -	 __dw_pcie_ver_cmp(_pci, TYPE_ ## _type, ==))
> +	 __dw_pcie_ver_type_cmp(_pci, _type, ==))
> 
>  #define dw_pcie_ver_type_is_ge(_pci, _ver, _type) \
>  	(__dw_pcie_ver_cmp(_pci, _ver, ==) && \
> -	 __dw_pcie_ver_cmp(_pci, TYPE_ ## _type, >=))
> +	 __dw_pcie_ver_type_cmp(_pci, _type, >=))
> 
>  /* DWC PCIe controller capabilities */
>  #define DW_PCIE_CAP_REQ_RES		0
> --
> 2.40.0
> 


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

* RE: [PATCH RESEND v5 02/14] PCI: dwc: Fix inbound iATU entries out-of-bounds warning message
  2023-05-11 19:08 ` [PATCH RESEND v5 02/14] PCI: dwc: Fix inbound iATU entries out-of-bounds warning message Serge Semin
@ 2023-05-12  9:55   ` Yoshihiro Shimoda
  0 siblings, 0 replies; 29+ messages in thread
From: Yoshihiro Shimoda @ 2023-05-12  9:55 UTC (permalink / raw)
  To: Serge Semin, Bjorn Helgaas, Lorenzo Pieralisi, Cai Huoqing,
	Jingoo Han, Gustavo Pimentel, Vinod Koul, Manivannan Sadhasivam,
	Rob Herring, Manivannan Sadhasivam, Serge Semin,
	Lorenzo Pieralisi, Krzysztof Wilczyński
  Cc: Alexey Malahov, Pavel Parkhomenko, linux-pci, dmaengine, linux-kernel

Hi Serge,

> From: Serge Semin, Sent: Friday, May 12, 2023 4:09 AM
> 
> The message is printed if the number of requested inbound iATU windows
> exceed the device capability. In that case the message should either refer
> to the "dma-ranges" DT property or to the DMA-ranges mapping. We suggest
> to use the later version as a counterpart to the just CPU-ranges mapping.
> In any case the current "Dma-ranges" phrase seems incorrect.
> 
> Suggested-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
> Signed-off-by: Serge Semin <Sergey.Semin@baikalelectronics.ru>
> Reviewed-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>

I'm not sure whether my review is useful or not, but anyway,

Reviewed-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>

Best regards,
Yoshihiro Shimoda

> ---
>  drivers/pci/controller/dwc/pcie-designware-host.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/pci/controller/dwc/pcie-designware-host.c b/drivers/pci/controller/dwc/pcie-designware-host.c
> index 9952057c8819..5718b4bb67f0 100644
> --- a/drivers/pci/controller/dwc/pcie-designware-host.c
> +++ b/drivers/pci/controller/dwc/pcie-designware-host.c
> @@ -723,7 +723,7 @@ static int dw_pcie_iatu_setup(struct dw_pcie_rp *pp)
>  	}
> 
>  	if (pci->num_ib_windows <= i)
> -		dev_warn(pci->dev, "Dma-ranges exceed inbound iATU size (%u)\n",
> +		dev_warn(pci->dev, "DMA-ranges exceed inbound iATU size (%u)\n",
>  			 pci->num_ib_windows);
> 
>  	return 0;
> --
> 2.40.0
> 


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

* RE: [PATCH RESEND v5 05/14] PCI: dwc: Drop duplicated fast-link-mode flag unsetting
  2023-05-11 19:08 ` [PATCH RESEND v5 05/14] PCI: dwc: Drop duplicated fast-link-mode flag unsetting Serge Semin
@ 2023-05-12  9:55   ` Yoshihiro Shimoda
  0 siblings, 0 replies; 29+ messages in thread
From: Yoshihiro Shimoda @ 2023-05-12  9:55 UTC (permalink / raw)
  To: Serge Semin, Bjorn Helgaas, Lorenzo Pieralisi, Cai Huoqing,
	Jingoo Han, Gustavo Pimentel, Vinod Koul, Manivannan Sadhasivam,
	Rob Herring, Manivannan Sadhasivam, Serge Semin,
	Lorenzo Pieralisi, Krzysztof Wilczyński
  Cc: Alexey Malahov, Pavel Parkhomenko, linux-pci, dmaengine, linux-kernel

Hi Serge,

> From: Serge Semin, Sent: Friday, May 12, 2023 4:09 AM
> 
> Most likely by mistake the PORT_LINK_FAST_LINK_MODE flag unsetting was
> added twice in the commit cff9244432e8 ("PCI: dwc: Ensure FAST_LINK_MODE
> is cleared"): first it is cleared right after the content of the
> PCIE_PORT_LINK_CONTROL register is read, second it's cleared in the
> framework of the link-mode initialization procedure. The later action is
> redundant. Let's drop it.
> 
> Signed-off-by: Serge Semin <Sergey.Semin@baikalelectronics.ru>
> Reviewed-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>

I'm not sure whether my review is useful or not, but anyway,

Reviewed-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>

Best regards,
Yoshihiro Shimoda

> ---
>  drivers/pci/controller/dwc/pcie-designware.c | 1 -
>  1 file changed, 1 deletion(-)
> 
> diff --git a/drivers/pci/controller/dwc/pcie-designware.c b/drivers/pci/controller/dwc/pcie-designware.c
> index 8e33e6e59e68..e55b7b387eb6 100644
> --- a/drivers/pci/controller/dwc/pcie-designware.c
> +++ b/drivers/pci/controller/dwc/pcie-designware.c
> @@ -1019,7 +1019,6 @@ void dw_pcie_setup(struct dw_pcie *pci)
>  	}
> 
>  	/* Set the number of lanes */
> -	val &= ~PORT_LINK_FAST_LINK_MODE;
>  	val &= ~PORT_LINK_MODE_MASK;
>  	switch (pci->num_lanes) {
>  	case 1:
> --
> 2.40.0
> 


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

* RE: [PATCH RESEND v5 06/14] PCI: dwc: Drop empty line from dw_pcie_link_set_max_speed()
  2023-05-11 19:08 ` [PATCH RESEND v5 06/14] PCI: dwc: Drop empty line from dw_pcie_link_set_max_speed() Serge Semin
@ 2023-05-12  9:56   ` Yoshihiro Shimoda
  0 siblings, 0 replies; 29+ messages in thread
From: Yoshihiro Shimoda @ 2023-05-12  9:56 UTC (permalink / raw)
  To: Serge Semin, Bjorn Helgaas, Lorenzo Pieralisi, Cai Huoqing,
	Jingoo Han, Gustavo Pimentel, Vinod Koul, Manivannan Sadhasivam,
	Rob Herring, Manivannan Sadhasivam, Serge Semin,
	Lorenzo Pieralisi, Krzysztof Wilczyński
  Cc: Alexey Malahov, Pavel Parkhomenko, linux-pci, dmaengine, linux-kernel

Hi Serge,

> From: Serge Semin, Sent: Friday, May 12, 2023 4:09 AM
> 
> Well, just drop a redundant empty line from the tail of the denoted
> function which by mistake was added in commit 39bc5006501c ("PCI: dwc:
> Centralize link gen setting").
> 
> Signed-off-by: Serge Semin <Sergey.Semin@baikalelectronics.ru>
> Reviewed-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>

I'm not sure whether my review is useful or not, but anyway,

Reviewed-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>

Best regards,
Yoshihiro Shimoda

> ---
>  drivers/pci/controller/dwc/pcie-designware.c | 1 -
>  1 file changed, 1 deletion(-)
> 
> diff --git a/drivers/pci/controller/dwc/pcie-designware.c b/drivers/pci/controller/dwc/pcie-designware.c
> index e55b7b387eb6..ede166645289 100644
> --- a/drivers/pci/controller/dwc/pcie-designware.c
> +++ b/drivers/pci/controller/dwc/pcie-designware.c
> @@ -729,7 +729,6 @@ static void dw_pcie_link_set_max_speed(struct dw_pcie *pci, u32 link_gen)
> 
>  	cap &= ~((u32)PCI_EXP_LNKCAP_SLS);
>  	dw_pcie_writel_dbi(pci, offset + PCI_EXP_LNKCAP, cap | link_speed);
> -
>  }
> 
>  void dw_pcie_iatu_detect(struct dw_pcie *pci)
> --
> 2.40.0
> 


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

* Re: [PATCH RESEND v5 01/14] PCI: dwc: Fix erroneous version type test helper
  2023-05-12  9:55   ` Yoshihiro Shimoda
@ 2023-05-12 10:23     ` Serge Semin
  0 siblings, 0 replies; 29+ messages in thread
From: Serge Semin @ 2023-05-12 10:23 UTC (permalink / raw)
  To: Yoshihiro Shimoda
  Cc: Serge Semin, Bjorn Helgaas, Lorenzo Pieralisi, Cai Huoqing,
	Jingoo Han, Gustavo Pimentel, Vinod Koul, Manivannan Sadhasivam,
	Rob Herring, Manivannan Sadhasivam, Lorenzo Pieralisi,
	Krzysztof Wilczyński, Alexey Malahov, Pavel Parkhomenko,
	linux-pci, dmaengine, linux-kernel

Hello Yoshihiro

On Fri, May 12, 2023 at 09:55:42AM +0000, Yoshihiro Shimoda wrote:
> Hi Serge,
> 
> > From: Serge Semin, Sent: Friday, May 12, 2023 4:09 AM
> > 
> > Due to an unfortunate mistake the macro function actually checks the
> > IP-core version instead of the IP-core version type which isn't what
> > originally implied. Fix it by introducing a new helper
> > __dw_pcie_ver_type_cmp() with the same semantic as the __dw_pcie_ver_cmp()
> > counterpart except it refers to the dw_pcie.type field in order to perform
> > the passed comparison operation.
> > 
> > Fixes: 0b0a780d52ad ("PCI: dwc: Add macros to compare Synopsys IP core versions")
> > Signed-off-by: Serge Semin <Sergey.Semin@baikalelectronics.ru>
> > Reviewed-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
> 
> I'm not sure whether my review is useful or not, but anyway,
> 
> Reviewed-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>

It's always useful. Thanks for looking into it.

Regards
-Serge(y)

> 
> Best regards,
> Yoshihiro Shimoda
> 
> > ---
> >  drivers/pci/controller/dwc/pcie-designware.h | 7 +++++--
> >  1 file changed, 5 insertions(+), 2 deletions(-)
> > 
> > diff --git a/drivers/pci/controller/dwc/pcie-designware.h b/drivers/pci/controller/dwc/pcie-designware.h
> > index 79713ce075cc..adad0ea61799 100644
> > --- a/drivers/pci/controller/dwc/pcie-designware.h
> > +++ b/drivers/pci/controller/dwc/pcie-designware.h
> > @@ -37,17 +37,20 @@
> >  #define __dw_pcie_ver_cmp(_pci, _ver, _op) \
> >  	((_pci)->version _op DW_PCIE_VER_ ## _ver)
> > 
> > +#define __dw_pcie_ver_type_cmp(_pci, _type, _op) \
> > +	((_pci)->type _op DW_PCIE_VER_TYPE_ ## _type)
> > +
> >  #define dw_pcie_ver_is(_pci, _ver) __dw_pcie_ver_cmp(_pci, _ver, ==)
> > 
> >  #define dw_pcie_ver_is_ge(_pci, _ver) __dw_pcie_ver_cmp(_pci, _ver, >=)
> > 
> >  #define dw_pcie_ver_type_is(_pci, _ver, _type) \
> >  	(__dw_pcie_ver_cmp(_pci, _ver, ==) && \
> > -	 __dw_pcie_ver_cmp(_pci, TYPE_ ## _type, ==))
> > +	 __dw_pcie_ver_type_cmp(_pci, _type, ==))
> > 
> >  #define dw_pcie_ver_type_is_ge(_pci, _ver, _type) \
> >  	(__dw_pcie_ver_cmp(_pci, _ver, ==) && \
> > -	 __dw_pcie_ver_cmp(_pci, TYPE_ ## _type, >=))
> > +	 __dw_pcie_ver_type_cmp(_pci, _type, >=))
> > 
> >  /* DWC PCIe controller capabilities */
> >  #define DW_PCIE_CAP_REQ_RES		0
> > --
> > 2.40.0
> > 
> 

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

* Re: [PATCH RESEND v5 13/14] MAINTAINERS: Add Manivannan to DW eDMA driver maintainers list
  2023-05-11 19:09 ` [PATCH RESEND v5 13/14] MAINTAINERS: Add Manivannan to DW eDMA driver maintainers list Serge Semin
@ 2023-05-17  5:28   ` Manivannan Sadhasivam
  2023-05-17  8:12     ` Vinod Koul
  0 siblings, 1 reply; 29+ messages in thread
From: Manivannan Sadhasivam @ 2023-05-17  5:28 UTC (permalink / raw)
  To: Serge Semin
  Cc: Bjorn Helgaas, Lorenzo Pieralisi, Cai Huoqing, Jingoo Han,
	Gustavo Pimentel, Vinod Koul, Yoshihiro Shimoda, Rob Herring,
	Serge Semin, Alexey Malahov, Pavel Parkhomenko, linux-pci,
	dmaengine, linux-kernel

On Thu, May 11, 2023 at 10:09:01PM +0300, Serge Semin wrote:
> Manivannan has been very active in reviewing the bits coming to the DW
> eDMA driver. Let's add him to the driver maintainers list.
> 
> Signed-off-by: Serge Semin <Sergey.Semin@baikalelectronics.ru>

Acked-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>

- Mani

> ---
>  MAINTAINERS | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/MAINTAINERS b/MAINTAINERS
> index b49a3f0e6dde..9f66461ede29 100644
> --- a/MAINTAINERS
> +++ b/MAINTAINERS
> @@ -5885,6 +5885,7 @@ S:	Orphan
>  F:	drivers/mtd/nand/raw/denali*
>  
>  DESIGNWARE EDMA CORE IP DRIVER
> +M:	Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
>  R:	Gustavo Pimentel <gustavo.pimentel@synopsys.com>
>  L:	dmaengine@vger.kernel.org
>  S:	Maintained
> -- 
> 2.40.0
> 
> 

-- 
மணிவண்ணன் சதாசிவம்

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

* Re: [PATCH RESEND v5 07/14] PCI: visconti: Convert to using generic resources getter
  2023-05-11 19:08 ` [PATCH RESEND v5 07/14] PCI: visconti: Convert to using generic resources getter Serge Semin
@ 2023-05-17  5:29   ` Manivannan Sadhasivam
  0 siblings, 0 replies; 29+ messages in thread
From: Manivannan Sadhasivam @ 2023-05-17  5:29 UTC (permalink / raw)
  To: Serge Semin
  Cc: Bjorn Helgaas, Lorenzo Pieralisi, Cai Huoqing, Jingoo Han,
	Gustavo Pimentel, Vinod Koul, Yoshihiro Shimoda, Rob Herring,
	Lorenzo Pieralisi, Krzysztof Wilczyński, Nobuhiro Iwamatsu,
	Serge Semin, Alexey Malahov, Pavel Parkhomenko, linux-pci,
	dmaengine, linux-kernel, Bjorn Helgaas, linux-arm-kernel

On Thu, May 11, 2023 at 10:08:55PM +0300, Serge Semin wrote:
> The generic resources request infrastructure has been recently added to
> the DW PCIe core driver. Since the DT-bindings of the Toshibo Visconti
> PCIe Host controller is fully compatible with the generic names set let's
> convert the driver to using that infrastructure. It won't take much effort
> since the low-level device driver implies the resources request only with
> no additional manipulations involving them. So just drop the locally
> defined clocks request procedures, activate the generic resources request
> capability and make sure the mandatory resources have been requested by
> the DW PCIe core driver.
> 
> Suggested-by: Bjorn Helgaas <helgaas@kernel.org>
> Signed-off-by: Serge Semin <Sergey.Semin@baikalelectronics.ru>

Acked-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>

- Mani

> ---
>  drivers/pci/controller/dwc/pcie-visconti.c | 37 ++++++++++------------
>  1 file changed, 17 insertions(+), 20 deletions(-)
> 
> diff --git a/drivers/pci/controller/dwc/pcie-visconti.c b/drivers/pci/controller/dwc/pcie-visconti.c
> index 71026fefa366..ae1517b52c58 100644
> --- a/drivers/pci/controller/dwc/pcie-visconti.c
> +++ b/drivers/pci/controller/dwc/pcie-visconti.c
> @@ -29,9 +29,6 @@ struct visconti_pcie {
>  	void __iomem *ulreg_base;
>  	void __iomem *smu_base;
>  	void __iomem *mpu_base;
> -	struct clk *refclk;
> -	struct clk *coreclk;
> -	struct clk *auxclk;
>  };
>  
>  #define PCIE_UL_REG_S_PCIE_MODE		0x00F4
> @@ -198,6 +195,21 @@ static int visconti_pcie_host_init(struct dw_pcie_rp *pp)
>  	int err;
>  	u32 val;
>  
> +	if (!pcie->pci.core_clks[DW_PCIE_REF_CLK].clk) {
> +		dev_err(pci->dev, "Missing ref clock source\n");
> +		return -ENOENT;
> +	}
> +
> +	if (!pcie->pci.core_clks[DW_PCIE_CORE_CLK].clk) {
> +		dev_err(pci->dev, "Missing core clock source\n");
> +		return -ENOENT;
> +	}
> +
> +	if (!pcie->pci.core_clks[DW_PCIE_AUX_CLK].clk) {
> +		dev_err(pci->dev, "Missing aux clock source\n");
> +		return -ENOENT;
> +	}
> +
>  	visconti_smu_writel(pcie,
>  			    PISMU_CKON_PCIE_AUX_CLK | PISMU_CKON_PCIE_MSTR_ACLK,
>  			    PISMU_CKON_PCIE);
> @@ -242,8 +254,6 @@ static const struct dw_pcie_host_ops visconti_pcie_host_ops = {
>  static int visconti_get_resources(struct platform_device *pdev,
>  				  struct visconti_pcie *pcie)
>  {
> -	struct device *dev = &pdev->dev;
> -
>  	pcie->ulreg_base = devm_platform_ioremap_resource_byname(pdev, "ulreg");
>  	if (IS_ERR(pcie->ulreg_base))
>  		return PTR_ERR(pcie->ulreg_base);
> @@ -256,21 +266,6 @@ static int visconti_get_resources(struct platform_device *pdev,
>  	if (IS_ERR(pcie->mpu_base))
>  		return PTR_ERR(pcie->mpu_base);
>  
> -	pcie->refclk = devm_clk_get(dev, "ref");
> -	if (IS_ERR(pcie->refclk))
> -		return dev_err_probe(dev, PTR_ERR(pcie->refclk),
> -				     "Failed to get ref clock\n");
> -
> -	pcie->coreclk = devm_clk_get(dev, "core");
> -	if (IS_ERR(pcie->coreclk))
> -		return dev_err_probe(dev, PTR_ERR(pcie->coreclk),
> -				     "Failed to get core clock\n");
> -
> -	pcie->auxclk = devm_clk_get(dev, "aux");
> -	if (IS_ERR(pcie->auxclk))
> -		return dev_err_probe(dev, PTR_ERR(pcie->auxclk),
> -				     "Failed to get aux clock\n");
> -
>  	return 0;
>  }
>  
> @@ -304,6 +299,8 @@ static int visconti_pcie_probe(struct platform_device *pdev)
>  	pci->dev = dev;
>  	pci->ops = &dw_pcie_ops;
>  
> +	dw_pcie_cap_set(pci, REQ_RES);
> +
>  	ret = visconti_get_resources(pdev, pcie);
>  	if (ret)
>  		return ret;
> -- 
> 2.40.0
> 
> 

-- 
மணிவண்ணன் சதாசிவம்

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

* Re: [PATCH RESEND v5 09/14] MAINTAINERS: Demote Gustavo Pimentel to DW PCIe core reviewer
  2023-05-11 19:08 ` [PATCH RESEND v5 09/14] MAINTAINERS: Demote Gustavo Pimentel to DW PCIe core reviewer Serge Semin
@ 2023-05-17  5:30   ` Manivannan Sadhasivam
  0 siblings, 0 replies; 29+ messages in thread
From: Manivannan Sadhasivam @ 2023-05-17  5:30 UTC (permalink / raw)
  To: Serge Semin
  Cc: Bjorn Helgaas, Lorenzo Pieralisi, Cai Huoqing, Jingoo Han,
	Gustavo Pimentel, Vinod Koul, Yoshihiro Shimoda, Rob Herring,
	Serge Semin, Alexey Malahov, Pavel Parkhomenko, linux-pci,
	dmaengine, linux-kernel

On Thu, May 11, 2023 at 10:08:57PM +0300, Serge Semin wrote:
> No maintaining actions from Gustavo have been noticed for over two years.
> Demote him to being the DW PCIe RP/EP driver reviewer for now.
> 
> Signed-off-by: Serge Semin <Sergey.Semin@baikalelectronics.ru>

Acked-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>

- Mani

> ---
>  MAINTAINERS | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/MAINTAINERS b/MAINTAINERS
> index 817cd8f40e65..0d93e1e4e776 100644
> --- a/MAINTAINERS
> +++ b/MAINTAINERS
> @@ -16166,7 +16166,7 @@ F:	drivers/pci/controller/dwc/pci-exynos.c
>  
>  PCI DRIVER FOR SYNOPSYS DESIGNWARE
>  M:	Jingoo Han <jingoohan1@gmail.com>
> -M:	Gustavo Pimentel <gustavo.pimentel@synopsys.com>
> +R:	Gustavo Pimentel <gustavo.pimentel@synopsys.com>
>  L:	linux-pci@vger.kernel.org
>  S:	Maintained
>  F:	Documentation/devicetree/bindings/pci/snps,dw-pcie*.yaml
> -- 
> 2.40.0
> 
> 

-- 
மணிவண்ணன் சதாசிவம்

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

* Re: [PATCH RESEND v5 10/14] MAINTAINERS: Add Manivannan to DW PCIe core maintainers list
  2023-05-11 19:08 ` [PATCH RESEND v5 10/14] MAINTAINERS: Add Manivannan to DW PCIe core maintainers list Serge Semin
@ 2023-05-17  5:31   ` Manivannan Sadhasivam
  0 siblings, 0 replies; 29+ messages in thread
From: Manivannan Sadhasivam @ 2023-05-17  5:31 UTC (permalink / raw)
  To: Serge Semin
  Cc: Bjorn Helgaas, Lorenzo Pieralisi, Cai Huoqing, Jingoo Han,
	Gustavo Pimentel, Vinod Koul, Yoshihiro Shimoda, Rob Herring,
	Serge Semin, Alexey Malahov, Pavel Parkhomenko, linux-pci,
	dmaengine, linux-kernel

On Thu, May 11, 2023 at 10:08:58PM +0300, Serge Semin wrote:
> Manivannan has been very active in reviewing and testing the bits coming
> to the DW PCIe RP/EP core driver. Let's add him to the driver maintainers
> list.
> 
> Signed-off-by: Serge Semin <Sergey.Semin@baikalelectronics.ru>

Acked-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>

- Mani

> ---
>  MAINTAINERS | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/MAINTAINERS b/MAINTAINERS
> index 0d93e1e4e776..dc1a5164c93c 100644
> --- a/MAINTAINERS
> +++ b/MAINTAINERS
> @@ -16166,6 +16166,7 @@ F:	drivers/pci/controller/dwc/pci-exynos.c
>  
>  PCI DRIVER FOR SYNOPSYS DESIGNWARE
>  M:	Jingoo Han <jingoohan1@gmail.com>
> +M:	Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
>  R:	Gustavo Pimentel <gustavo.pimentel@synopsys.com>
>  L:	linux-pci@vger.kernel.org
>  S:	Maintained
> -- 
> 2.40.0
> 
> 

-- 
மணிவண்ணன் சதாசிவம்

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

* Re: [PATCH RESEND v5 12/14] MAINTAINERS: Demote Gustavo Pimentel to DW EDMA driver reviewer
  2023-05-11 19:09 ` [PATCH RESEND v5 12/14] MAINTAINERS: Demote Gustavo Pimentel to DW EDMA driver reviewer Serge Semin
@ 2023-05-17  5:31   ` Manivannan Sadhasivam
  2023-05-17  8:12     ` Vinod Koul
  0 siblings, 1 reply; 29+ messages in thread
From: Manivannan Sadhasivam @ 2023-05-17  5:31 UTC (permalink / raw)
  To: Serge Semin
  Cc: Bjorn Helgaas, Lorenzo Pieralisi, Cai Huoqing, Jingoo Han,
	Gustavo Pimentel, Vinod Koul, Yoshihiro Shimoda, Rob Herring,
	Serge Semin, Alexey Malahov, Pavel Parkhomenko, linux-pci,
	dmaengine, linux-kernel

On Thu, May 11, 2023 at 10:09:00PM +0300, Serge Semin wrote:
> No maintaining actions from Gustavo have been noticed for over a year.
> Demote him to being the DW eDMA driver reviewer for now.
> 
> Signed-off-by: Serge Semin <Sergey.Semin@baikalelectronics.ru>

Acked-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>

- Mani

> ---
>  MAINTAINERS | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/MAINTAINERS b/MAINTAINERS
> index 1cd2e42110d5..b49a3f0e6dde 100644
> --- a/MAINTAINERS
> +++ b/MAINTAINERS
> @@ -5885,7 +5885,7 @@ S:	Orphan
>  F:	drivers/mtd/nand/raw/denali*
>  
>  DESIGNWARE EDMA CORE IP DRIVER
> -M:	Gustavo Pimentel <gustavo.pimentel@synopsys.com>
> +R:	Gustavo Pimentel <gustavo.pimentel@synopsys.com>
>  L:	dmaengine@vger.kernel.org
>  S:	Maintained
>  F:	drivers/dma/dw-edma/
> -- 
> 2.40.0
> 
> 

-- 
மணிவண்ணன் சதாசிவம்

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

* Re: [PATCH RESEND v5 12/14] MAINTAINERS: Demote Gustavo Pimentel to DW EDMA driver reviewer
  2023-05-17  5:31   ` Manivannan Sadhasivam
@ 2023-05-17  8:12     ` Vinod Koul
  0 siblings, 0 replies; 29+ messages in thread
From: Vinod Koul @ 2023-05-17  8:12 UTC (permalink / raw)
  To: Manivannan Sadhasivam
  Cc: Serge Semin, Bjorn Helgaas, Lorenzo Pieralisi, Cai Huoqing,
	Jingoo Han, Gustavo Pimentel, Yoshihiro Shimoda, Rob Herring,
	Serge Semin, Alexey Malahov, Pavel Parkhomenko, linux-pci,
	dmaengine, linux-kernel

On 17-05-23, 11:01, Manivannan Sadhasivam wrote:
> On Thu, May 11, 2023 at 10:09:00PM +0300, Serge Semin wrote:
> > No maintaining actions from Gustavo have been noticed for over a year.
> > Demote him to being the DW eDMA driver reviewer for now.
> > 
> > Signed-off-by: Serge Semin <Sergey.Semin@baikalelectronics.ru>
> 
> Acked-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>

Applied to dmaengine/next, thanks

-- 
~Vinod

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

* Re: [PATCH RESEND v5 13/14] MAINTAINERS: Add Manivannan to DW eDMA driver maintainers list
  2023-05-17  5:28   ` Manivannan Sadhasivam
@ 2023-05-17  8:12     ` Vinod Koul
  2023-05-17 19:38       ` Serge Semin
  0 siblings, 1 reply; 29+ messages in thread
From: Vinod Koul @ 2023-05-17  8:12 UTC (permalink / raw)
  To: Manivannan Sadhasivam
  Cc: Serge Semin, Bjorn Helgaas, Lorenzo Pieralisi, Cai Huoqing,
	Jingoo Han, Gustavo Pimentel, Yoshihiro Shimoda, Rob Herring,
	Serge Semin, Alexey Malahov, Pavel Parkhomenko, linux-pci,
	dmaengine, linux-kernel

On 17-05-23, 10:58, Manivannan Sadhasivam wrote:
> On Thu, May 11, 2023 at 10:09:01PM +0300, Serge Semin wrote:
> > Manivannan has been very active in reviewing the bits coming to the DW
> > eDMA driver. Let's add him to the driver maintainers list.
> > 
> > Signed-off-by: Serge Semin <Sergey.Semin@baikalelectronics.ru>
> 
> Acked-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>

Applied to dmaengine/next, thanks

-- 
~Vinod

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

* Re: [PATCH RESEND v5 13/14] MAINTAINERS: Add Manivannan to DW eDMA driver maintainers list
  2023-05-17  8:12     ` Vinod Koul
@ 2023-05-17 19:38       ` Serge Semin
  0 siblings, 0 replies; 29+ messages in thread
From: Serge Semin @ 2023-05-17 19:38 UTC (permalink / raw)
  To: Vinod Koul
  Cc: Manivannan Sadhasivam, Serge Semin, Bjorn Helgaas,
	Lorenzo Pieralisi, Cai Huoqing, Jingoo Han, Gustavo Pimentel,
	Yoshihiro Shimoda, Rob Herring, Alexey Malahov,
	Pavel Parkhomenko, linux-pci, dmaengine, linux-kernel

Hi Vinod

On Wed, May 17, 2023 at 01:42:39PM +0530, Vinod Koul wrote:
> On 17-05-23, 10:58, Manivannan Sadhasivam wrote:
> > On Thu, May 11, 2023 at 10:09:01PM +0300, Serge Semin wrote:
> > > Manivannan has been very active in reviewing the bits coming to the DW
> > > eDMA driver. Let's add him to the driver maintainers list.
> > > 
> > > Signed-off-by: Serge Semin <Sergey.Semin@baikalelectronics.ru>
> > 
> > Acked-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
> 
> Applied to dmaengine/next, thanks

Patch 14 of the series also concerns the DW eDMA driver. Could you
please have a look at it too?

-Serge(y)

> 
> -- 
> ~Vinod

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

* Re: [PATCH RESEND v5 14/14] MAINTAINERS: Add myself as the DW eDMA driver reviewer
  2023-05-11 19:09 ` [PATCH RESEND v5 14/14] MAINTAINERS: Add myself as the DW eDMA driver reviewer Serge Semin
@ 2023-05-18  9:32   ` Vinod Koul
  0 siblings, 0 replies; 29+ messages in thread
From: Vinod Koul @ 2023-05-18  9:32 UTC (permalink / raw)
  To: Serge Semin
  Cc: Bjorn Helgaas, Lorenzo Pieralisi, Cai Huoqing, Jingoo Han,
	Gustavo Pimentel, Manivannan Sadhasivam, Yoshihiro Shimoda,
	Rob Herring, Serge Semin, Alexey Malahov, Pavel Parkhomenko,
	linux-pci, dmaengine, linux-kernel

On 11-05-23, 22:09, Serge Semin wrote:
> The driver original maintainer has been inactive for almost two years now.
> It doesn't positively affect the new patches tests and reviews process.
> Since the DW eDMA engine has been embedded into the PCIe controllers in
> several our SoCs we will be interested in helping with the updates review.

Applied, thanks

-- 
~Vinod

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

end of thread, other threads:[~2023-05-18  9:32 UTC | newest]

Thread overview: 29+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-05-11 19:08 [PATCH RESEND v5 00/14] PCI: dwc: Relatively simple fixes and cleanups Serge Semin
2023-05-11 19:08 ` [PATCH RESEND v5 01/14] PCI: dwc: Fix erroneous version type test helper Serge Semin
2023-05-12  9:55   ` Yoshihiro Shimoda
2023-05-12 10:23     ` Serge Semin
2023-05-11 19:08 ` [PATCH RESEND v5 02/14] PCI: dwc: Fix inbound iATU entries out-of-bounds warning message Serge Semin
2023-05-12  9:55   ` Yoshihiro Shimoda
2023-05-11 19:08 ` [PATCH RESEND v5 03/14] PCI: bt1: Enable async probe type Serge Semin
2023-05-11 19:08 ` [PATCH RESEND v5 04/14] PCI: bt1: Fix printing false error message Serge Semin
2023-05-11 19:08 ` [PATCH RESEND v5 05/14] PCI: dwc: Drop duplicated fast-link-mode flag unsetting Serge Semin
2023-05-12  9:55   ` Yoshihiro Shimoda
2023-05-11 19:08 ` [PATCH RESEND v5 06/14] PCI: dwc: Drop empty line from dw_pcie_link_set_max_speed() Serge Semin
2023-05-12  9:56   ` Yoshihiro Shimoda
2023-05-11 19:08 ` [PATCH RESEND v5 07/14] PCI: visconti: Convert to using generic resources getter Serge Semin
2023-05-17  5:29   ` Manivannan Sadhasivam
2023-05-11 19:08 ` [PATCH RESEND v5 08/14] MAINTAINERS: Add all generic DW PCIe RP/EP DT-schemas Serge Semin
2023-05-11 19:08 ` [PATCH RESEND v5 09/14] MAINTAINERS: Demote Gustavo Pimentel to DW PCIe core reviewer Serge Semin
2023-05-17  5:30   ` Manivannan Sadhasivam
2023-05-11 19:08 ` [PATCH RESEND v5 10/14] MAINTAINERS: Add Manivannan to DW PCIe core maintainers list Serge Semin
2023-05-17  5:31   ` Manivannan Sadhasivam
2023-05-11 19:08 ` [PATCH RESEND v5 11/14] MAINTAINERS: Add myself as the DW PCIe core reviewer Serge Semin
2023-05-11 19:09 ` [PATCH RESEND v5 12/14] MAINTAINERS: Demote Gustavo Pimentel to DW EDMA driver reviewer Serge Semin
2023-05-17  5:31   ` Manivannan Sadhasivam
2023-05-17  8:12     ` Vinod Koul
2023-05-11 19:09 ` [PATCH RESEND v5 13/14] MAINTAINERS: Add Manivannan to DW eDMA driver maintainers list Serge Semin
2023-05-17  5:28   ` Manivannan Sadhasivam
2023-05-17  8:12     ` Vinod Koul
2023-05-17 19:38       ` Serge Semin
2023-05-11 19:09 ` [PATCH RESEND v5 14/14] MAINTAINERS: Add myself as the DW eDMA driver reviewer Serge Semin
2023-05-18  9:32   ` Vinod Koul

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).