From nobody Mon Feb 9 09:17:03 2026 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8016D2D6605; Mon, 19 Jan 2026 07:06:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768806394; cv=none; b=ulZgkVBFGpHJsKdKcBc4KDYMQoltRBQd50mhPDWHC2z7iJ+YrBQ2dHOl+JMT6OgYmVsLsnSvnyceJ9M2Uqg7+uOy+UDnjYwuV6UpY2JOxCZS9lRONT52EVkmi71tpe/vc5WIWobFKjC9ko3woKsRUkH+hkzup4Z+C0uJHIMLfhU= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768806394; c=relaxed/simple; bh=HBqZZvttDuyVc2JsBsl5S4x97pPOmaIQnnZvUvbafxg=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=C5StuvkRTPbuHImuyQmNtL4TK8N0eRD7W/9uarYImSXMeTD8KC8skJsBuyZ3TUlQCmdv92v9JYbKPklv3HrLn1TatINQaLuqlQtbc8KfD63pxljkvPTGomRyksJ7XhZsnaTSKSBbNZ+84FvqfGU8XfkvIfPegz2PuvK+LYHaHA4= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=OFdoEsa1; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="OFdoEsa1" Received: by smtp.kernel.org (Postfix) with ESMTPS id 3552AC116C6; Mon, 19 Jan 2026 07:06:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1768806394; bh=HBqZZvttDuyVc2JsBsl5S4x97pPOmaIQnnZvUvbafxg=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=OFdoEsa1eUTSjqQReNF/DNXF6nenxZgTiLeddbOqwOZIunyG1rt3VLqqbTMf0H07D 6OfppIZvn/gZIKWnjvL0QVyoy3XoROKy5BZaEm5os0eYcjXBxrP+D7Djzv9XeVm1Pu gqPeA+HZwxqDEwgvogwfHrWcoDbiqKKSe1vwpNekNBEi6yBFgdKcSJ1Z8lX4OMIwad nu3w9t853386cRA+xpfcWALBcuRMQFlxwTvNwaqhtbbWk7+4sLS8oM9s2hLVj+c3P1 eFLr7WNMxvzREFUM2a41wWRPP8h9cTB/8yelT8HUpJkv0MFqX9Zd5SXkSUU+nBTNxv xG5qZbPaQunPA== Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 24897CA5FF1; Mon, 19 Jan 2026 07:06:34 +0000 (UTC) From: Abdurrahman Hussain via B4 Relay Date: Mon, 19 Jan 2026 07:06:22 +0000 Subject: [PATCH v3 1/3] spi: dt-bindings: xilinx: make interrupts optional Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20260119-spi-xilinx-v3-1-4566c33bac0d@nexthop.ai> References: <20260119-spi-xilinx-v3-0-4566c33bac0d@nexthop.ai> In-Reply-To: <20260119-spi-xilinx-v3-0-4566c33bac0d@nexthop.ai> To: Mark Brown , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Michal Simek Cc: linux-spi@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Abdurrahman Hussain X-Mailer: b4 0.14.3 X-Developer-Signature: v=1; a=ed25519-sha256; t=1768806393; l=837; i=abdurrahman@nexthop.ai; s=20260119; h=from:subject:message-id; bh=Rbmi4yji+D6yvwIqXdPoR0dJO1NzfG8jvbb3qwJR8Ss=; b=JQle1H+it+z7PYjip62TbpkcvzOoAbHLCXfpWxiR0e3EWzfcdXFENf+yN80RvCghBvCtGnzxy TNfS8lYEYh6BSevl/AA3QWQj6Fdsc6TRsq6Fcygb9T9ypG0L823enW0 X-Developer-Key: i=abdurrahman@nexthop.ai; a=ed25519; pk=S+ysnf+NwMcBdHBlyKIUEAtaFGSIhQwcJcgcXhq0osg= X-Endpoint-Received: by B4 Relay for abdurrahman@nexthop.ai/20260119 with auth_id=608 X-Original-From: Abdurrahman Hussain Reply-To: abdurrahman@nexthop.ai From: Abdurrahman Hussain Both the hardware and driver already support polling mode. By removing the mandatory IRQ requirement during probe, the driver can now fall back to polling when an interrupt is unavailable, ensuring compatibility with a wider range of systems. Signed-off-by: Abdurrahman Hussain --- Documentation/devicetree/bindings/spi/spi-xilinx.yaml | 1 - 1 file changed, 1 deletion(-) diff --git a/Documentation/devicetree/bindings/spi/spi-xilinx.yaml b/Docume= ntation/devicetree/bindings/spi/spi-xilinx.yaml index 4beb3af0416d..24e62530d432 100644 --- a/Documentation/devicetree/bindings/spi/spi-xilinx.yaml +++ b/Documentation/devicetree/bindings/spi/spi-xilinx.yaml @@ -38,7 +38,6 @@ properties: required: - compatible - reg - - interrupts =20 unevaluatedProperties: false =20 --=20 2.52.0 From nobody Mon Feb 9 09:17:03 2026 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 800226A33B; Mon, 19 Jan 2026 07:06:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768806394; cv=none; b=d2qW0onfrIA0xmxEoI9fr6tKaZGyjuiXW5TBNhgPPtPvB+leAocAc71EkyOEK3fD5ZAvC619bcMATCJYehNN7b1VgsXEQdUL8vJWpUl2Ixb9P+/dqRnQeImoVs8s8Auu251ga0RoVXHOruxCLZWMjv4r/cG1kdluRg4/NDlQHRQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768806394; c=relaxed/simple; bh=CBGg3x/vucOg+TkQQF7Y4KAwGgR2HgDde7MgFS6bYuU=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=i4Ykmd6PO5FCk031568NiD/knYUJHxl1gt0roTQZOoUbMHIW+Ymt1LC7jTeWddrgcg+xnjNY8nTUtqv33oJfMOIueDQdNrOjX17QY6aVlBdDmGW++gbtJwBBtyGXmubiS4AD6tkMhzpG0Ljwd/2m5xsAFOu6y+fwX460lAFR/C0= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=GKaEAnEz; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="GKaEAnEz" Received: by smtp.kernel.org (Postfix) with ESMTPS id 41A10C19425; Mon, 19 Jan 2026 07:06:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1768806394; bh=CBGg3x/vucOg+TkQQF7Y4KAwGgR2HgDde7MgFS6bYuU=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=GKaEAnEzMyE//jpsjeXOcE6qOtEjh43DlkPb5Oe5wx1PBj9OqvR9phWxtx1J4q9Ne BjmC9oYHA1u25xgWaj2+W0ca9rSJbCfvOdNrn3Cr5DzAUVCyLFgKFD2+qmmqktSEGx qBFX3DF8Hkm2Sy0an6lUuLNjFpK5M8bOuTDwmL2m+O5x+nao3y60a4keuF31roDt8Q FcfMElVJqUyYm4wHmTKrfjjaDpDZbGm9L4Wmy0fz+KiDVmyD5rvSQ6hXmU8st1cLQ9 7Xbs+ApJDEbxwfhucvvKigqXIABH7sc2IasZaPT1gvSSqMABpo8A7L49svLShS44Rz WXXKsOnZDaqcA== Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 331D1CA5FF5; Mon, 19 Jan 2026 07:06:34 +0000 (UTC) From: Abdurrahman Hussain via B4 Relay Date: Mon, 19 Jan 2026 07:06:23 +0000 Subject: [PATCH v3 2/3] spi: xilinx: make irq optional Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20260119-spi-xilinx-v3-2-4566c33bac0d@nexthop.ai> References: <20260119-spi-xilinx-v3-0-4566c33bac0d@nexthop.ai> In-Reply-To: <20260119-spi-xilinx-v3-0-4566c33bac0d@nexthop.ai> To: Mark Brown , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Michal Simek Cc: linux-spi@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Abdurrahman Hussain X-Mailer: b4 0.14.3 X-Developer-Signature: v=1; a=ed25519-sha256; t=1768806393; l=964; i=abdurrahman@nexthop.ai; s=20260119; h=from:subject:message-id; bh=PBkRm5i7Y71sKWBVU/SvixzOItjnO8vO5sXpyGOffJs=; b=t9iSVOWCuMCe/7ZCazYCqmZGC83AcNhDLXOidgKbHtDmZUNA4H01/V6Cssev3nPLdV91x4NKb dHwdG/Wva74CZjpS75S7uc1856hxqJ4fpb/I9gkcrFRmn7CmUsyzhWw X-Developer-Key: i=abdurrahman@nexthop.ai; a=ed25519; pk=S+ysnf+NwMcBdHBlyKIUEAtaFGSIhQwcJcgcXhq0osg= X-Endpoint-Received: by B4 Relay for abdurrahman@nexthop.ai/20260119 with auth_id=608 X-Original-From: Abdurrahman Hussain Reply-To: abdurrahman@nexthop.ai From: Abdurrahman Hussain Both the hardware and driver already support polling mode. By removing the mandatory IRQ requirement during probe, the driver can now fall back to polling when an interrupt is unavailable, ensuring compatibility with a wider range of systems. Signed-off-by: Abdurrahman Hussain --- 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 c86dc56f38b4..4aa67fc61cb6 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 *pde= v) xspi->bytes_per_word =3D bits_per_word / 8; xspi->buffer_size =3D xilinx_spi_find_buffer_size(xspi); =20 - xspi->irq =3D platform_get_irq(pdev, 0); + xspi->irq =3D platform_get_irq_optional(pdev, 0); if (xspi->irq < 0 && xspi->irq !=3D -ENXIO) { return xspi->irq; } else if (xspi->irq >=3D 0) { --=20 2.52.0 From nobody Mon Feb 9 09:17:03 2026 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8008A289811; Mon, 19 Jan 2026 07:06:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768806394; cv=none; b=Sh9lXIq/yvhG2GwAf6aLF3gLoRAJvl+tGhcgDUZsKAUuIvpaUm0CVxLu0JQoc/29G54UmU3yM3uI5OpXYvHJMQPi0wNzgInYfRnWZ2O6mkXOcE4e/pXhwADOuOhOmv2d9SjpTOvh7+HS53aptHoWGFc0ZNH/Kth11tUMlGsNvz4= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768806394; c=relaxed/simple; bh=u3K96sn3kaP5ZMu4Inbphv8OWU2bjFbfkLD6u/MxeC4=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=ud6BEL6v/WizPR3MCi6MUIeU1bSR93+xej3eHTyO9lgD8Q4QmtvtEpedPwu5qMzCWZddnDBgItEOYxOoX1SAJohjBHqNOrr/J0A6nyVAkOi7RojRHW+GHa9omvcnf2GDMRV6YjwZGBSR/MY4DOyZmWG2aOGyxoN9UGnFfrNrvyo= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=gw3yHfoT; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="gw3yHfoT" Received: by smtp.kernel.org (Postfix) with ESMTPS id 4CD08C2BC87; Mon, 19 Jan 2026 07:06:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1768806394; bh=u3K96sn3kaP5ZMu4Inbphv8OWU2bjFbfkLD6u/MxeC4=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=gw3yHfoTaTPrAyMvnzd1S/99WaaupLVOWze2HSvrDL4JJLbfS0XdP4bNwVwprQCIH akDLUMOpG/TuA7XVdSsbgdLydSSm+JULAgHADdZH+Tkr8x3QMfB1L2ZPPoU7fDcHIf qOTNngttO7Weo3TXir/tj5LeqYUqbLPKSrjcM/oYduFieXA6JZhERiqX6RIG3XlUYW a0KHWDIkwuasI8u/Hap3SjHIzEP5IG+4H8O+pf/yRf4o8k5x1y39yk/v2uV71mFrv3 gdWbdRjNj2XMJuPBvX+ynOuEQTi9OKa1lajQi8BXbUdwAL8Y0pxOctn7rIISqFqgD6 gzbcLg/PSG0BA== Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 44547CA5FF7; Mon, 19 Jan 2026 07:06:34 +0000 (UTC) From: Abdurrahman Hussain via B4 Relay Date: Mon, 19 Jan 2026 07:06:24 +0000 Subject: [PATCH v3 3/3] spi: xilinx: use device property accessors. Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20260119-spi-xilinx-v3-3-4566c33bac0d@nexthop.ai> References: <20260119-spi-xilinx-v3-0-4566c33bac0d@nexthop.ai> In-Reply-To: <20260119-spi-xilinx-v3-0-4566c33bac0d@nexthop.ai> To: Mark Brown , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Michal Simek Cc: linux-spi@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Abdurrahman Hussain X-Mailer: b4 0.14.3 X-Developer-Signature: v=1; a=ed25519-sha256; t=1768806393; l=996; i=abdurrahman@nexthop.ai; s=20260119; h=from:subject:message-id; bh=5Z9Lfw4Ms5TcSIWQwUqr5lvpEWwq7CP+Bn9jodMd2/I=; b=b2d156WBDJn95t3Soo/2/DM72vaW8XXHo3TSPZhHT46rJH8In8ygdUXGPL58qNn052PIiR7/E eygipSy8BSwAJaNyL3HRid4K04WCK1lspGGY5DooTVfKb1F+Pks67El X-Developer-Key: i=abdurrahman@nexthop.ai; a=ed25519; pk=S+ysnf+NwMcBdHBlyKIUEAtaFGSIhQwcJcgcXhq0osg= X-Endpoint-Received: by B4 Relay for abdurrahman@nexthop.ai/20260119 with auth_id=608 X-Original-From: Abdurrahman Hussain Reply-To: abdurrahman@nexthop.ai From: Abdurrahman Hussain Make the driver work on non-OF platforms. Signed-off-by: Abdurrahman Hussain --- 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 4aa67fc61cb6..9fb1da2fcce4 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 *p= dev) bits_per_word =3D pdata->bits_per_word; force_irq =3D pdata->force_irq; } else { - of_property_read_u32(pdev->dev.of_node, "xlnx,num-ss-bits", - &num_cs); - ret =3D 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 =3D device_property_read_u32(&pdev->dev, + "xlnx,num-transfer-bits", + &bits_per_word); if (ret) bits_per_word =3D 8; } --=20 2.52.0