[lkml]   [2017]   [May]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
Patch in this message
Subject[PATCH 2/2] spi: spidev: document SPI_IOC_WR_DEFAULT_MAX_SPEED_HZ
This adds documentation of the new spidev ioctl.

Signed-off-by: Seraphime Kirkovski (Haapie) <>
Documentation/spi/spidev | 7 +++++++
1 file changed, 7 insertions(+)

diff --git a/Documentation/spi/spidev b/Documentation/spi/spidev
index 3d14035b1766..c67a00594dce 100644
--- a/Documentation/spi/spidev
+++ b/Documentation/spi/spidev
@@ -108,6 +108,13 @@ settings for data transfer parameters:
speed, in Hz. The controller can't necessarily assign that specific
clock speed.

+ SPI_IOC_WR_DEFAULT_MAX_SPEED_HZ ... pass a pointer to a u32 which will
+ assign the maximum speed in Hz directly to the underlying device.
+ The controller can't necessarily assign that clock speed.
+ Any subsequent open() to the same /dev/spidevB.D will be configured
+ by default to use the maximum speed assigned by the last successful

- At this time there is no async I/O support; everything is purely
 \ /
  Last update: 2017-05-10 21:18    [W:0.071 / U:4.244 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site