* [PATCH 1/3] spi: xilinx: use device property accessors.
@ 2026-01-16 23:35 Abdurrahman Hussain
2026-01-16 23:35 ` [PATCH 2/3] spi: xilinx: make irq optional Abdurrahman Hussain
2026-01-16 23:35 ` [PATCH 3/3] spi: dt-bindings: xilinx: make interrupts optional Abdurrahman Hussain
0 siblings, 2 replies; 5+ messages in thread
From: Abdurrahman Hussain @ 2026-01-16 23:35 UTC (permalink / raw)
To: Mark Brown, Michal Simek, Andrew Lunn
Cc: linux-spi, linux-arm-kernel, linux-kernel, Abdurrahman Hussain
This makes the driver work on non-OF platforms.
Signed-off-by: Abdurrahman Hussain <abdurrahman@nexthop.ai>
---
drivers/spi/spi-xilinx.c | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/drivers/spi/spi-xilinx.c b/drivers/spi/spi-xilinx.c
index c86dc56f38b4..c4b70e95b695 100644
--- a/drivers/spi/spi-xilinx.c
+++ b/drivers/spi/spi-xilinx.c
@@ -405,11 +405,11 @@ static int xilinx_spi_probe(struct platform_device *pdev)
bits_per_word = pdata->bits_per_word;
force_irq = pdata->force_irq;
} else {
- of_property_read_u32(pdev->dev.of_node, "xlnx,num-ss-bits",
- &num_cs);
- ret = of_property_read_u32(pdev->dev.of_node,
- "xlnx,num-transfer-bits",
- &bits_per_word);
+ device_property_read_u32(&pdev->dev, "xlnx,num-ss-bits",
+ &num_cs);
+ ret = device_property_read_u32(&pdev->dev,
+ "xlnx,num-transfer-bits",
+ &bits_per_word);
if (ret)
bits_per_word = 8;
}
--
2.52.0
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [PATCH 2/3] spi: xilinx: make irq optional
2026-01-16 23:35 [PATCH 1/3] spi: xilinx: use device property accessors Abdurrahman Hussain
@ 2026-01-16 23:35 ` Abdurrahman Hussain
2026-01-16 23:35 ` [PATCH 3/3] spi: dt-bindings: xilinx: make interrupts optional Abdurrahman Hussain
1 sibling, 0 replies; 5+ messages in thread
From: Abdurrahman Hussain @ 2026-01-16 23:35 UTC (permalink / raw)
To: Mark Brown, Michal Simek, Andrew Lunn
Cc: linux-spi, linux-arm-kernel, linux-kernel, Abdurrahman Hussain
The driver can work in polling mode in cases where interrupts are either
not available or broken.
Signed-off-by: Abdurrahman Hussain <abdurrahman@nexthop.ai>
---
drivers/spi/spi-xilinx.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/spi/spi-xilinx.c b/drivers/spi/spi-xilinx.c
index c4b70e95b695..9fb1da2fcce4 100644
--- a/drivers/spi/spi-xilinx.c
+++ b/drivers/spi/spi-xilinx.c
@@ -471,7 +471,7 @@ static int xilinx_spi_probe(struct platform_device *pdev)
xspi->bytes_per_word = bits_per_word / 8;
xspi->buffer_size = xilinx_spi_find_buffer_size(xspi);
- xspi->irq = platform_get_irq(pdev, 0);
+ xspi->irq = platform_get_irq_optional(pdev, 0);
if (xspi->irq < 0 && xspi->irq != -ENXIO) {
return xspi->irq;
} else if (xspi->irq >= 0) {
--
2.52.0
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [PATCH 3/3] spi: dt-bindings: xilinx: make interrupts optional
2026-01-16 23:35 [PATCH 1/3] spi: xilinx: use device property accessors Abdurrahman Hussain
2026-01-16 23:35 ` [PATCH 2/3] spi: xilinx: make irq optional Abdurrahman Hussain
@ 2026-01-16 23:35 ` Abdurrahman Hussain
2026-01-17 0:41 ` Andrew Lunn
2026-01-17 10:48 ` Krzysztof Kozlowski
1 sibling, 2 replies; 5+ messages in thread
From: Abdurrahman Hussain @ 2026-01-16 23:35 UTC (permalink / raw)
To: Mark Brown, Michal Simek, Andrew Lunn
Cc: linux-spi, linux-arm-kernel, linux-kernel, Abdurrahman Hussain
This makes the driver work on platforms where interrupts are either not
provided or broken.
Signed-off-by: Abdurrahman Hussain <abdurrahman@nexthop.ai>
---
Documentation/devicetree/bindings/spi/spi-xilinx.yaml | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/Documentation/devicetree/bindings/spi/spi-xilinx.yaml b/Documentation/devicetree/bindings/spi/spi-xilinx.yaml
index 4beb3af0416d..8296edde61b0 100644
--- a/Documentation/devicetree/bindings/spi/spi-xilinx.yaml
+++ b/Documentation/devicetree/bindings/spi/spi-xilinx.yaml
@@ -23,7 +23,7 @@ properties:
maxItems: 1
interrupts:
- maxItems: 1
+ maxItems: 1 # optional
xlnx,num-ss-bits:
description: Number of chip selects used.
@@ -38,7 +38,6 @@ properties:
required:
- compatible
- reg
- - interrupts
unevaluatedProperties: false
--
2.52.0
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH 3/3] spi: dt-bindings: xilinx: make interrupts optional
2026-01-16 23:35 ` [PATCH 3/3] spi: dt-bindings: xilinx: make interrupts optional Abdurrahman Hussain
@ 2026-01-17 0:41 ` Andrew Lunn
2026-01-17 10:48 ` Krzysztof Kozlowski
1 sibling, 0 replies; 5+ messages in thread
From: Andrew Lunn @ 2026-01-17 0:41 UTC (permalink / raw)
To: Abdurrahman Hussain
Cc: Mark Brown, Michal Simek, linux-spi, linux-arm-kernel,
linux-kernel
On Fri, Jan 16, 2026 at 11:35:35PM +0000, Abdurrahman Hussain wrote:
> This makes the driver work on platforms where interrupts are either not
> provided or broken.
>
> Signed-off-by: Abdurrahman Hussain <abdurrahman@nexthop.ai>
To get a Reviewed-by: for this patch you will need to Cc:the device
tree Maintainers.
https://docs.kernel.org/devicetree/bindings/submitting-patches.html
This is also version 2 of the patch, so you should of marked this as v2.
https://docs.kernel.org/process/submitting-patches.html
> ---
> Documentation/devicetree/bindings/spi/spi-xilinx.yaml | 3 +--
> 1 file changed, 1 insertion(+), 2 deletions(-)
>
> diff --git a/Documentation/devicetree/bindings/spi/spi-xilinx.yaml b/Documentation/devicetree/bindings/spi/spi-xilinx.yaml
> index 4beb3af0416d..8296edde61b0 100644
> --- a/Documentation/devicetree/bindings/spi/spi-xilinx.yaml
> +++ b/Documentation/devicetree/bindings/spi/spi-xilinx.yaml
> @@ -23,7 +23,7 @@ properties:
> maxItems: 1
>
> interrupts:
> - maxItems: 1
> + maxItems: 1 # optional
I suspect the DT Maintainer won't link this comment. All properties
are optional unless they are listed in the required: section.
Andrew
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH 3/3] spi: dt-bindings: xilinx: make interrupts optional
2026-01-16 23:35 ` [PATCH 3/3] spi: dt-bindings: xilinx: make interrupts optional Abdurrahman Hussain
2026-01-17 0:41 ` Andrew Lunn
@ 2026-01-17 10:48 ` Krzysztof Kozlowski
1 sibling, 0 replies; 5+ messages in thread
From: Krzysztof Kozlowski @ 2026-01-17 10:48 UTC (permalink / raw)
To: Abdurrahman Hussain, Mark Brown, Michal Simek, Andrew Lunn
Cc: linux-spi, linux-arm-kernel, linux-kernel
On 17/01/2026 00:35, Abdurrahman Hussain wrote:
> This makes the driver work on platforms where interrupts are either not
> provided or broken.
You need to describe the hardware instead. Why interrupts are optional
in the hardware (or are they even?).
>
> Signed-off-by: Abdurrahman Hussain <abdurrahman@nexthop.ai>
> ---
> Documentation/devicetree/bindings/spi/spi-xilinx.yaml | 3 +--
> 1 file changed, 1 insertion(+), 2 deletions(-)
>
> diff --git a/Documentation/devicetree/bindings/spi/spi-xilinx.yaml b/Documentation/devicetree/bindings/spi/spi-xilinx.yaml
> index 4beb3af0416d..8296edde61b0 100644
> --- a/Documentation/devicetree/bindings/spi/spi-xilinx.yaml
> +++ b/Documentation/devicetree/bindings/spi/spi-xilinx.yaml
> @@ -23,7 +23,7 @@ properties:
> maxItems: 1
>
> interrupts:
> - maxItems: 1
> + maxItems: 1 # optional
Drop comment, pointless. Schema defines that.
Please use scripts/get_maintainers.pl to get a list of necessary people
and lists to CC (and consider --no-git-fallback argument, so you will
not CC people just because they made one commit years ago). It might
happen, that command when run on an older kernel, gives you outdated
entries. Therefore please be sure you base your patches on recent Linux
kernel.
Tools like b4 or scripts/get_maintainer.pl provide you proper list of
people, so fix your workflow. Tools might also fail if you work on some
ancient tree (don't, instead use mainline) or work on fork of kernel
(don't, instead use mainline). Just use b4 and everything should be
fine, although remember about `b4 prep --auto-to-cc` if you added new
patches to the patchset.
Best regards,
Krzysztof
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2026-01-17 10:48 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-01-16 23:35 [PATCH 1/3] spi: xilinx: use device property accessors Abdurrahman Hussain
2026-01-16 23:35 ` [PATCH 2/3] spi: xilinx: make irq optional Abdurrahman Hussain
2026-01-16 23:35 ` [PATCH 3/3] spi: dt-bindings: xilinx: make interrupts optional Abdurrahman Hussain
2026-01-17 0:41 ` Andrew Lunn
2026-01-17 10:48 ` Krzysztof Kozlowski
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox