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 C374CC43381 for ; Fri, 22 Mar 2019 12:14:48 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 9351E2082C for ; Fri, 22 Mar 2019 12:14:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1553256888; bh=3+xXc4gJC1oEtoP6qWtLsdbJqal2T2LUUO5YRggEmKw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=pKOPMleIwG/tohX5IRh9qrpGCCsFtSgkJ55P6zLimMmyFErurTL0mMVdBRXwOtPYf GFX6JwXn2Fc9jkD/FrvQg8tOA2JsLTotUhL+Pocd4QeFwnlPK8rx0kchc9FJ/rASIJ a2ZAUZcz3DX+mX59VK+4bVxkG/hgYmiNvhAf//XU= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389587AbfCVMOq (ORCPT ); Fri, 22 Mar 2019 08:14:46 -0400 Received: from mail.kernel.org ([198.145.29.99]:52982 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389939AbfCVMOn (ORCPT ); Fri, 22 Mar 2019 08:14:43 -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 231492083D; Fri, 22 Mar 2019 12:14:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1553256882; bh=3+xXc4gJC1oEtoP6qWtLsdbJqal2T2LUUO5YRggEmKw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=BIqpgYkf0EXDMchisZVzWHaMMySQEhDrPA4cxzqIeUbpV/5Y8Iy9PVb695S2LE3UN Q/ca4yYLImuKtyOfE+HEPRXlSZIRJF4VyHKWbRay+bcqo41i5vLLz2Y8Ts6+rzcbZ9 29RGZCwlLRHyf8zIfooL76QnwB3ZKpAknFKwzjo8= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Andy Shevchenko , Mark Brown Subject: [PATCH 5.0 066/238] spi: pxa2xx: Setup maximum supported DMA transfer length Date: Fri, 22 Mar 2019 12:14:45 +0100 Message-Id: <20190322111302.510792477@linuxfoundation.org> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190322111258.383569278@linuxfoundation.org> References: <20190322111258.383569278@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: stable-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org 5.0-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 @@ -1696,6 +1696,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; } }