mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Michal Simek <michal.simek@amd.com>
To: abdurrahman@nexthop.ai, Mark Brown <broonie@kernel.org>,
	Rob Herring <robh@kernel.org>,
	Krzysztof Kozlowski <krzk+dt@kernel.org>,
	Conor Dooley <conor+dt@kernel.org>
Cc: linux-spi@vger.kernel.org, devicetree@vger.kernel.org,
	linux-arm-kernel@lists.infradead.org,
	linux-kernel@vger.kernel.org
Subject: Re: [PATCH v3 3/3] spi: xilinx: use device property accessors.
Date: Wed, 21 Jan 2026 16:10:53 +0100	[thread overview]
Message-ID: <634d6989-fe58-48a9-82c3-bed7cb1b1ef3@amd.com> (raw)
In-Reply-To: <20260119-spi-xilinx-v3-3-4566c33bac0d@nexthop.ai>



On 1/19/26 08:06, Abdurrahman Hussain via B4 Relay wrote:
> From: Abdurrahman Hussain <abdurrahman@nexthop.ai>
> 
> Make 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 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 *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;
>   	}
> 

Let's get back to this patch itself. I think you should send v4 version of this 
patch with updating commit message and saying that you are using generic device 
helper functions.

Thanks,
Michal



  parent reply	other threads:[~2026-01-21 15:11 UTC|newest]

Thread overview: 36+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-01-19  7:06 [PATCH v3 0/3] spi: xilinx: switch to device properties and make IRQs optional Abdurrahman Hussain via B4 Relay
2026-01-19  7:06 ` [PATCH v3 1/3] spi: dt-bindings: xilinx: make interrupts optional Abdurrahman Hussain via B4 Relay
2026-01-19  7:06 ` [PATCH v3 2/3] spi: xilinx: make irq optional Abdurrahman Hussain via B4 Relay
2026-01-19  7:06 ` [PATCH v3 3/3] spi: xilinx: use device property accessors Abdurrahman Hussain via B4 Relay
2026-01-19 16:32   ` Mark Brown
2026-01-19 16:47     ` Abdurrahman Hussain
2026-01-19 16:50       ` Mark Brown
2026-01-19 17:15         ` Abdurrahman Hussain
2026-01-19 17:32           ` Mark Brown
2026-01-19 17:47             ` Abdurrahman Hussain
2026-01-19 18:38               ` Mark Brown
2026-01-19 18:52                 ` Michal Simek
2026-01-19 19:01                   ` Mark Brown
2026-01-19 19:17                     ` Michal Simek
2026-01-19 19:56                       ` Mark Brown
2026-01-19 20:30                         ` Abdurrahman Hussain
2026-01-19 23:20                           ` Mark Brown
2026-01-20  0:20                             ` Abdurrahman Hussain
2026-01-20 18:45                               ` Mark Brown
2026-01-20 19:11                                 ` Abdurrahman Hussain
2026-01-20 20:41                                   ` Andrew Lunn
2026-01-20 20:49                                   ` Andrew Lunn
2026-01-20 21:04                                   ` Mark Brown
2026-01-20 21:28                                     ` Andy Shevchenko
2026-01-20 21:38                                       ` Andy Shevchenko
2026-01-21  8:11                                         ` Michal Simek
2026-01-21  8:40                                           ` Andy Shevchenko
2026-01-20  9:23                         ` Andy Shevchenko
2026-01-20 19:34                           ` Andy Shevchenko
2026-01-19 19:18                     ` Abdurrahman Hussain
2026-01-21 15:10   ` Michal Simek [this message]
2026-01-20 19:23 ` (subset) [PATCH v3 0/3] spi: xilinx: switch to device properties and make IRQs optional Mark Brown
2026-01-21  8:15   ` Michal Simek
2026-01-21 11:39     ` Mark Brown
2026-01-21 12:26       ` Michal Simek
2026-01-21 12:35         ` Mark Brown

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=634d6989-fe58-48a9-82c3-bed7cb1b1ef3@amd.com \
    --to=michal.simek@amd.com \
    --cc=abdurrahman@nexthop.ai \
    --cc=broonie@kernel.org \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=krzk+dt@kernel.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-spi@vger.kernel.org \
    --cc=robh@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®