Skip to contentSkip to conversation

pci: xilinx: Fix doc comments on config space accessors

PATCH New Tuomas Tynkkynen 3 participants 15 messages Sep 1, 2017 – Sep 22, 2017

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/5 pci: xilinx: Fix doc comments on config space accessors

These take the 'struct udevice *' as an argument, not the 'struct xilinx_pcie *` which is a local variable. Fix the comments to match the code.

---
 drivers/pci/pcie_xilinx.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/pci/pcie_xilinx.c +2 -2
index 08e2e93445..e31ba8bd51 100644
@@ -87,7 +87,7 @@ static int pcie_xilinx_config_address(struct xilinx_pcie *pcie, pci_dev_t bdf,
 
 /**
  * pcie_xilinx_read_config() - Read from configuration space
- * @pcie: Pointer to the PCI controller state
+ * @bus: Pointer to the PCI bus
  * @bdf: Identifies the PCIe device to access
  * @offset: The offset into the device's configuration space
  * @valuep: A pointer at which to store the read value
@@ -130,7 +130,7 @@ static int pcie_xilinx_read_config(struct udevice *bus, pci_dev_t bdf,
 
 /**
  * pcie_xilinx_write_config() - Write to configuration space
- * @pcie: Pointer to the PCI controller state
+ * @bus: Pointer to the PCI bus
  * @bdf: Identifies the PCIe device to access
  * @offset: The offset into the device's configuration space
  * @value: The value to write
Signature · 1 line
2.13.0
#1 lore raw

PATCH 2/5 pci: xilinx: Remove unused field 'hose' from struct xilinx_pcie

This field has never been used as the driver has been DM-based since the beginning. Drop it.

---
 drivers/pci/pcie_xilinx.c | 2 --
 1 file changed, 2 deletions(-)
drivers/pci/pcie_xilinx.c +0 -2
index e31ba8bd51..4ba32df516 100644
@@ -14,11 +14,9 @@
 
 /**
  * struct xilinx_pcie - Xilinx PCIe controller state
- * @hose: The parent classes PCI controller state
  * @cfg_base: The base address of memory mapped configuration space
  */
 struct xilinx_pcie {
-	struct pci_controller hose;
 	void *cfg_base;
 };
 
Signature · 1 line
2.13.0
#3 lore raw

PATCH 2/5 pci: xilinx: Remove unused field 'hose' from struct xilinx_pcie

In reply to Tuomas Tynkkynen
Quoted 5 lines · Tuomas Tynkkynen

This field has never been used as the driver has been DM-based since the beginning. Drop it.

Applied to u-boot/master, thanks!

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20170922/79cc2764/attachment.sig>
#4 lore raw

PATCH 3/5 pci: tegra: Remove unused field 'hose' from struct tegra_pcie

In reply to Tuomas Tynkkynen

This field is no longer used since the DM conversion. Drop it.

---
 drivers/pci/pci_tegra.c | 2 --
 1 file changed, 2 deletions(-)
drivers/pci/pci_tegra.c +0 -2
index cb5cf8b043..7d920d423d 100644
@@ -218,8 +218,6 @@ struct tegra_pcie_soc {
 };
 
 struct tegra_pcie {
-	struct pci_controller hose;
-
 	struct resource pads;
 	struct resource afi;
 	struct resource cs;
Signature · 1 line
2.13.0
#6 lore raw

PATCH 3/5 pci: tegra: Remove unused field 'hose' from struct tegra_pcie

In reply to Tuomas Tynkkynen
Quoted 4 lines · Tuomas Tynkkynen

This field is no longer used since the DM conversion. Drop it.

Applied to u-boot/master, thanks!

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20170922/01075c56/attachment.sig>
#7 lore raw

PATCH 4/5 pci: layerscape: Remove unused field 'hose' from struct ls_pcie

In reply to Tuomas Tynkkynen

This field is no longer used since the DM conversion. Drop it.

---
 drivers/pci/pcie_layerscape.h | 1 -
 1 file changed, 1 deletion(-)
drivers/pci/pcie_layerscape.h +0 -1
index 782e3ab7ad..3a6cecb07d 100644
@@ -145,7 +145,6 @@ struct ls_pcie {
 	bool big_endian;
 	bool enabled;
 	int next_lut_index;
-	struct pci_controller hose;
 };
 
 extern struct list_head ls_pcie_list;
Signature · 1 line
2.13.0
#9 lore raw

PATCH 4/5 pci: layerscape: Remove unused field 'hose' from struct ls_pcie

In reply to Tuomas Tynkkynen
Quoted 4 lines · Tuomas Tynkkynen

This field is no longer used since the DM conversion. Drop it.

Applied to u-boot/master, thanks!

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20170922/33df9c6c/attachment.sig>
#10 lore raw

PATCH 5/5 pci: Remove unnecessary 'default n' from Kconfig

In reply to Tuomas Tynkkynen

'default n' is the default anyway so it doesn't need to be specified explicitly, and the rest of the file doesn't specify it either anywhere. Drop it.

---
 drivers/pci/Kconfig | 1 -
 1 file changed, 1 deletion(-)
drivers/pci/Kconfig +0 -1
index e2a1c0a409..8af2470268 100644
@@ -35,7 +35,6 @@ config PCI_PNP
 
 config PCIE_DW_MVEBU
 	bool "Enable Armada-8K PCIe driver (DesignWare core)"
-	default n
 	depends on DM_PCI
 	depends on ARMADA_8K
 	help
Signature · 1 line
2.13.0
#11 lore raw

PATCH 5/5 pci: Remove unnecessary 'default n' from Kconfig

Quoted 9 lines · Tuomas Tynkkynen

'default n' is the default anyway so it doesn't need to be specified explicitly, and the rest of the file doesn't specify it either anywhere. Drop it.

---
 drivers/pci/Kconfig | 1 -
 1 file changed, 1 deletion(-)
#12 lore raw

PATCH 5/5 pci: Remove unnecessary 'default n' from Kconfig

In reply to Tuomas Tynkkynen
Quoted 6 lines · Tuomas Tynkkynen

'default n' is the default anyway so it doesn't need to be specified explicitly, and the rest of the file doesn't specify it either anywhere. Drop it.

Applied to u-boot/master, thanks!

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20170922/8c874173/attachment.sig>
#14 lore raw

PATCH 1/5 pci: xilinx: Fix doc comments on config space accessors

In reply to Tuomas Tynkkynen
Quoted 6 lines · Tuomas Tynkkynen

These take the 'struct udevice *' as an argument, not the 'struct xilinx_pcie *` which is a local variable. Fix the comments to match the code.

Applied to u-boot/master, thanks!

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20170922/fe1dc3c0/attachment.sig>