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 1323DC43381 for ; Fri, 22 Mar 2019 12:04:04 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id D6D902082C for ; Fri, 22 Mar 2019 12:04:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1553256243; bh=6f1s58YCh8Di8LAvWkPXxeYPt6ZHo8Yu4y+cO28Mmmw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=kXgfuMOEejdwYz7AMXWTgYx9BNJGYAPFnkPVohxXIBcJLbCKtqxdSD0OSDA9OhD2P NQRVxzZUav88ZwqTFpx+GWHudQpj3s1KCCdn7FulIAMxWisqWLU5heMxS8djh2l0Ju 3d3MV4mE+/Hqwg0uDJQ2MnaLGbMET9+zAZCCEtBQ= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388610AbfCVMEC (ORCPT ); Fri, 22 Mar 2019 08:04:02 -0400 Received: from mail.kernel.org ([198.145.29.99]:42328 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388257AbfCVMD4 (ORCPT ); Fri, 22 Mar 2019 08:03:56 -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 11F36204FD; Fri, 22 Mar 2019 12:03:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1553256235; bh=6f1s58YCh8Di8LAvWkPXxeYPt6ZHo8Yu4y+cO28Mmmw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=S2uTPTlg5BNSB3dWVk1fuic+7voPDGI0AmN9gi3IWn26j8ker55BDgoZgdIQlvNXY 47FdE29ulzOCc673OolILjZnOdL358pBUt9cqEaitaPIr22gcedzcYgAW68ORglaog r//h/adVq583M0UIsmozQ3gO9l8XFKb+jMHswmDQ= 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.19 149/280] spi: pxa2xx: Setup maximum supported DMA transfer length Date: Fri, 22 Mar 2019 12:15:02 +0100 Message-Id: <20190322111320.132010930@linuxfoundation.org> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190322111306.356185024@linuxfoundation.org> References: <20190322111306.356185024@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.19-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 @@ -1612,6 +1612,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; } }