linux-pci.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 00/13] PCI: Drop superfluous pci_epc_features initialization
@ 2025-08-14 15:21 Niklas Cassel
  2025-08-14 15:21 ` [PATCH 01/13] PCI: cadence-ep: " Niklas Cassel
                   ` (13 more replies)
  0 siblings, 14 replies; 17+ messages in thread
From: Niklas Cassel @ 2025-08-14 15:21 UTC (permalink / raw)
  To: Lorenzo Pieralisi, Krzysztof Wilczyński,
	Manivannan Sadhasivam, Rob Herring, Bjorn Helgaas,
	Vignesh Raghavendra, Siddharth Vadapalli, Richard Zhu,
	Lucas Stach, Shawn Guo, Sascha Hauer, Pengutronix Kernel Team,
	Fabio Estevam, Jesper Nilsson, Jingoo Han, Heiko Stuebner,
	Srikanth Thokala, Marek Vasut, Yoshihiro Shimoda,
	Geert Uytterhoeven, Magnus Damm, Thierry Reding, Jonathan Hunter,
	Shawn Lin
  Cc: Niklas Cassel, linux-pci, linux-omap, linux-arm-kernel, imx,
	linux-arm-kernel, linux-rockchip, linux-arm-msm,
	linux-renesas-soc, linux-tegra

Hello all,

struct pci_epc_features has static storage duration, so all struct members
are zero initialized implicitly. Thus, remove explicit zero initialization
of struct members.

Series is based on pci/next.

Feel free to squash to a single commit if that is preferable.

Kind regards,
Niklas


Niklas Cassel (13):
  PCI: cadence-ep: Drop superfluous pci_epc_features initialization
  PCI: rcar-ep: Drop superfluous pci_epc_features initialization
  PCI: rockchip-ep: Drop superfluous pci_epc_features initialization
  PCI: dra7xx: Drop superfluous pci_epc_features initialization
  PCI: imx6: Drop superfluous pci_epc_features initialization
  PCI: keystone: Drop superfluous pci_epc_features initialization
  PCI: artpec6: Drop superfluous pci_epc_features initialization
  PCI: designware-plat: Drop superfluous pci_epc_features initialization
  PCI: dw-rockchip: Drop superfluous pci_epc_features initialization
  PCI: keembay: Drop superfluous pci_epc_features initialization
  PCI: qcom-ep: Drop superfluous pci_epc_features initialization
  PCI: rcar-gen4: Drop superfluous pci_epc_features initialization
  PCI: tegra194: Drop superfluous pci_epc_features initialization

 drivers/pci/controller/cadence/pcie-cadence-ep.c  | 2 --
 drivers/pci/controller/dwc/pci-dra7xx.c           | 1 -
 drivers/pci/controller/dwc/pci-imx6.c             | 4 ----
 drivers/pci/controller/dwc/pci-keystone.c         | 1 -
 drivers/pci/controller/dwc/pcie-artpec6.c         | 2 --
 drivers/pci/controller/dwc/pcie-designware-plat.c | 1 -
 drivers/pci/controller/dwc/pcie-dw-rockchip.c     | 2 --
 drivers/pci/controller/dwc/pcie-keembay.c         | 1 -
 drivers/pci/controller/dwc/pcie-qcom-ep.c         | 1 -
 drivers/pci/controller/dwc/pcie-rcar-gen4.c       | 2 --
 drivers/pci/controller/dwc/pcie-tegra194.c        | 2 --
 drivers/pci/controller/pcie-rcar-ep.c             | 2 --
 drivers/pci/controller/pcie-rockchip-ep.c         | 1 -
 13 files changed, 22 deletions(-)

-- 
2.50.1


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

* [PATCH 01/13] PCI: cadence-ep: Drop superfluous pci_epc_features initialization
  2025-08-14 15:21 [PATCH 00/13] PCI: Drop superfluous pci_epc_features initialization Niklas Cassel
@ 2025-08-14 15:21 ` Niklas Cassel
  2025-08-14 15:21 ` [PATCH 02/13] PCI: rcar-ep: " Niklas Cassel
                   ` (12 subsequent siblings)
  13 siblings, 0 replies; 17+ messages in thread
From: Niklas Cassel @ 2025-08-14 15:21 UTC (permalink / raw)
  To: Lorenzo Pieralisi, Krzysztof Wilczyński,
	Manivannan Sadhasivam, Rob Herring, Bjorn Helgaas
  Cc: Niklas Cassel, linux-pci

struct pci_epc_features has static storage duration, so all struct members
are zero initialized implicitly. Thus, remove explicit zero initialization
of struct members.

Signed-off-by: Niklas Cassel <cassel@kernel.org>
---
 drivers/pci/controller/cadence/pcie-cadence-ep.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/drivers/pci/controller/cadence/pcie-cadence-ep.c b/drivers/pci/controller/cadence/pcie-cadence-ep.c
index 77c5a19b2ab1..f3565164f142 100644
--- a/drivers/pci/controller/cadence/pcie-cadence-ep.c
+++ b/drivers/pci/controller/cadence/pcie-cadence-ep.c
@@ -608,14 +608,12 @@ static int cdns_pcie_ep_start(struct pci_epc *epc)
 }
 
 static const struct pci_epc_features cdns_pcie_epc_vf_features = {
-	.linkup_notifier = false,
 	.msi_capable = true,
 	.msix_capable = true,
 	.align = 65536,
 };
 
 static const struct pci_epc_features cdns_pcie_epc_features = {
-	.linkup_notifier = false,
 	.msi_capable = true,
 	.msix_capable = true,
 	.align = 256,
-- 
2.50.1


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

* [PATCH 02/13] PCI: rcar-ep: Drop superfluous pci_epc_features initialization
  2025-08-14 15:21 [PATCH 00/13] PCI: Drop superfluous pci_epc_features initialization Niklas Cassel
  2025-08-14 15:21 ` [PATCH 01/13] PCI: cadence-ep: " Niklas Cassel
@ 2025-08-14 15:21 ` Niklas Cassel
  2025-08-14 15:24   ` Geert Uytterhoeven
  2025-08-14 15:21 ` [PATCH 03/13] PCI: rockchip-ep: " Niklas Cassel
                   ` (11 subsequent siblings)
  13 siblings, 1 reply; 17+ messages in thread
From: Niklas Cassel @ 2025-08-14 15:21 UTC (permalink / raw)
  To: Marek Vasut, Yoshihiro Shimoda, Lorenzo Pieralisi,
	Krzysztof Wilczyński, Manivannan Sadhasivam, Rob Herring,
	Bjorn Helgaas, Geert Uytterhoeven, Magnus Damm
  Cc: Niklas Cassel, linux-pci, linux-renesas-soc

struct pci_epc_features has static storage duration, so all struct members
are zero initialized implicitly. Thus, remove explicit zero initialization
of struct members.

Signed-off-by: Niklas Cassel <cassel@kernel.org>
---
 drivers/pci/controller/pcie-rcar-ep.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/drivers/pci/controller/pcie-rcar-ep.c b/drivers/pci/controller/pcie-rcar-ep.c
index a8a966844cf3..657875ef4657 100644
--- a/drivers/pci/controller/pcie-rcar-ep.c
+++ b/drivers/pci/controller/pcie-rcar-ep.c
@@ -436,9 +436,7 @@ static void rcar_pcie_ep_stop(struct pci_epc *epc)
 }
 
 static const struct pci_epc_features rcar_pcie_epc_features = {
-	.linkup_notifier = false,
 	.msi_capable = true,
-	.msix_capable = false,
 	/* use 64-bit BARs so mark BAR[1,3,5] as reserved */
 	.bar[BAR_0] = { .type = BAR_FIXED, .fixed_size = 128,
 			.only_64bit = true, },
-- 
2.50.1


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

* [PATCH 03/13] PCI: rockchip-ep: Drop superfluous pci_epc_features initialization
  2025-08-14 15:21 [PATCH 00/13] PCI: Drop superfluous pci_epc_features initialization Niklas Cassel
  2025-08-14 15:21 ` [PATCH 01/13] PCI: cadence-ep: " Niklas Cassel
  2025-08-14 15:21 ` [PATCH 02/13] PCI: rcar-ep: " Niklas Cassel
@ 2025-08-14 15:21 ` Niklas Cassel
  2025-08-14 15:21 ` [PATCH 04/13] PCI: dra7xx: " Niklas Cassel
                   ` (10 subsequent siblings)
  13 siblings, 0 replies; 17+ messages in thread
From: Niklas Cassel @ 2025-08-14 15:21 UTC (permalink / raw)
  To: Shawn Lin, Lorenzo Pieralisi, Krzysztof Wilczyński,
	Manivannan Sadhasivam, Rob Herring, Bjorn Helgaas, Heiko Stuebner
  Cc: Niklas Cassel, linux-pci, linux-rockchip, linux-arm-kernel

struct pci_epc_features has static storage duration, so all struct members
are zero initialized implicitly. Thus, remove explicit zero initialization
of struct members.

Signed-off-by: Niklas Cassel <cassel@kernel.org>
---
 drivers/pci/controller/pcie-rockchip-ep.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/drivers/pci/controller/pcie-rockchip-ep.c b/drivers/pci/controller/pcie-rockchip-ep.c
index 300cd85fa035..799461335762 100644
--- a/drivers/pci/controller/pcie-rockchip-ep.c
+++ b/drivers/pci/controller/pcie-rockchip-ep.c
@@ -694,7 +694,6 @@ static int rockchip_pcie_ep_setup_irq(struct pci_epc *epc)
 static const struct pci_epc_features rockchip_pcie_epc_features = {
 	.linkup_notifier = true,
 	.msi_capable = true,
-	.msix_capable = false,
 	.intx_capable = true,
 	.align = ROCKCHIP_PCIE_AT_SIZE_ALIGN,
 };
-- 
2.50.1


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

* [PATCH 04/13] PCI: dra7xx: Drop superfluous pci_epc_features initialization
  2025-08-14 15:21 [PATCH 00/13] PCI: Drop superfluous pci_epc_features initialization Niklas Cassel
                   ` (2 preceding siblings ...)
  2025-08-14 15:21 ` [PATCH 03/13] PCI: rockchip-ep: " Niklas Cassel
@ 2025-08-14 15:21 ` Niklas Cassel
  2025-08-14 15:21 ` [PATCH 05/13] PCI: imx6: " Niklas Cassel
                   ` (9 subsequent siblings)
  13 siblings, 0 replies; 17+ messages in thread
From: Niklas Cassel @ 2025-08-14 15:21 UTC (permalink / raw)
  To: Vignesh Raghavendra, Siddharth Vadapalli, Lorenzo Pieralisi,
	Krzysztof Wilczyński, Manivannan Sadhasivam, Rob Herring,
	Bjorn Helgaas
  Cc: Niklas Cassel, linux-omap, linux-pci, linux-arm-kernel

struct pci_epc_features has static storage duration, so all struct members
are zero initialized implicitly. Thus, remove explicit zero initialization
of struct members.

Signed-off-by: Niklas Cassel <cassel@kernel.org>
---
 drivers/pci/controller/dwc/pci-dra7xx.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/drivers/pci/controller/dwc/pci-dra7xx.c b/drivers/pci/controller/dwc/pci-dra7xx.c
index f97f5266d196..01cfd9aeb0b8 100644
--- a/drivers/pci/controller/dwc/pci-dra7xx.c
+++ b/drivers/pci/controller/dwc/pci-dra7xx.c
@@ -426,7 +426,6 @@ static int dra7xx_pcie_raise_irq(struct dw_pcie_ep *ep, u8 func_no,
 static const struct pci_epc_features dra7xx_pcie_epc_features = {
 	.linkup_notifier = true,
 	.msi_capable = true,
-	.msix_capable = false,
 };
 
 static const struct pci_epc_features*
-- 
2.50.1


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

* [PATCH 05/13] PCI: imx6: Drop superfluous pci_epc_features initialization
  2025-08-14 15:21 [PATCH 00/13] PCI: Drop superfluous pci_epc_features initialization Niklas Cassel
                   ` (3 preceding siblings ...)
  2025-08-14 15:21 ` [PATCH 04/13] PCI: dra7xx: " Niklas Cassel
@ 2025-08-14 15:21 ` Niklas Cassel
  2025-08-14 15:21 ` [PATCH 06/13] PCI: keystone: " Niklas Cassel
                   ` (8 subsequent siblings)
  13 siblings, 0 replies; 17+ messages in thread
From: Niklas Cassel @ 2025-08-14 15:21 UTC (permalink / raw)
  To: Richard Zhu, Lucas Stach, Lorenzo Pieralisi,
	Krzysztof Wilczyński, Manivannan Sadhasivam, Rob Herring,
	Bjorn Helgaas, Shawn Guo, Sascha Hauer, Pengutronix Kernel Team,
	Fabio Estevam
  Cc: Niklas Cassel, linux-pci, linux-arm-kernel, imx

struct pci_epc_features has static storage duration, so all struct members
are zero initialized implicitly. Thus, remove explicit zero initialization
of struct members.

Signed-off-by: Niklas Cassel <cassel@kernel.org>
---
 drivers/pci/controller/dwc/pci-imx6.c | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/drivers/pci/controller/dwc/pci-imx6.c b/drivers/pci/controller/dwc/pci-imx6.c
index 80e48746bbaf..7ee21fac81a6 100644
--- a/drivers/pci/controller/dwc/pci-imx6.c
+++ b/drivers/pci/controller/dwc/pci-imx6.c
@@ -1387,9 +1387,7 @@ static int imx_pcie_ep_raise_irq(struct dw_pcie_ep *ep, u8 func_no,
 }
 
 static const struct pci_epc_features imx8m_pcie_epc_features = {
-	.linkup_notifier = false,
 	.msi_capable = true,
-	.msix_capable = false,
 	.bar[BAR_1] = { .type = BAR_RESERVED, },
 	.bar[BAR_3] = { .type = BAR_RESERVED, },
 	.bar[BAR_4] = { .type = BAR_FIXED, .fixed_size = SZ_256, },
@@ -1398,9 +1396,7 @@ static const struct pci_epc_features imx8m_pcie_epc_features = {
 };
 
 static const struct pci_epc_features imx8q_pcie_epc_features = {
-	.linkup_notifier = false,
 	.msi_capable = true,
-	.msix_capable = false,
 	.bar[BAR_1] = { .type = BAR_RESERVED, },
 	.bar[BAR_3] = { .type = BAR_RESERVED, },
 	.bar[BAR_5] = { .type = BAR_RESERVED, },
-- 
2.50.1


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

* [PATCH 06/13] PCI: keystone: Drop superfluous pci_epc_features initialization
  2025-08-14 15:21 [PATCH 00/13] PCI: Drop superfluous pci_epc_features initialization Niklas Cassel
                   ` (4 preceding siblings ...)
  2025-08-14 15:21 ` [PATCH 05/13] PCI: imx6: " Niklas Cassel
@ 2025-08-14 15:21 ` Niklas Cassel
  2025-08-14 15:21 ` [PATCH 07/13] PCI: artpec6: " Niklas Cassel
                   ` (7 subsequent siblings)
  13 siblings, 0 replies; 17+ messages in thread
From: Niklas Cassel @ 2025-08-14 15:21 UTC (permalink / raw)
  To: Lorenzo Pieralisi, Krzysztof Wilczyński,
	Manivannan Sadhasivam, Rob Herring, Bjorn Helgaas
  Cc: Niklas Cassel, linux-pci

struct pci_epc_features has static storage duration, so all struct members
are zero initialized implicitly. Thus, remove explicit zero initialization
of struct members.

Signed-off-by: Niklas Cassel <cassel@kernel.org>
---
 drivers/pci/controller/dwc/pci-keystone.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/drivers/pci/controller/dwc/pci-keystone.c b/drivers/pci/controller/dwc/pci-keystone.c
index 2b2632e513b5..7d7aede54ed3 100644
--- a/drivers/pci/controller/dwc/pci-keystone.c
+++ b/drivers/pci/controller/dwc/pci-keystone.c
@@ -960,7 +960,6 @@ static int ks_pcie_am654_raise_irq(struct dw_pcie_ep *ep, u8 func_no,
 }
 
 static const struct pci_epc_features ks_pcie_am654_epc_features = {
-	.linkup_notifier = false,
 	.msi_capable = true,
 	.msix_capable = true,
 	.bar[BAR_0] = { .type = BAR_RESERVED, },
-- 
2.50.1


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

* [PATCH 07/13] PCI: artpec6: Drop superfluous pci_epc_features initialization
  2025-08-14 15:21 [PATCH 00/13] PCI: Drop superfluous pci_epc_features initialization Niklas Cassel
                   ` (5 preceding siblings ...)
  2025-08-14 15:21 ` [PATCH 06/13] PCI: keystone: " Niklas Cassel
@ 2025-08-14 15:21 ` Niklas Cassel
  2025-08-14 15:21 ` [PATCH 08/13] PCI: designware-plat: " Niklas Cassel
                   ` (6 subsequent siblings)
  13 siblings, 0 replies; 17+ messages in thread
From: Niklas Cassel @ 2025-08-14 15:21 UTC (permalink / raw)
  To: Jesper Nilsson, Lorenzo Pieralisi, Krzysztof Wilczyński,
	Manivannan Sadhasivam, Rob Herring, Bjorn Helgaas
  Cc: Niklas Cassel, linux-arm-kernel, linux-pci

struct pci_epc_features has static storage duration, so all struct members
are zero initialized implicitly. Thus, remove explicit zero initialization
of struct members.

Signed-off-by: Niklas Cassel <cassel@kernel.org>
---
 drivers/pci/controller/dwc/pcie-artpec6.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/drivers/pci/controller/dwc/pcie-artpec6.c b/drivers/pci/controller/dwc/pcie-artpec6.c
index 234c8cbcae3a..f4a136ee2daf 100644
--- a/drivers/pci/controller/dwc/pcie-artpec6.c
+++ b/drivers/pci/controller/dwc/pcie-artpec6.c
@@ -370,9 +370,7 @@ static int artpec6_pcie_raise_irq(struct dw_pcie_ep *ep, u8 func_no,
 }
 
 static const struct pci_epc_features artpec6_pcie_epc_features = {
-	.linkup_notifier = false,
 	.msi_capable = true,
-	.msix_capable = false,
 };
 
 static const struct pci_epc_features *
-- 
2.50.1


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

* [PATCH 08/13] PCI: designware-plat: Drop superfluous pci_epc_features initialization
  2025-08-14 15:21 [PATCH 00/13] PCI: Drop superfluous pci_epc_features initialization Niklas Cassel
                   ` (6 preceding siblings ...)
  2025-08-14 15:21 ` [PATCH 07/13] PCI: artpec6: " Niklas Cassel
@ 2025-08-14 15:21 ` Niklas Cassel
  2025-08-14 15:21 ` [PATCH 09/13] PCI: dw-rockchip: " Niklas Cassel
                   ` (5 subsequent siblings)
  13 siblings, 0 replies; 17+ messages in thread
From: Niklas Cassel @ 2025-08-14 15:21 UTC (permalink / raw)
  To: Jingoo Han, Manivannan Sadhasivam, Lorenzo Pieralisi,
	Krzysztof Wilczyński, Rob Herring, Bjorn Helgaas
  Cc: Niklas Cassel, linux-pci

struct pci_epc_features has static storage duration, so all struct members
are zero initialized implicitly. Thus, remove explicit zero initialization
of struct members.

Signed-off-by: Niklas Cassel <cassel@kernel.org>
---
 drivers/pci/controller/dwc/pcie-designware-plat.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/drivers/pci/controller/dwc/pcie-designware-plat.c b/drivers/pci/controller/dwc/pcie-designware-plat.c
index 771b9d9be077..12f41886c65d 100644
--- a/drivers/pci/controller/dwc/pcie-designware-plat.c
+++ b/drivers/pci/controller/dwc/pcie-designware-plat.c
@@ -61,7 +61,6 @@ static int dw_plat_pcie_ep_raise_irq(struct dw_pcie_ep *ep, u8 func_no,
 }
 
 static const struct pci_epc_features dw_plat_pcie_epc_features = {
-	.linkup_notifier = false,
 	.msi_capable = true,
 	.msix_capable = true,
 };
-- 
2.50.1


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

* [PATCH 09/13] PCI: dw-rockchip: Drop superfluous pci_epc_features initialization
  2025-08-14 15:21 [PATCH 00/13] PCI: Drop superfluous pci_epc_features initialization Niklas Cassel
                   ` (7 preceding siblings ...)
  2025-08-14 15:21 ` [PATCH 08/13] PCI: designware-plat: " Niklas Cassel
@ 2025-08-14 15:21 ` Niklas Cassel
  2025-08-14 15:21 ` [PATCH 10/13] PCI: keembay: " Niklas Cassel
                   ` (4 subsequent siblings)
  13 siblings, 0 replies; 17+ messages in thread
From: Niklas Cassel @ 2025-08-14 15:21 UTC (permalink / raw)
  To: Lorenzo Pieralisi, Krzysztof Wilczyński,
	Manivannan Sadhasivam, Rob Herring, Bjorn Helgaas, Heiko Stuebner
  Cc: Niklas Cassel, linux-pci, linux-arm-kernel, linux-rockchip

struct pci_epc_features has static storage duration, so all struct members
are zero initialized implicitly. Thus, remove explicit zero initialization
of struct members.

Signed-off-by: Niklas Cassel <cassel@kernel.org>
---
 drivers/pci/controller/dwc/pcie-dw-rockchip.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/drivers/pci/controller/dwc/pcie-dw-rockchip.c b/drivers/pci/controller/dwc/pcie-dw-rockchip.c
index b5f5eee5a50e..c045353fa493 100644
--- a/drivers/pci/controller/dwc/pcie-dw-rockchip.c
+++ b/drivers/pci/controller/dwc/pcie-dw-rockchip.c
@@ -325,7 +325,6 @@ static const struct pci_epc_features rockchip_pcie_epc_features_rk3568 = {
 	.linkup_notifier = true,
 	.msi_capable = true,
 	.msix_capable = true,
-	.intx_capable = false,
 	.align = SZ_64K,
 	.bar[BAR_0] = { .type = BAR_RESIZABLE, },
 	.bar[BAR_1] = { .type = BAR_RESIZABLE, },
@@ -346,7 +345,6 @@ static const struct pci_epc_features rockchip_pcie_epc_features_rk3588 = {
 	.linkup_notifier = true,
 	.msi_capable = true,
 	.msix_capable = true,
-	.intx_capable = false,
 	.align = SZ_64K,
 	.bar[BAR_0] = { .type = BAR_RESIZABLE, },
 	.bar[BAR_1] = { .type = BAR_RESIZABLE, },
-- 
2.50.1


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

* [PATCH 10/13] PCI: keembay: Drop superfluous pci_epc_features initialization
  2025-08-14 15:21 [PATCH 00/13] PCI: Drop superfluous pci_epc_features initialization Niklas Cassel
                   ` (8 preceding siblings ...)
  2025-08-14 15:21 ` [PATCH 09/13] PCI: dw-rockchip: " Niklas Cassel
@ 2025-08-14 15:21 ` Niklas Cassel
  2025-08-14 15:21 ` [PATCH 11/13] PCI: qcom-ep: " Niklas Cassel
                   ` (3 subsequent siblings)
  13 siblings, 0 replies; 17+ messages in thread
From: Niklas Cassel @ 2025-08-14 15:21 UTC (permalink / raw)
  To: Srikanth Thokala, Lorenzo Pieralisi, Krzysztof Wilczyński,
	Manivannan Sadhasivam, Rob Herring, Bjorn Helgaas
  Cc: Niklas Cassel, linux-pci

struct pci_epc_features has static storage duration, so all struct members
are zero initialized implicitly. Thus, remove explicit zero initialization
of struct members.

Signed-off-by: Niklas Cassel <cassel@kernel.org>
---
 drivers/pci/controller/dwc/pcie-keembay.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/drivers/pci/controller/dwc/pcie-keembay.c b/drivers/pci/controller/dwc/pcie-keembay.c
index 67dd3337b447..60e74ac782af 100644
--- a/drivers/pci/controller/dwc/pcie-keembay.c
+++ b/drivers/pci/controller/dwc/pcie-keembay.c
@@ -309,7 +309,6 @@ static int keembay_pcie_ep_raise_irq(struct dw_pcie_ep *ep, u8 func_no,
 }
 
 static const struct pci_epc_features keembay_pcie_epc_features = {
-	.linkup_notifier	= false,
 	.msi_capable		= true,
 	.msix_capable		= true,
 	.bar[BAR_0]		= { .only_64bit = true, },
-- 
2.50.1


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

* [PATCH 11/13] PCI: qcom-ep: Drop superfluous pci_epc_features initialization
  2025-08-14 15:21 [PATCH 00/13] PCI: Drop superfluous pci_epc_features initialization Niklas Cassel
                   ` (9 preceding siblings ...)
  2025-08-14 15:21 ` [PATCH 10/13] PCI: keembay: " Niklas Cassel
@ 2025-08-14 15:21 ` Niklas Cassel
  2025-08-14 15:21 ` [PATCH 12/13] PCI: rcar-gen4: " Niklas Cassel
                   ` (2 subsequent siblings)
  13 siblings, 0 replies; 17+ messages in thread
From: Niklas Cassel @ 2025-08-14 15:21 UTC (permalink / raw)
  To: Manivannan Sadhasivam, Lorenzo Pieralisi,
	Krzysztof Wilczyński, Rob Herring, Bjorn Helgaas
  Cc: Niklas Cassel, linux-pci, linux-arm-msm

struct pci_epc_features has static storage duration, so all struct members
are zero initialized implicitly. Thus, remove explicit zero initialization
of struct members.

Signed-off-by: Niklas Cassel <cassel@kernel.org>
---
 drivers/pci/controller/dwc/pcie-qcom-ep.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/drivers/pci/controller/dwc/pcie-qcom-ep.c b/drivers/pci/controller/dwc/pcie-qcom-ep.c
index bf7c6ac0f3e3..60afb4d0134c 100644
--- a/drivers/pci/controller/dwc/pcie-qcom-ep.c
+++ b/drivers/pci/controller/dwc/pcie-qcom-ep.c
@@ -831,7 +831,6 @@ static void qcom_pcie_ep_init_debugfs(struct qcom_pcie_ep *pcie_ep)
 static const struct pci_epc_features qcom_pcie_epc_features = {
 	.linkup_notifier = true,
 	.msi_capable = true,
-	.msix_capable = false,
 	.align = SZ_4K,
 	.bar[BAR_0] = { .only_64bit = true, },
 	.bar[BAR_1] = { .type = BAR_RESERVED, },
-- 
2.50.1


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

* [PATCH 12/13] PCI: rcar-gen4: Drop superfluous pci_epc_features initialization
  2025-08-14 15:21 [PATCH 00/13] PCI: Drop superfluous pci_epc_features initialization Niklas Cassel
                   ` (10 preceding siblings ...)
  2025-08-14 15:21 ` [PATCH 11/13] PCI: qcom-ep: " Niklas Cassel
@ 2025-08-14 15:21 ` Niklas Cassel
  2025-08-14 15:25   ` Geert Uytterhoeven
  2025-08-14 15:21 ` [PATCH 13/13] PCI: tegra194: " Niklas Cassel
  2025-08-14 15:50 ` [PATCH 00/13] PCI: " Bjorn Helgaas
  13 siblings, 1 reply; 17+ messages in thread
From: Niklas Cassel @ 2025-08-14 15:21 UTC (permalink / raw)
  To: Marek Vasut, Yoshihiro Shimoda, Lorenzo Pieralisi,
	Krzysztof Wilczyński, Manivannan Sadhasivam, Rob Herring,
	Bjorn Helgaas, Geert Uytterhoeven, Magnus Damm
  Cc: Niklas Cassel, linux-pci, linux-renesas-soc

struct pci_epc_features has static storage duration, so all struct members
are zero initialized implicitly. Thus, remove explicit zero initialization
of struct members.

Signed-off-by: Niklas Cassel <cassel@kernel.org>
---
 drivers/pci/controller/dwc/pcie-rcar-gen4.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/drivers/pci/controller/dwc/pcie-rcar-gen4.c b/drivers/pci/controller/dwc/pcie-rcar-gen4.c
index 366e21bffcbe..d787f2a364d5 100644
--- a/drivers/pci/controller/dwc/pcie-rcar-gen4.c
+++ b/drivers/pci/controller/dwc/pcie-rcar-gen4.c
@@ -398,9 +398,7 @@ static int rcar_gen4_pcie_ep_raise_irq(struct dw_pcie_ep *ep, u8 func_no,
 }
 
 static const struct pci_epc_features rcar_gen4_pcie_epc_features = {
-	.linkup_notifier = false,
 	.msi_capable = true,
-	.msix_capable = false,
 	.bar[BAR_1] = { .type = BAR_RESERVED, },
 	.bar[BAR_3] = { .type = BAR_RESERVED, },
 	.bar[BAR_4] = { .type = BAR_FIXED, .fixed_size = 256 },
-- 
2.50.1


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

* [PATCH 13/13] PCI: tegra194: Drop superfluous pci_epc_features initialization
  2025-08-14 15:21 [PATCH 00/13] PCI: Drop superfluous pci_epc_features initialization Niklas Cassel
                   ` (11 preceding siblings ...)
  2025-08-14 15:21 ` [PATCH 12/13] PCI: rcar-gen4: " Niklas Cassel
@ 2025-08-14 15:21 ` Niklas Cassel
  2025-08-14 15:50 ` [PATCH 00/13] PCI: " Bjorn Helgaas
  13 siblings, 0 replies; 17+ messages in thread
From: Niklas Cassel @ 2025-08-14 15:21 UTC (permalink / raw)
  To: Lorenzo Pieralisi, Krzysztof Wilczyński,
	Manivannan Sadhasivam, Rob Herring, Bjorn Helgaas, Thierry Reding,
	Jonathan Hunter
  Cc: Niklas Cassel, linux-pci, linux-tegra

struct pci_epc_features has static storage duration, so all struct members
are zero initialized implicitly. Thus, remove explicit zero initialization
of struct members.

Signed-off-by: Niklas Cassel <cassel@kernel.org>
---
 drivers/pci/controller/dwc/pcie-tegra194.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/drivers/pci/controller/dwc/pcie-tegra194.c b/drivers/pci/controller/dwc/pcie-tegra194.c
index 4f26086f25da..0e413857649f 100644
--- a/drivers/pci/controller/dwc/pcie-tegra194.c
+++ b/drivers/pci/controller/dwc/pcie-tegra194.c
@@ -1998,8 +1998,6 @@ static int tegra_pcie_ep_raise_irq(struct dw_pcie_ep *ep, u8 func_no,
 
 static const struct pci_epc_features tegra_pcie_epc_features = {
 	.linkup_notifier = true,
-	.msi_capable = false,
-	.msix_capable = false,
 	.bar[BAR_0] = { .type = BAR_FIXED, .fixed_size = SZ_1M,
 			.only_64bit = true, },
 	.bar[BAR_1] = { .type = BAR_RESERVED, },
-- 
2.50.1


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

* Re: [PATCH 02/13] PCI: rcar-ep: Drop superfluous pci_epc_features initialization
  2025-08-14 15:21 ` [PATCH 02/13] PCI: rcar-ep: " Niklas Cassel
@ 2025-08-14 15:24   ` Geert Uytterhoeven
  0 siblings, 0 replies; 17+ messages in thread
From: Geert Uytterhoeven @ 2025-08-14 15:24 UTC (permalink / raw)
  To: Niklas Cassel
  Cc: Marek Vasut, Yoshihiro Shimoda, Lorenzo Pieralisi,
	Krzysztof Wilczyński, Manivannan Sadhasivam, Rob Herring,
	Bjorn Helgaas, Magnus Damm, linux-pci, linux-renesas-soc

On Thu, 14 Aug 2025 at 17:21, Niklas Cassel <cassel@kernel.org> wrote:
> struct pci_epc_features has static storage duration, so all struct members
> are zero initialized implicitly. Thus, remove explicit zero initialization
> of struct members.
>
> Signed-off-by: Niklas Cassel <cassel@kernel.org>

Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>

Gr{oetje,eeting}s,

                        Geert

-- 
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
                                -- Linus Torvalds

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

* Re: [PATCH 12/13] PCI: rcar-gen4: Drop superfluous pci_epc_features initialization
  2025-08-14 15:21 ` [PATCH 12/13] PCI: rcar-gen4: " Niklas Cassel
@ 2025-08-14 15:25   ` Geert Uytterhoeven
  0 siblings, 0 replies; 17+ messages in thread
From: Geert Uytterhoeven @ 2025-08-14 15:25 UTC (permalink / raw)
  To: Niklas Cassel
  Cc: Marek Vasut, Yoshihiro Shimoda, Lorenzo Pieralisi,
	Krzysztof Wilczyński, Manivannan Sadhasivam, Rob Herring,
	Bjorn Helgaas, Magnus Damm, linux-pci, linux-renesas-soc

On Thu, 14 Aug 2025 at 17:22, Niklas Cassel <cassel@kernel.org> wrote:
> struct pci_epc_features has static storage duration, so all struct members
> are zero initialized implicitly. Thus, remove explicit zero initialization
> of struct members.
>
> Signed-off-by: Niklas Cassel <cassel@kernel.org>

Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>

Gr{oetje,eeting}s,

                        Geert

-- 
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
                                -- Linus Torvalds

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

* Re: [PATCH 00/13] PCI: Drop superfluous pci_epc_features initialization
  2025-08-14 15:21 [PATCH 00/13] PCI: Drop superfluous pci_epc_features initialization Niklas Cassel
                   ` (12 preceding siblings ...)
  2025-08-14 15:21 ` [PATCH 13/13] PCI: tegra194: " Niklas Cassel
@ 2025-08-14 15:50 ` Bjorn Helgaas
  13 siblings, 0 replies; 17+ messages in thread
From: Bjorn Helgaas @ 2025-08-14 15:50 UTC (permalink / raw)
  To: Niklas Cassel
  Cc: Lorenzo Pieralisi, Krzysztof Wilczyński,
	Manivannan Sadhasivam, Rob Herring, Bjorn Helgaas,
	Vignesh Raghavendra, Siddharth Vadapalli, Richard Zhu,
	Lucas Stach, Shawn Guo, Sascha Hauer, Pengutronix Kernel Team,
	Fabio Estevam, Jesper Nilsson, Jingoo Han, Heiko Stuebner,
	Srikanth Thokala, Marek Vasut, Yoshihiro Shimoda,
	Geert Uytterhoeven, Magnus Damm, Thierry Reding, Jonathan Hunter,
	Shawn Lin, linux-pci, linux-omap, linux-arm-kernel, imx,
	linux-arm-kernel, linux-rockchip, linux-arm-msm,
	linux-renesas-soc, linux-tegra

On Thu, Aug 14, 2025 at 05:21:19PM +0200, Niklas Cassel wrote:
> Hello all,
> 
> struct pci_epc_features has static storage duration, so all struct members
> are zero initialized implicitly. Thus, remove explicit zero initialization
> of struct members.
> 
> Series is based on pci/next.
> 
> Feel free to squash to a single commit if that is preferable.
> 
> Kind regards,
> Niklas
> 
> 
> Niklas Cassel (13):
>   PCI: cadence-ep: Drop superfluous pci_epc_features initialization
>   PCI: rcar-ep: Drop superfluous pci_epc_features initialization
>   PCI: rockchip-ep: Drop superfluous pci_epc_features initialization
>   PCI: dra7xx: Drop superfluous pci_epc_features initialization
>   PCI: imx6: Drop superfluous pci_epc_features initialization
>   PCI: keystone: Drop superfluous pci_epc_features initialization
>   PCI: artpec6: Drop superfluous pci_epc_features initialization
>   PCI: designware-plat: Drop superfluous pci_epc_features initialization
>   PCI: dw-rockchip: Drop superfluous pci_epc_features initialization
>   PCI: keembay: Drop superfluous pci_epc_features initialization
>   PCI: qcom-ep: Drop superfluous pci_epc_features initialization
>   PCI: rcar-gen4: Drop superfluous pci_epc_features initialization
>   PCI: tegra194: Drop superfluous pci_epc_features initialization
> 
>  drivers/pci/controller/cadence/pcie-cadence-ep.c  | 2 --
>  drivers/pci/controller/dwc/pci-dra7xx.c           | 1 -
>  drivers/pci/controller/dwc/pci-imx6.c             | 4 ----
>  drivers/pci/controller/dwc/pci-keystone.c         | 1 -
>  drivers/pci/controller/dwc/pcie-artpec6.c         | 2 --
>  drivers/pci/controller/dwc/pcie-designware-plat.c | 1 -
>  drivers/pci/controller/dwc/pcie-dw-rockchip.c     | 2 --
>  drivers/pci/controller/dwc/pcie-keembay.c         | 1 -
>  drivers/pci/controller/dwc/pcie-qcom-ep.c         | 1 -
>  drivers/pci/controller/dwc/pcie-rcar-gen4.c       | 2 --
>  drivers/pci/controller/dwc/pcie-tegra194.c        | 2 --
>  drivers/pci/controller/pcie-rcar-ep.c             | 2 --
>  drivers/pci/controller/pcie-rockchip-ep.c         | 1 -
>  13 files changed, 22 deletions(-)

Squashed into one, added "remove explicit zero initialization for
features that are *not* supported so we don't have to touch existing
drivers as new features are added" to commit log, and applied to
pci/endpoint for v6.18, thanks, Niklas!


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

end of thread, other threads:[~2025-08-14 15:50 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-08-14 15:21 [PATCH 00/13] PCI: Drop superfluous pci_epc_features initialization Niklas Cassel
2025-08-14 15:21 ` [PATCH 01/13] PCI: cadence-ep: " Niklas Cassel
2025-08-14 15:21 ` [PATCH 02/13] PCI: rcar-ep: " Niklas Cassel
2025-08-14 15:24   ` Geert Uytterhoeven
2025-08-14 15:21 ` [PATCH 03/13] PCI: rockchip-ep: " Niklas Cassel
2025-08-14 15:21 ` [PATCH 04/13] PCI: dra7xx: " Niklas Cassel
2025-08-14 15:21 ` [PATCH 05/13] PCI: imx6: " Niklas Cassel
2025-08-14 15:21 ` [PATCH 06/13] PCI: keystone: " Niklas Cassel
2025-08-14 15:21 ` [PATCH 07/13] PCI: artpec6: " Niklas Cassel
2025-08-14 15:21 ` [PATCH 08/13] PCI: designware-plat: " Niklas Cassel
2025-08-14 15:21 ` [PATCH 09/13] PCI: dw-rockchip: " Niklas Cassel
2025-08-14 15:21 ` [PATCH 10/13] PCI: keembay: " Niklas Cassel
2025-08-14 15:21 ` [PATCH 11/13] PCI: qcom-ep: " Niklas Cassel
2025-08-14 15:21 ` [PATCH 12/13] PCI: rcar-gen4: " Niklas Cassel
2025-08-14 15:25   ` Geert Uytterhoeven
2025-08-14 15:21 ` [PATCH 13/13] PCI: tegra194: " Niklas Cassel
2025-08-14 15:50 ` [PATCH 00/13] PCI: " Bjorn Helgaas

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