Received: by 10.213.65.68 with SMTP id h4csp3668356imn; Tue, 3 Apr 2018 08:49:29 -0700 (PDT) X-Google-Smtp-Source: AIpwx49IBjDogEpoKXhCO6Nk44448fEHnBwuFIMBN94PhKTAxtUXdsKKQxMXqFIbKfMdaUUkYg4K X-Received: by 10.99.110.5 with SMTP id j5mr9639859pgc.246.1522770569156; Tue, 03 Apr 2018 08:49:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522770569; cv=none; d=google.com; s=arc-20160816; b=d/lneXRAh7LYpQOZLqZPFocUTYNqlEAh5sYiDv7FsNQOV7sWec/GN8dDSjNAF++mfw +XX1lVlvFrPwwQz5KxxUSVv9kL4JA+JueYnp33ZKFf8ZotokG738NA5OwfFzsR5dIGGv V1Dmk4JGIEctsQd1rfkbtKr9Z3dOOdBLHm8gwiqGsRkcxGB38Lce21tjSaXCx+VZLYfm Gz2mPcmMOhA+EWg9Hsz4qMsJv3Ub96x8cwYz8dIKkPEIUI4EfhgBK+XIgtW4dXmTH1x+ Eva0TjhlLdZwWCro631CDVOtInvVvjmPZiaAUrYv2aony9b5jRyMj9RQ6N2mtl9+DvMQ SXYw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature:arc-authentication-results; bh=3CxVEVv8cE/SPd4VqM9Bi846nEqX6tiHzcT+dsY5QtY=; b=te2+SNIfbeAzGRSHp6+pXSo9kx8CgA5ITucTb6qEYubEJNmG1VgLhkC5+6XzlwCaEp HMxI4ehkvxBvKXKZegkJpdujpzLaXbnpMIgMUO0aDiyeYLD6+IPf2JDtlcx2o7xiG6PR 2WZpZqpemt7J9XjMbatp6VW6eKiL+lzJvAKy+46qxQeQfAdMI7DJTN8heDqUrD5g3nyO /QofCHp/T8gJC7006v1xbGVZno8lE0ERtEUtHbpNtGPpgp2q9cz7hf/2HHHQ93RpIFVQ rfMu4vB+fSZLmmUeEmp5Ri2hDvak32sHve7w24PTBQHnm2NLlZRKSiRmZ0KJJ/b1gssx IKpg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@orpaltech.com header.s=mailru header.b=kKRKW0Ws; 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 j4-v6si801030pll.128.2018.04.03.08.49.14; Tue, 03 Apr 2018 08:49:29 -0700 (PDT) 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=@orpaltech.com header.s=mailru header.b=kKRKW0Ws; 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 S1752299AbeDCPo5 (ORCPT + 99 others); Tue, 3 Apr 2018 11:44:57 -0400 Received: from smtp57.i.mail.ru ([217.69.128.37]:42858 "EHLO smtp57.i.mail.ru" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752075AbeDCPoz (ORCPT ); Tue, 3 Apr 2018 11:44:55 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=orpaltech.com; s=mailru; h=Message-Id:Date:Subject:Cc:To:From; bh=3CxVEVv8cE/SPd4VqM9Bi846nEqX6tiHzcT+dsY5QtY=; b=kKRKW0WsTWQEFWjpmM0feMFo6X1WmR/FhhKm7ppfAp7yGjdA9d77M8U/JVVr+aJVh/lcKaf5N1MjeMGIBbIlqEgcUKo+n4vrPoUgPCGfQEcpmx4otUp23Mt6KU4/3SUo5cIBbKlmZAz5AQGHIaEgA3fEZYDiyfK+fep2XeBKuGE=; Received: by smtp57.i.mail.ru with esmtpa (envelope-from ) id 1f3O7B-0002Dz-2L; Tue, 03 Apr 2018 18:44:53 +0300 From: Sergey Suloev To: Mark Brown , Maxime Ripard , Chen-Yu Tsai Cc: linux-spi@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Sergey Suloev Subject: [PATCH v3 0/6] spi: Add support for DMA transfers in sun6i SPI driver Date: Tue, 3 Apr 2018 18:44:43 +0300 Message-Id: <20180403154449.2443-1-ssuloev@orpaltech.com> X-Mailer: git-send-email 2.16.2 Authentication-Results: smtp57.i.mail.ru; auth=pass smtp.auth=ssuloev@orpaltech.com smtp.mailfrom=ssuloev@orpaltech.com X-7FA49CB5: 0D63561A33F958A5F55E3524CD6DD3A3840FE9263A247D770B941C93B49DEED7725E5C173C3A84C3A1C30C8AFC676C8BD5966E8489616130E5B2F3A2B87CD4C8C4224003CC836476C0CAF46E325F83A50BF2EBBBDD9D6B0F05F538519369F3743B503F486389A921A5CC5B56E945C8DA X-Mailru-Sender: C5364AD02485212F3ACDC11E67D84917E394416E73E9AFE1A34CE6510AE19CDE069BFC61DABEEB110841D3AAAB1726C63DDE9B364B0DF289264D2CD8C2503E8C22A194DADEED8EEDCA01A23BA9CD1BE7ED14614B50AE0675 X-Mras: OK Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The following patchset provides corrections for PIO-mode and support for DMA transfers in sun6i SPI driver. Changes in v2: 1) Fixed issue with misplacing a piece of code that requires access to the transfer structure into sun6i_spi_prepare_message() function where the transfer structure is not available. 2) Fixed issue with passing an invalid argument into devm_request_irq() function. Changes in v3: 1) Restored processing of 3/4 FIFO full interrupt. 2) Debug log enhancements. Sergey Suloev (6): spi: sun6i: coding style/readability improvements spi: sun6i: handle chip select polarity flag spi: sun6i: restrict transfer length in PIO-mode spi: sun6i: use completion provided by SPI core spi: sun6i: introduce register set/unset helpers spi: sun6i: add DMA transfers support drivers/spi/spi-sun6i.c | 526 ++++++++++++++++++++++++++++++++++++------------ 1 file changed, 402 insertions(+), 124 deletions(-) -- 2.16.2