From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751133AbdALVeP (ORCPT ); Thu, 12 Jan 2017 16:34:15 -0500 Received: from mail-pf0-f172.google.com ([209.85.192.172]:35030 "EHLO mail-pf0-f172.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750762AbdALVeM (ORCPT ); Thu, 12 Jan 2017 16:34:12 -0500 From: Kevin Hilman To: David Lechner Cc: Mark Brown , nsekhar@ti.com, linux-spi@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [RESEND] spi: davinci: Allow device tree devices to use DMA Organization: BayLibre References: <1483673177-31516-1-git-send-email-david@lechnology.com> Date: Thu, 12 Jan 2017 13:34:10 -0800 In-Reply-To: <1483673177-31516-1-git-send-email-david@lechnology.com> (David Lechner's message of "Thu, 5 Jan 2017 21:26:17 -0600") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (darwin) MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org David Lechner writes: > This allows SPI devices specified in a device tree to use DMA when the > master controller. Enabling DMA for spi-davinci isn't quite ready yet since this driver is blindly using dma_map_single() on addresses passed in. MTD seems to use vmalloc'd buffers, which cannot be passed direclty to dma_map_single(). I thinks this driver needs an update to use spi_map_buf() to be able to handle vmalloc'd buffers before always enabling DMA. Kevin