Re: [PATCH] spi: xilinx: Add DT support for selecting transfer word width

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Oct 22, 2019 at 11:00:07AM +0200, Alvaro Gamez Machado wrote:

>  		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);
> +		if (ret)
> +			bits_per_word = 8;

Any new DT property needs documentation adding but in any case this
shouldn't be set in DT, it should be set by the client driver - it's
going to be a fixed property of the device, not something that varies
per system.

Attachment: signature.asc
Description: PGP signature


[Index of Archives]     [Linux Kernel]     [Linux ARM (vger)]     [Linux ARM MSM]     [Linux Omap]     [Linux Arm]     [Linux Tegra]     [Fedora ARM]     [Linux for Samsung SOC]     [eCos]     [Linux Fastboot]     [Gcc Help]     [Git]     [DCCP]     [IETF Announce]     [Security]     [Linux MIPS]     [Yosemite Campsites]

  Powered by Linux