Received: by 10.213.65.68 with SMTP id h4csp1921922imn; Thu, 29 Mar 2018 13:40:56 -0700 (PDT) X-Google-Smtp-Source: AIpwx49FQelCoRz/O79V7qiEYuwFJp2YiJMtYJDSD1iOhJ3QWFL6z32ZFbNbG4yyiUN6pviHM4AU X-Received: by 2002:a17:902:9a44:: with SMTP id x4-v6mr10142311plv.332.1522356056178; Thu, 29 Mar 2018 13:40:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522356056; cv=none; d=google.com; s=arc-20160816; b=di4GEdVupuNGn5aYzFgjRQM/Td9q7NgcZDZK+8v/YyLFiDFUl0MjtRqme5B8SnitdK WJwnfxxvTDTTWCa9ipVE6659eRmjO9hWHii96iuaRrY5Ifgq5VkyOKhZV6IymOTQvSlz XXjGcd/SjZzYORsvA+LHjnhmMTkHXeX5PnbIrEOYn+F2GfVgdutXZLrhY7bJp8hnghR+ tABHneMogQqeP4Ps4hDBrFXEhrg8USCW2M8MweKr825LfwtUKYcXbJ4O7xavU+Lcgm3Z 9Ngbt0hzgORACytmcPsCm4w/oi0n6MywQHwis3BAhOUzcbZ6iYGjC6V27flGk8FKBxbB LmBg== 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:dkim-signature:arc-authentication-results; bh=eltr9pSS0gsuG0ccM3Swvjv1sDvNplux+zTLmgDw2TU=; b=CV57hjuUzPFHWObiSKOn9ZryBQLxLHKGvGuOiKuD5Hg3pRPk5EHy7jYF7UdELiXsti Kyf5qCNl39Ckc+5eaznzw/jiGMjNfRtAPoi+YBVI5v2o2Wp1ucGde2nfC4OOhZdlyywQ gKRFBSmCev8ZqpeqY6KmqB8zRRZerztNvf/xDinGXtgTQDzd06C5hi+WeIDQ7DhiBZgM rytPsY5AcuXMRBlOvOjUaYMBFhlrNR29qOmbvT3U/se8T2U0RBnc4NhVL+aLedTPvBrk iQcazSMz/CaNYEe9v3x5ZjidWZZlBG7LiUE2z/SOUzkjNpQjZHY/HiOCX3/045QOOb80 tNfA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@orpaltech.com header.s=mailru header.b=n28sX5dy; dkim=pass header.i=@orpaltech.com header.s=mailru header.b=n28sX5dy; 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 q12-v6si4854030plr.69.2018.03.29.13.40.42; Thu, 29 Mar 2018 13:40:56 -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=n28sX5dy; dkim=pass header.i=@orpaltech.com header.s=mailru header.b=n28sX5dy; 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 S1753262AbeC2Ui7 (ORCPT + 99 others); Thu, 29 Mar 2018 16:38:59 -0400 Received: from fallback13.m.smailru.net ([94.100.179.30]:59974 "EHLO fallback.mail.ru" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752156AbeC2Uet (ORCPT ); Thu, 29 Mar 2018 16:34:49 -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=eltr9pSS0gsuG0ccM3Swvjv1sDvNplux+zTLmgDw2TU=; b=n28sX5dyLnTncZOmzFPeaV/7+lxaljgjhD++ZH287sdClJ5IL9xdztUBGtWozIeqDv45wTO67nHEv7lONHX6kmqxPmJqO9YSNogmg6U4webtyFbcDnwBuiH5DXwpAzZbPSo9i6z0kpkHxbjit5rQHD/wFmtRtgDhvPdjIJg59Tw=; Received: from [10.161.25.37] (port=34962 helo=smtp60.i.mail.ru) by fallback13.m.smailru.net with esmtp (envelope-from ) id 1f1cls-00015s-CC; Thu, 29 Mar 2018 21:59:36 +0300 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=eltr9pSS0gsuG0ccM3Swvjv1sDvNplux+zTLmgDw2TU=; b=n28sX5dyLnTncZOmzFPeaV/7+lxaljgjhD++ZH287sdClJ5IL9xdztUBGtWozIeqDv45wTO67nHEv7lONHX6kmqxPmJqO9YSNogmg6U4webtyFbcDnwBuiH5DXwpAzZbPSo9i6z0kpkHxbjit5rQHD/wFmtRtgDhvPdjIJg59Tw=; Received: by smtp60.i.mail.ru with esmtpa (envelope-from ) id 1f1clX-0005P6-ID; Thu, 29 Mar 2018 21:59:16 +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 0/6] spi: Add support for DMA transfers in sun4i SPI driver Date: Thu, 29 Mar 2018 21:59:01 +0300 Message-Id: <20180329185907.27281-1-ssuloev@orpaltech.com> X-Mailer: git-send-email 2.16.2 X-7FA49CB5: 0D63561A33F958A5C04AD6509EBA4AFFA67B693F76D0AEE7985958D3EF2919B0725E5C173C3A84C3ADE50F0DA4A4E48C795F307EB1CF8B746C9A9530EBF72002C4224003CC836476C0CAF46E325F83A50BF2EBBBDD9D6B0F05F538519369F3743B503F486389A921A5CC5B56E945C8DA X-Mailru-Sender: C5364AD02485212F3ACDC11E67D84917EE9AA5DB12BA4F2BB24DB51B1963E797069BFC61DABEEB110841D3AAAB1726C63DDE9B364B0DF289264D2CD8C2503E8C22A194DADEED8EEDCA01A23BA9CD1BE7ED14614B50AE0675 X-Mras: OK X-7FA49CB5: 0D63561A33F958A557E1F21B1BEB3E48A7C7F622B2A954F0E0B7CE59E272E8B7462275124DF8B9C9A939490BDF5DFC32E5BFE6E7EFDEDCD789D4C264860C145E X-Mailru-Sender: A5480F10D64C9005631A4012884FA16352B0F6778DC341109E5A6DC32282A1BD6F332C5845F46A745FC78D3D9DFD682EC77752E0C033A69E3DF03E4AFE169B847187F6D0DA2124709F6F601AB1435FA63CDA0F3B3F5B9367 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 sun4i SPI driver. Sergey Suloev (6): spi: core: handle timeout error from transfer_one() spi: sun4i: restrict transfer length in PIO-mode spi: sun4i: coding style/readability improvements spi: sun4i: use completion provided by SPI core driver spi: sun4i: introduce register set/unset helpers spi: sun4i: add DMA transfers support drivers/spi/spi-sun4i.c | 443 ++++++++++++++++++++++++++++++++++++------------ drivers/spi/spi.c | 5 +- 2 files changed, 341 insertions(+), 107 deletions(-) -- 2.16.2