From patchwork Tue May 9 12:24:01 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Seraphime Kirkovski X-Patchwork-Id: 9717837 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 1A1F360237 for ; Tue, 9 May 2017 12:24:38 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0271528405 for ; Tue, 9 May 2017 12:24:38 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E998E28409; Tue, 9 May 2017 12:24:37 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.3 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 918ED28401 for ; Tue, 9 May 2017 12:24:37 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754035AbdEIMY2 (ORCPT ); Tue, 9 May 2017 08:24:28 -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 Received: by mail-wr0-f193.google.com with SMTP id 6so13286004wrb.1; Tue, 09 May 2017 05:24:25 -0700 (PDT) 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) Received: from macchiaveli (cha92-19-78-239-153-115.fbx.proxad.net. [78.239.153.115]) by smtp.gmail.com with ESMTPSA id s110sm21794224wrc.5.2017.05.09.05.24.23 (version=TLS1 cipher=AES128-SHA bits=128/128); Tue, 09 May 2017 05:24:24 -0700 (PDT) Received: by macchiaveli (sSMTP sendmail emulation); Tue, 09 May 2017 14:24:22 +0200 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-spi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-spi@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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