Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1638087

[PATCH 2/2] spi: spidev: document SPI_IOC_WR_DEFAULT_MAX_SPEED_HZ

Path csiph.com!eternal-september.org!feeder.eternal-september.org!news.unit0.net!news.panservice.it!bofh.it!news.nic.it!robomod
From Seraphime Kirkovski <kirkseraph@gmail.com>
Newsgroups linux.kernel
Subject [PATCH 2/2] spi: spidev: document SPI_IOC_WR_DEFAULT_MAX_SPEED_HZ
Date Tue, 09 May 2017 14:30:02 +0200
Message-ID <tFcr8-1Fu-19@gated-at.bofh.it> (permalink)
References <tFcr7-1Fu-5@gated-at.bofh.it>
Dkim-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=5t7e+UjKMHdP6HGwOlG2JmJgL43qRbcIHpkTBYNogkc=; b=YPRer70v3w0nwjYkuVbAeXToCEswHo5Me3kQRrkgxAfWVPZjf/fnPX/8PltcjqAQAS mpw47orMx+fN9hF6r5OpIluesewcwy7nbueJPRWgd31Qun12VtIy23GnfwyBzaNjHue0 HzI7ROZlSqtI/X306d4fHcazJQwS4Qbh1sqnfsm4oL2+lmnYpYUnDACgEeaytm7FCcKe v1oqyy4KfupLg9AttxqBdTSXu9bP0qvhYZ9Gi1zhPfsZ4YILFj7CjLk2j+RUd/+JSf9W hsW/nYzKkJ8i5aSVjwDMEjNBlG/Gxvh+a4zlBkfUS55aynT3axBK3J3eE392+qMko3v5 OGBQ==
X-Google-Dkim-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=5t7e+UjKMHdP6HGwOlG2JmJgL43qRbcIHpkTBYNogkc=; b=aSsgFrsGzY8rByNIbzAa5gxWN8u43D0sCFbC28LxhUC/o2lQ+semlRu/BFIgziE335 XCCOso80LIugvBTN3oqCM++eKNmfIVgeMshovSTIJEs+3iz+lz6Z4YdoPfBLZAhZCJbb k9Ks08+aJ1u5JcXtiBFNc72G2Wu7A4LzSvpu4bTshb5ciliZnuVe4AGlxQjEi5br4WH7 4ZkczSNxHPlVJ4j9KcwNnCMc5ZqxsR1S/WWFcUUjzJmkiboSMTOWk3uwBQxT/Cmen9qq Wz9EGNK+ZH6E5JD2LehbqTS9OveHc9FZ5phGhxWDq95ID/Q7ttdUCApY6RX7Rw/258tQ vzJg==
X-Gm-Message-State AN3rC/4ChSyRfiuavoMLnVzx9YnRY1q0WxyoaiY0iKKwk9WUPDWMkYiB +QgmPsZ6/JEYhg==
X-Received by 10.223.151.13 with SMTP id r13mr43760226wrb.6.1494332665174; Tue, 09 May 2017 05:24:25 -0700 (PDT)
X-Mailer git-send-email 2.13.0.rc1
Sender robomod@news.nic.it
List-ID <linux-kernel.vger.kernel.org>
X-Mailing-List linux-kernel@vger.kernel.org
Approved robomod@news.nic.it
Lines 27
Organization linux.* mail to news gateway
X-Original-Cc linux-spi@vger.kernel.org, broonie@kernel.org, Seraphime Kirkovski <kirkseraph@gmail.com>
X-Original-Date Tue, 9 May 2017 14:24:01 +0200
X-Original-Message-ID <20170509122401.2561-3-kirkseraph@gmail.com>
X-Original-References <20170509122401.2561-1-kirkseraph@gmail.com>
X-Original-Sender linux-kernel-owner@vger.kernel.org
Xref csiph.com linux.kernel:1638087

Show key headers only | View raw


This adds documentation of the new spidev ioctl.

Signed-off-by: Seraphime Kirkovski (Haapie) <kirkseraph@gmail.com>
---
 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
+	call to SPI_IOC_WR_DEFAULT_MAX_SPEED_HZ.
+
 NOTES:
 
     - At this time there is no async I/O support; everything is purely
-- 
2.13.0.rc1

Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread


Thread

[PATCH 0/2] spi: spidev: Introduce SPI_IOC_WR_DEFAULT_MAX_SPEED_HZ command Seraphime Kirkovski <kirkseraph@gmail.com> - 2017-05-09 14:30 +0200
  [PATCH 1/2] spi: spidev: introduce SPI_IOC_WR_DEFAULT_MAX_SPEED_HZ command Seraphime Kirkovski <kirkseraph@gmail.com> - 2017-05-09 14:30 +0200
  [PATCH 2/2] spi: spidev: document SPI_IOC_WR_DEFAULT_MAX_SPEED_HZ Seraphime Kirkovski <kirkseraph@gmail.com> - 2017-05-09 14:30 +0200

csiph-web