From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754056AbdEIMYa (ORCPT ); Tue, 9 May 2017 08:24:30 -0400 Received: from mail-wr0-f193.google.com ([209.85.128.193]:34486 "EHLO mail-wr0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753978AbdEIMY0 (ORCPT ); Tue, 9 May 2017 08:24:26 -0400 From: Seraphime Kirkovski To: linux-kernel@vger.kernel.org Cc: linux-spi@vger.kernel.org, broonie@kernel.org, Seraphime Kirkovski Subject: [PATCH 2/2] spi: spidev: document SPI_IOC_WR_DEFAULT_MAX_SPEED_HZ Date: Tue, 9 May 2017 14:24:01 +0200 Message-Id: <20170509122401.2561-3-kirkseraph@gmail.com> X-Mailer: git-send-email 2.13.0.rc1 In-Reply-To: <20170509122401.2561-1-kirkseraph@gmail.com> References: <20170509122401.2561-1-kirkseraph@gmail.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 + 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