From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.0 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1F698C43381 for ; Fri, 22 Mar 2019 11:50:29 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id E27AF20693 for ; Fri, 22 Mar 2019 11:50:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1553255429; bh=zNHxrDCzzTGXyWzIbh+YUc8zEP0gB3RtcMwKA5KoZ+o=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=yfmPesV2pHAX++kwyFT33nNUqq/faAzxVv4E3v6WyuAbiPQ9yd2HpuHxb7FYS5otN 6Tbv03N+mtDDEu60f+BXYeCsLZRFry7lCeggn/i8q/BmxWQwwDIqUmEgIpyeC+m363 8CZ75lFXm2/BlcgM4K2ySHMcKAD8eAFN0IYxGPvk= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732651AbfCVLu1 (ORCPT ); Fri, 22 Mar 2019 07:50:27 -0400 Received: from mail.kernel.org ([198.145.29.99]:54196 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732636AbfCVLuY (ORCPT ); Fri, 22 Mar 2019 07:50:24 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id DC4B120693; Fri, 22 Mar 2019 11:50:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1553255423; bh=zNHxrDCzzTGXyWzIbh+YUc8zEP0gB3RtcMwKA5KoZ+o=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=xtz5VTOw6LbgDTw2E0PZKi++4dreMlJaJcfcpK7+o1TbuGkNZLf2s2Xh2JMX+0qXa 8OoHyabBnvzfOqx1xDuVFyYTQ5DH/aPXyK4eiN0yoqI1PTKlAi2XhTKYZIhm5yUUap NHHvokud9cURC1TpRCn8bC/mp0YH1XUkYtyDVB94= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Andy Shevchenko , Mark Brown Subject: [PATCH 4.14 087/183] spi: pxa2xx: Setup maximum supported DMA transfer length Date: Fri, 22 Mar 2019 12:15:15 +0100 Message-Id: <20190322111248.051861889@linuxfoundation.org> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190322111241.819468003@linuxfoundation.org> References: <20190322111241.819468003@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review X-Patchwork-Hint: ignore MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.14-stable review patch. If anyone has any objections, please let me know. ------------------ From: Andy Shevchenko commit ef070b4e4aa25bb5f8632ad196644026c11903bf upstream. When the commit b6ced294fb61 ("spi: pxa2xx: Switch to SPI core DMA mapping functionality") switches to SPI core provided DMA helpers, it missed to setup maximum supported DMA transfer length for the controller and thus users mistakenly try to send more data than supported with the following warning: ili9341 spi-PRP0001:01: DMA disabled for transfer length 153600 greater than 65536 Setup maximum supported DMA transfer length in order to make users know the limit. Fixes: b6ced294fb61 ("spi: pxa2xx: Switch to SPI core DMA mapping functionality") Signed-off-by: Andy Shevchenko Signed-off-by: Mark Brown Cc: stable@vger.kernel.org Signed-off-by: Greg Kroah-Hartman --- drivers/spi/spi-pxa2xx.c | 1 + 1 file changed, 1 insertion(+) --- a/drivers/spi/spi-pxa2xx.c +++ b/drivers/spi/spi-pxa2xx.c @@ -1698,6 +1698,7 @@ static int pxa2xx_spi_probe(struct platf platform_info->enable_dma = false; } else { master->can_dma = pxa2xx_spi_can_dma; + master->max_dma_len = MAX_DMA_LEN; } }