[PATCH v3] spi: xilinx: use device property accessors.
Mark Brown
broonie at kernel.org
Fri Jan 23 04:40:32 PST 2026
On Fri, Jan 23, 2026 at 08:11:47AM +0100, Michal Simek wrote:
> On 1/22/26 17:18, Andrew Lunn wrote:
> > On Thu, Jan 22, 2026 at 09:00:29AM +0000, Abdurrahman Hussain via B4 Relay wrote:
> > > + ret = device_property_read_u32(&pdev->dev,
> > > + "xlnx,num-transfer-bits",
> > > + &bits_per_word);
> > It could be my grep foo is broken, but there does not appear to be any
> > users of xlnx,num-transfer-bits and xlnx,num-ss-bits. So it would be
> > better to just remove them. There is no point Maintaining an API
> > nobody uses. And it would be silly to spread that API to ACPI if
> > nobody it going to use it.
There are no upstream users of this driver at all so obviously no use of
the properties.
> "xlnx,num-transfer-bits"
> bits_per_word is initializing bytes_per_word which is used in code for
> transfer sizes calculations.
The example AML posted was setting xlnx,num-transfer-bits to the default
value of 8 bits FWIW.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20260123/2a8ae20d/attachment.sig>
More information about the linux-arm-kernel
mailing list