* [PATCH v4 0/7] PCI: xilinx-nwl: Add phy support
@ 2024-05-31 16:13 Sean Anderson
2024-05-31 16:13 ` [PATCH v4 1/7] dt-bindings: pci: xilinx-nwl: Add phys property Sean Anderson
` (2 more replies)
0 siblings, 3 replies; 6+ messages in thread
From: Sean Anderson @ 2024-05-31 16:13 UTC (permalink / raw)
To: Lorenzo Pieralisi, Krzysztof Wilczyński, Rob Herring,
linux-pci
Cc: Thippeswamy Havalige, linux-arm-kernel, Markus Elfring,
Dan Carpenter, linux-kernel, Bjorn Helgaas, Michal Simek,
Sean Anderson, Bharat Kumar Gogada, Bharat Kumar Gogada,
Bjorn Helgaas, Conor Dooley, Krzysztof Kozlowski,
Lorenzo Pieralisi, Michal Simek, devicetree
Add phy subsystem support for the xilinx-nwl PCIe controller. This
series also includes several small fixes and improvements.
Changes in v4:
- Clarify dt-bindings commit subject/message
- Explain likely effects of the off-by-one error
- Trim down UBSAN backtrace
- Move if to after pci_host_probe
- Remove if in err_phy
- Fix error path in phy_enable skipping the first phy
- Disable phys in reverse order
- Use dev_err instead of WARN for errors
Changes in v3:
- Document phys property
- Expand off-by-one commit message
Changes in v2:
- Remove phy-names
- Add an example
- Get phys by index and not by name
Sean Anderson (7):
dt-bindings: pci: xilinx-nwl: Add phys property
PCI: xilinx-nwl: Fix off-by-one in IRQ handler
PCI: xilinx-nwl: Fix register misspelling
PCI: xilinx-nwl: Rate-limit misc interrupt messages
PCI: xilinx-nwl: Clean up clock on probe failure/removal
PCI: xilinx-nwl: Add phy support
arm64: zynqmp: Add PCIe phys
.../bindings/pci/xlnx,nwl-pcie.yaml | 7 +
.../boot/dts/xilinx/zynqmp-zcu102-revA.dts | 1 +
drivers/pci/controller/pcie-xilinx-nwl.c | 139 +++++++++++++++---
3 files changed, 124 insertions(+), 23 deletions(-)
--
2.35.1.1320.gc452695387.dirty
^ permalink raw reply [flat|nested] 6+ messages in thread
* [PATCH v4 1/7] dt-bindings: pci: xilinx-nwl: Add phys property
2024-05-31 16:13 [PATCH v4 0/7] PCI: xilinx-nwl: Add phy support Sean Anderson
@ 2024-05-31 16:13 ` Sean Anderson
2024-08-09 19:43 ` [PATCH v4 0/7] PCI: xilinx-nwl: Add phy support Sean Anderson
2024-08-09 19:54 ` Bjorn Helgaas
2 siblings, 0 replies; 6+ messages in thread
From: Sean Anderson @ 2024-05-31 16:13 UTC (permalink / raw)
To: Lorenzo Pieralisi, Krzysztof Wilczyński, Rob Herring,
linux-pci
Cc: Thippeswamy Havalige, linux-arm-kernel, Markus Elfring,
Dan Carpenter, linux-kernel, Bjorn Helgaas, Michal Simek,
Sean Anderson, Conor Dooley, Krzysztof Kozlowski, devicetree
Add phys properties so Linux can power-on/configure the GTR
transceivers (xlnx,zynqmp-psgtr-v1.1).
Signed-off-by: Sean Anderson <sean.anderson@linux.dev>
Reviewed-by: Rob Herring (Arm) <robh@kernel.org>
---
Changes in v4:
- Clarify commit subject/message
Changes in v3:
- Document phys property
Changes in v2:
- Remove phy-names
- Add an example
Documentation/devicetree/bindings/pci/xlnx,nwl-pcie.yaml | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/Documentation/devicetree/bindings/pci/xlnx,nwl-pcie.yaml b/Documentation/devicetree/bindings/pci/xlnx,nwl-pcie.yaml
index 426f90a47f35..cc50795d170b 100644
--- a/Documentation/devicetree/bindings/pci/xlnx,nwl-pcie.yaml
+++ b/Documentation/devicetree/bindings/pci/xlnx,nwl-pcie.yaml
@@ -61,6 +61,11 @@ properties:
interrupt-map:
maxItems: 4
+ phys:
+ minItems: 1
+ maxItems: 4
+ description: One phy per logical lane, in order
+
power-domains:
maxItems: 1
@@ -110,6 +115,7 @@ examples:
- |
#include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/interrupt-controller/irq.h>
+ #include <dt-bindings/phy/phy.h>
#include <dt-bindings/power/xlnx-zynqmp-power.h>
soc {
#address-cells = <2>;
@@ -138,6 +144,7 @@ examples:
<0x0 0x0 0x0 0x3 &pcie_intc 0x3>,
<0x0 0x0 0x0 0x4 &pcie_intc 0x4>;
msi-parent = <&nwl_pcie>;
+ phys = <&psgtr 0 PHY_TYPE_PCIE 0 0>;
power-domains = <&zynqmp_firmware PD_PCIE>;
iommus = <&smmu 0x4d0>;
pcie_intc: legacy-interrupt-controller {
--
2.35.1.1320.gc452695387.dirty
^ permalink raw reply related [flat|nested] 6+ messages in thread
* Re: [PATCH v4 0/7] PCI: xilinx-nwl: Add phy support
2024-05-31 16:13 [PATCH v4 0/7] PCI: xilinx-nwl: Add phy support Sean Anderson
2024-05-31 16:13 ` [PATCH v4 1/7] dt-bindings: pci: xilinx-nwl: Add phys property Sean Anderson
@ 2024-08-09 19:43 ` Sean Anderson
2024-08-09 19:54 ` Bjorn Helgaas
2 siblings, 0 replies; 6+ messages in thread
From: Sean Anderson @ 2024-08-09 19:43 UTC (permalink / raw)
To: Lorenzo Pieralisi, Krzysztof Wilczyński, Rob Herring,
linux-pci
Cc: Thippeswamy Havalige, linux-arm-kernel, Dan Carpenter,
linux-kernel, Bjorn Helgaas, Michal Simek, Bharat Kumar Gogada,
Bharat Kumar Gogada, Bjorn Helgaas, Conor Dooley,
Krzysztof Kozlowski, Lorenzo Pieralisi, Michal Simek, devicetree
On 5/31/24 12:13, Sean Anderson wrote:
> Add phy subsystem support for the xilinx-nwl PCIe controller. This
> series also includes several small fixes and improvements.
>
> Changes in v4:
> - Clarify dt-bindings commit subject/message
> - Explain likely effects of the off-by-one error
> - Trim down UBSAN backtrace
> - Move if to after pci_host_probe
> - Remove if in err_phy
> - Fix error path in phy_enable skipping the first phy
> - Disable phys in reverse order
> - Use dev_err instead of WARN for errors
>
> Changes in v3:
> - Document phys property
> - Expand off-by-one commit message
>
> Changes in v2:
> - Remove phy-names
> - Add an example
> - Get phys by index and not by name
>
> Sean Anderson (7):
> dt-bindings: pci: xilinx-nwl: Add phys property
> PCI: xilinx-nwl: Fix off-by-one in IRQ handler
> PCI: xilinx-nwl: Fix register misspelling
> PCI: xilinx-nwl: Rate-limit misc interrupt messages
> PCI: xilinx-nwl: Clean up clock on probe failure/removal
> PCI: xilinx-nwl: Add phy support
> arm64: zynqmp: Add PCIe phys
>
> .../bindings/pci/xlnx,nwl-pcie.yaml | 7 +
> .../boot/dts/xilinx/zynqmp-zcu102-revA.dts | 1 +
> drivers/pci/controller/pcie-xilinx-nwl.c | 139 +++++++++++++++---
> 3 files changed, 124 insertions(+), 23 deletions(-)
>
ping.
--Sean
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH v4 0/7] PCI: xilinx-nwl: Add phy support
2024-05-31 16:13 [PATCH v4 0/7] PCI: xilinx-nwl: Add phy support Sean Anderson
2024-05-31 16:13 ` [PATCH v4 1/7] dt-bindings: pci: xilinx-nwl: Add phys property Sean Anderson
2024-08-09 19:43 ` [PATCH v4 0/7] PCI: xilinx-nwl: Add phy support Sean Anderson
@ 2024-08-09 19:54 ` Bjorn Helgaas
2024-08-30 14:08 ` Michal Simek
2 siblings, 1 reply; 6+ messages in thread
From: Bjorn Helgaas @ 2024-08-09 19:54 UTC (permalink / raw)
To: Sean Anderson
Cc: Lorenzo Pieralisi, Krzysztof Wilczyński, Rob Herring,
linux-pci, Thippeswamy Havalige, linux-arm-kernel, Markus Elfring,
Dan Carpenter, linux-kernel, Bjorn Helgaas, Michal Simek,
Bharat Kumar Gogada, Bharat Kumar Gogada, Conor Dooley,
Krzysztof Kozlowski, Lorenzo Pieralisi, Michal Simek, devicetree
On Fri, May 31, 2024 at 12:13:30PM -0400, Sean Anderson wrote:
> Add phy subsystem support for the xilinx-nwl PCIe controller. This
> series also includes several small fixes and improvements.
>
> Changes in v4:
> - Clarify dt-bindings commit subject/message
> - Explain likely effects of the off-by-one error
> - Trim down UBSAN backtrace
> - Move if to after pci_host_probe
> - Remove if in err_phy
> - Fix error path in phy_enable skipping the first phy
> - Disable phys in reverse order
> - Use dev_err instead of WARN for errors
>
> Changes in v3:
> - Document phys property
> - Expand off-by-one commit message
>
> Changes in v2:
> - Remove phy-names
> - Add an example
> - Get phys by index and not by name
>
> Sean Anderson (7):
> dt-bindings: pci: xilinx-nwl: Add phys property
> PCI: xilinx-nwl: Fix off-by-one in IRQ handler
> PCI: xilinx-nwl: Fix register misspelling
> PCI: xilinx-nwl: Rate-limit misc interrupt messages
> PCI: xilinx-nwl: Clean up clock on probe failure/removal
> PCI: xilinx-nwl: Add phy support
Applied the above to pci/controller/xilinx for v6.12, thanks!
I assume the DTS update below should go via some other tree, but let
me know if I should pick it up.
> arm64: zynqmp: Add PCIe phys
>
> .../bindings/pci/xlnx,nwl-pcie.yaml | 7 +
> .../boot/dts/xilinx/zynqmp-zcu102-revA.dts | 1 +
> drivers/pci/controller/pcie-xilinx-nwl.c | 139 +++++++++++++++---
> 3 files changed, 124 insertions(+), 23 deletions(-)
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH v4 0/7] PCI: xilinx-nwl: Add phy support
2024-08-09 19:54 ` Bjorn Helgaas
@ 2024-08-30 14:08 ` Michal Simek
2024-08-30 15:53 ` Bjorn Helgaas
0 siblings, 1 reply; 6+ messages in thread
From: Michal Simek @ 2024-08-30 14:08 UTC (permalink / raw)
To: Bjorn Helgaas, Sean Anderson
Cc: Lorenzo Pieralisi, Krzysztof Wilczyński, Rob Herring,
linux-pci, Thippeswamy Havalige, linux-arm-kernel, Markus Elfring,
Dan Carpenter, linux-kernel, Bjorn Helgaas, Bharat Kumar Gogada,
Bharat Kumar Gogada, Conor Dooley, Krzysztof Kozlowski,
Lorenzo Pieralisi, Michal Simek, devicetree
Hi Bjorn,
On 8/9/24 21:54, Bjorn Helgaas wrote:
> On Fri, May 31, 2024 at 12:13:30PM -0400, Sean Anderson wrote:
>> Add phy subsystem support for the xilinx-nwl PCIe controller. This
>> series also includes several small fixes and improvements.
>>
>> Changes in v4:
>> - Clarify dt-bindings commit subject/message
>> - Explain likely effects of the off-by-one error
>> - Trim down UBSAN backtrace
>> - Move if to after pci_host_probe
>> - Remove if in err_phy
>> - Fix error path in phy_enable skipping the first phy
>> - Disable phys in reverse order
>> - Use dev_err instead of WARN for errors
>>
>> Changes in v3:
>> - Document phys property
>> - Expand off-by-one commit message
>>
>> Changes in v2:
>> - Remove phy-names
>> - Add an example
>> - Get phys by index and not by name
>>
>> Sean Anderson (7):
>> dt-bindings: pci: xilinx-nwl: Add phys property
>> PCI: xilinx-nwl: Fix off-by-one in IRQ handler
>> PCI: xilinx-nwl: Fix register misspelling
>> PCI: xilinx-nwl: Rate-limit misc interrupt messages
>> PCI: xilinx-nwl: Clean up clock on probe failure/removal
>> PCI: xilinx-nwl: Add phy support
>
> Applied the above to pci/controller/xilinx for v6.12, thanks!
>
> I assume the DTS update below should go via some other tree, but let
> me know if I should pick it up.
Would be good if you can pick it up with the series together.
I have already acked that patch before.
Thanks,
Michal
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH v4 0/7] PCI: xilinx-nwl: Add phy support
2024-08-30 14:08 ` Michal Simek
@ 2024-08-30 15:53 ` Bjorn Helgaas
0 siblings, 0 replies; 6+ messages in thread
From: Bjorn Helgaas @ 2024-08-30 15:53 UTC (permalink / raw)
To: Michal Simek
Cc: Sean Anderson, Lorenzo Pieralisi, Krzysztof Wilczyński,
Rob Herring, linux-pci, Thippeswamy Havalige, linux-arm-kernel,
Markus Elfring, Dan Carpenter, linux-kernel, Bjorn Helgaas,
Bharat Kumar Gogada, Bharat Kumar Gogada, Conor Dooley,
Krzysztof Kozlowski, Lorenzo Pieralisi, Michal Simek, devicetree
On Fri, Aug 30, 2024 at 04:08:08PM +0200, Michal Simek wrote:
> Hi Bjorn,
>
> On 8/9/24 21:54, Bjorn Helgaas wrote:
> > On Fri, May 31, 2024 at 12:13:30PM -0400, Sean Anderson wrote:
> > > Add phy subsystem support for the xilinx-nwl PCIe controller. This
> > > series also includes several small fixes and improvements.
> > >
> > > Changes in v4:
> > > - Clarify dt-bindings commit subject/message
> > > - Explain likely effects of the off-by-one error
> > > - Trim down UBSAN backtrace
> > > - Move if to after pci_host_probe
> > > - Remove if in err_phy
> > > - Fix error path in phy_enable skipping the first phy
> > > - Disable phys in reverse order
> > > - Use dev_err instead of WARN for errors
> > >
> > > Changes in v3:
> > > - Document phys property
> > > - Expand off-by-one commit message
> > >
> > > Changes in v2:
> > > - Remove phy-names
> > > - Add an example
> > > - Get phys by index and not by name
> > >
> > > Sean Anderson (7):
> > > dt-bindings: pci: xilinx-nwl: Add phys property
> > > PCI: xilinx-nwl: Fix off-by-one in IRQ handler
> > > PCI: xilinx-nwl: Fix register misspelling
> > > PCI: xilinx-nwl: Rate-limit misc interrupt messages
> > > PCI: xilinx-nwl: Clean up clock on probe failure/removal
> > > PCI: xilinx-nwl: Add phy support
> >
> > Applied the above to pci/controller/xilinx for v6.12, thanks!
> >
> > I assume the DTS update below should go via some other tree, but let
> > me know if I should pick it up.
>
> Would be good if you can pick it up with the series together.
> I have already acked that patch before.
Thanks, I picked up patch 7/7 "arm64: zynqmp: Add PCIe phys" as well!
Bjorn
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2024-08-30 15:53 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-05-31 16:13 [PATCH v4 0/7] PCI: xilinx-nwl: Add phy support Sean Anderson
2024-05-31 16:13 ` [PATCH v4 1/7] dt-bindings: pci: xilinx-nwl: Add phys property Sean Anderson
2024-08-09 19:43 ` [PATCH v4 0/7] PCI: xilinx-nwl: Add phy support Sean Anderson
2024-08-09 19:54 ` Bjorn Helgaas
2024-08-30 14:08 ` Michal Simek
2024-08-30 15:53 ` 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).