Received: by 10.213.65.68 with SMTP id h4csp299926imn; Fri, 30 Mar 2018 05:53:54 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/r4TMwO0FCcDIIPmHEUT0S4pqm1t06WzNmOyewYN5wL6/LRsSdZFUyOdr1TJFDioC9hsuG X-Received: by 10.99.95.86 with SMTP id t83mr8269869pgb.183.1522414434615; Fri, 30 Mar 2018 05:53:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522414434; cv=none; d=google.com; s=arc-20160816; b=A8K9Q6j52YIkfJV1eGA4nxX9rdhy8GaBElmrleV+mBzEar+U63bEjNHcHq3FaP4Efz FHB04Vk1xzURosAuS4oFlBbQWR9PIFwCSoeou0g2dFgjHcT0CredtgLY91DHJ/yvW2co oK1qw/7WHiauiYQx2esZ5XPH6AHVKQiwBKfE4Ku3TC/HRtrS9TnS4vAbCzBllV657VeZ xuFHHn/LIfYZl6W2XrQAg1gjqrVjhzrHjjnDuJoFfI9pq9SGUheQqkQi7djC+YLwEorP B84TVVm1f5H6LESrjdMgDfoBZhzyu7D7RcFwPwDwf1hZ/PtJglgsmeTgD4wPHq/frH6t FjDg== 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=uGdhWHqWRMI84jefn8cEpuRtXUPIGUD4D8E3iV/HtQA=; b=0Uz7GBxZ6zcDfolLgsF2Vor3axH6VjkjKEcBfrmo0rv+IPtEySaBQma1xfrncStlNF j55dGWxLv9W4hobUKjXIj9Co7abFeYyQI6PFKjzvjgIjmS6iF8tFdgTEpx9bAmqj5YT7 2J/SKrl5ZJIYrpMfy1J++9N0v47q0bWKj0dpRdsm4Rn4pCVFuPTWQrEG0bulTRTv2hTI 9xZXadPscKKlG4E+vOr46aNt1+wBFJ8jEM2HwZOVDDvPTIJNdT7dz9irim5+9Kxj4MRF uq4BhFFH5ej9lefTF8ownRIDUsB6R+ZiXfNi8Dwn894AsLlPjK1Zlg0oAOzyze5cq3mz 7jrA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@orpaltech.com header.s=mailru header.b=B6CZhWm/; 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 v72si3256858pgb.333.2018.03.30.05.53.40; Fri, 30 Mar 2018 05:53:54 -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=B6CZhWm/; 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 S1751862AbeC3Mu5 (ORCPT + 99 others); Fri, 30 Mar 2018 08:50:57 -0400 Received: from smtp58.i.mail.ru ([217.69.128.38]:36822 "EHLO smtp58.i.mail.ru" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751118AbeC3Mu4 (ORCPT ); Fri, 30 Mar 2018 08:50:56 -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=uGdhWHqWRMI84jefn8cEpuRtXUPIGUD4D8E3iV/HtQA=; b=B6CZhWm/b92LbY+iyCzJ4WJgUerLVUu9nd4RIwucwX75/kU/e3shCdsDjHQdsy1kLZ74ZR+XtliNRZjJ/+OAWokWCk9CHAbVX1eZ2IGlEXp2oTRiJUHVGvVgfWVrEiKeE96uCTRZcycpz9zesWn3hr47/qqrE8S2atNLMKRYwl0=; Received: by smtp58.i.mail.ru with esmtpa (envelope-from ) id 1f1tUb-0001cV-Ab; Fri, 30 Mar 2018 15:50: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 v2 0/6] spi: Add support for DMA transfers in sun6i SPI driver Date: Fri, 30 Mar 2018 15:50:41 +0300 Message-Id: <20180330125047.13936-1-ssuloev@orpaltech.com> X-Mailer: git-send-email 2.16.2 Authentication-Results: smtp58.i.mail.ru; auth=pass smtp.auth=ssuloev@orpaltech.com smtp.mailfrom=ssuloev@orpaltech.com X-7FA49CB5: 0D63561A33F958A5A428AE05D2C4E58A26FD46E76099F7CDF94BCAF8487875F4725E5C173C3A84C3EBF4D8D28E8B6903343DA6383E413BE442F54486E6D6388DC4224003CC836476C0CAF46E325F83A50BF2EBBBDD9D6B0F5D41B9178041F3E72623479134186CDE6BA297DBC24807EABDAD6C7F3747799A X-Mailru-Sender: C5364AD02485212F3ACDC11E67D849173F43A4836EDFB444F9AF4BB23CD0907F069BFC61DABEEB110841D3AAAB1726C63DDE9B364B0DF289264D2CD8C2503E8C22A194DADEED8EEDCA01A23BA9CD1BE7ED14614B50AE0675 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. 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 | 507 ++++++++++++++++++++++++++++++++++++------------ 1 file changed, 381 insertions(+), 126 deletions(-) -- 2.16.2