From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933098AbdCaL5m (ORCPT ); Fri, 31 Mar 2017 07:57:42 -0400 Received: from lelnx194.ext.ti.com ([198.47.27.80]:45298 "EHLO lelnx194.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932729AbdCaL5j (ORCPT ); Fri, 31 Mar 2017 07:57:39 -0400 From: Vignesh R To: Mark Brown CC: , , , Vignesh R Subject: [PATCH 0/2] spi-ti-qspi: Handle vmalloc'd buffers Date: Fri, 31 Mar 2017 17:19:48 +0530 Message-ID: <20170331114950.21489-1-vigneshr@ti.com> X-Mailer: git-send-email 2.11.0 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 First patch, adds can_dma() like interface for spi_flash_read() interface, this will enable controller drivers to selectively use DMA based on buffer type, alignment, size or other limitations. Second patch implements bounce buffer support for ti-qspi driver to handle buffers that are not DMA'able, like vmalloc'd buffers that belong to LPAE region. This is required to work with UBIFS Vignesh R (2): spi: Add can_dma like interface for spi_flash_read spi: spi-ti-qspi: Use bounce buffer if read buffer is not DMA'ble drivers/spi/spi-ti-qspi.c | 64 +++++++++++++++++++++++++++++++++++++++++------ drivers/spi/spi.c | 2 +- include/linux/spi/spi.h | 4 +++ 3 files changed, 62 insertions(+), 8 deletions(-) -- 2.11.0