Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp402345imu; Fri, 25 Jan 2019 04:27:05 -0800 (PST) X-Google-Smtp-Source: ALg8bN6RyPJK3Sfrldty+3kp/zrLcWLyiiQ8SvpYhVvEn2nXaI4XePBd6J5FWTBLh3+ncJ5mh43m X-Received: by 2002:a63:c051:: with SMTP id z17mr9582023pgi.20.1548419225552; Fri, 25 Jan 2019 04:27:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548419225; cv=none; d=google.com; s=arc-20160816; b=Sl82mJTFnd9yFXnQ0zHOg/pUvQbFt5a4KqBA9iv8hwhMxUPYGC8rPRemSL9liyr2PD msxmU241YPdkDN6va9Fko+PU6AhPHe4V1zloqqFjTXL7p1+aJvJV/cAPr5Pjvb0oyfg8 22fftChz8gYpW76jnNNKu8Hxh/jvCeewBtzjU2/E8G/i3zlZq0bQLP3/h9kBLkO7siPE /Gsv4MgSY0FjxAj8JjcxrzEEKkUeMy/fsRHnvQiqTG9Hd8UxJN9cfb3UVNBgMkBqedrJ zsNOAyjO5U1M3ulfNjLo5Qn0vzx/5pI4AJEjOzinFHg/GAAehw2mJVkhVreOefTgwXHA AotQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=Ap3WJXi6N0MaUhuDdAWlD/0LwseVhRF0+wzqnXt9JsE=; b=LHBfUmNuGZ1fvjEiQW1qH67wimC6uUS1Qp0LAVbjQ4sNaxWzZUmd1TcScd1q/c1tw7 1p0CRfIcDgc7RTqzgKCgD1Te4SYeho0l3wFipxtd7aBIgZLww3M+1LUP/asnoExyudIS jp218cm666R8WR+BWRDqJe0kuVSqGlioiH2WFu0e+SzF1tckSTyu6ZjZbweT9zPZYvhd hWUcxfL+ms05wkrFk27W5BZmAtH6lD6s2tPNxMC/R5kjsHUhtemUBIOwFzeFtBPL3+iB IOVLdvuqIhzPHX91RSLoh7juH4daerNMbcH5GgPUhIlQnIQENUQXT6AyU5i98ywRIfpG GSUA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@norrbonn-se.20150623.gappssmtp.com header.s=20150623 header.b=N1hlQ2v3; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n20si4932416plp.294.2019.01.25.04.26.50; Fri, 25 Jan 2019 04:27:05 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@norrbonn-se.20150623.gappssmtp.com header.s=20150623 header.b=N1hlQ2v3; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727097AbfAYMYa (ORCPT + 99 others); Fri, 25 Jan 2019 07:24:30 -0500 Received: from mail-lj1-f196.google.com ([209.85.208.196]:41609 "EHLO mail-lj1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726108AbfAYMYa (ORCPT ); Fri, 25 Jan 2019 07:24:30 -0500 Received: by mail-lj1-f196.google.com with SMTP id k15-v6so8192123ljc.8 for ; Fri, 25 Jan 2019 04:24:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=norrbonn-se.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=Ap3WJXi6N0MaUhuDdAWlD/0LwseVhRF0+wzqnXt9JsE=; b=N1hlQ2v3e4qJwOnJHt23ThoGYV8GnbwHxZVK4gq79hzmgA3FdvRV1qUg6kP7IXIj/H yWYTy8gdP7KKCzStohbrRWeXyccgm4JGDx6umLx8B+gRYM4Cz78qYyrDkxs+SRxs7ZXZ OPT36udNGMVHIRD4YCxhVVYWIYkBN00dpNo3jVP9d/g8cy0mi9e3lzT6KjvXpGznJaxM 7/KjQTqlnrTrZa6cx3odHOeBOVeEIxYvVxISx6jGNhnieBcEfFLZ02jIpuLalHxy7SkQ PYzyZLI32Br0ZiBQwSFppKEzasPagMd9gNbDiAoEDChueGQZaxpoBxRa084lksWHOOZ0 E5Hw== 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:mime-version :content-transfer-encoding; bh=Ap3WJXi6N0MaUhuDdAWlD/0LwseVhRF0+wzqnXt9JsE=; b=SIBPm/SPKDdahODku3gZLconwUNDIiy53Dcb5JCoPFdJ+Apyl1MUifBfb1ItKLFtcx uLYOvCjCvzsTsM6mE7chUObi19g9dJoahrFsq09FSDscWegTWakhkzNGIUyyLNVqALad 7v4oStT+2cj9X7dP4B5tij6nkBqNkWld+NHOvQ2yFn3zC2vnoxwsTNpAwkh0hR4CWlfG NMGPAz0BPMcyObqANPZsrGV0a5TZvs/CxDYVrgjwNCENyQvDWcucbNOqjXwpHC/frhGu q3mflctChgkcsdK5WHzfG/mSELU9u3O+QNHlUCYPs3fRtCV0UDnnXfdPD583wCUot0ve cu3Q== X-Gm-Message-State: AJcUukfNLSs+7DZYKUo8qYuPGw8wdZrmGtXmndWQWcl1DGi40vRIyJUI a+Oa8Vth0mfuTtA4hMh1XNriqat6Tkc= X-Received: by 2002:a2e:8945:: with SMTP id b5-v6mr9597207ljk.55.1548419068337; Fri, 25 Jan 2019 04:24:28 -0800 (PST) Received: from mimer.lan (h-29-16.A159.priv.bahnhof.se. [79.136.29.16]) by smtp.gmail.com with ESMTPSA id y81-v6sm1508376lje.30.2019.01.25.04.24.27 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 25 Jan 2019 04:24:27 -0800 (PST) From: Jonas Bonn To: linux-kernel@vger.kernel.org, linux-spi@vger.kernel.org Cc: Jonas Bonn Subject: [PATCH v2 0/2] spi: support inter-word delays Date: Fri, 25 Jan 2019 13:24:23 +0100 Message-Id: <20190125122425.30676-1-jonas@norrbonn.se> X-Mailer: git-send-email 2.19.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Resubmission to fix thinko in spi-atmel patch. Changed in v2: * Fix atmel-spi driver to not unconditionally set minimal delay if no delay is required (erroneous clamping) This short series adds support for SPI inter-word delays and configures the spi-atmel driver to honour the setting. Some SPI slaves are so slow that they are unable to keep up even at the SPI controller's lowest available clock frequency. I have such a configuration where an AVR-based SPI slave is unable to feed the SPI bus fast enough even the SPI master runs at the lowest possible clock speed. Jonas Bonn (2): spi: support inter-word delay requirement for devices spi-atmel: support inter-word delay .../devicetree/bindings/spi/spi-bus.txt | 1 + drivers/spi/spi-atmel.c | 18 +++++++++++++----- drivers/spi/spi.c | 4 ++++ include/linux/spi/spi.h | 1 + 4 files changed, 19 insertions(+), 5 deletions(-) -- 2.19.1