From patchwork Tue Oct 27 13:48:10 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Greg KH X-Patchwork-Id: 307183 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=-12.8 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH, MAILING_LIST_MULTI, SIGNED_OFF_BY, SPF_HELO_NONE, 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 AAE8DC388F9 for ; Tue, 27 Oct 2020 17:16:54 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 641BB21D24 for ; Tue, 27 Oct 2020 17:16:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1603819014; bh=wzF3ZetxS9qg6GDDrSBxdYTO/+74QbOo4CCmok46B2I=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=kvPNZ8TpBnv9+4OM/iK7Tz9y+UyzazAwY0ReoQ3u93t0ohT7+HXrzHwlkzVGdfaJ6 FE45/KvvqmNqcvPkn2IVJu5sEuA9Rcu36WEcruiQ5r91YfRdU8A5Du0nyV1K48vEs3 RNI+beq5cquMhJUfB+nyPlcXPzSdhhwYDasRW2Hk= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1818008AbgJ0RQu (ORCPT ); Tue, 27 Oct 2020 13:16:50 -0400 Received: from mail.kernel.org ([198.145.29.99]:56420 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2900812AbgJ0Ozu (ORCPT ); Tue, 27 Oct 2020 10:55:50 -0400 Received: from localhost (83-86-74-64.cable.dynamic.v4.ziggo.nl [83.86.74.64]) (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 8D4FB22264; Tue, 27 Oct 2020 14:55:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1603810550; bh=wzF3ZetxS9qg6GDDrSBxdYTO/+74QbOo4CCmok46B2I=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=DhJBSy4wsbOcp56D2mHr7N75ZVXYEZCpXEsClRm1UZGQPY+Zbh5wXUWch3Bn2idwG 8FGv9XbawA89RA64BtntDBIpch4B005kWpIpyT6dmPVCBqITTXPboMBnJWQLhRi8Ap niKiJwbS/cuMeeP0JPWGOszaPrefi96GxZ2zigVY= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Krzysztof Kozlowski , =?utf-8?q?=C5=81ukasz_Stelmach?= , Mark Brown , Sasha Levin Subject: [PATCH 5.8 147/633] spi: spi-s3c64xx: swap s3c64xx_spi_set_cs() and s3c64xx_enable_datapath() Date: Tue, 27 Oct 2020 14:48:10 +0100 Message-Id: <20201027135529.591492156@linuxfoundation.org> X-Mailer: git-send-email 2.29.1 In-Reply-To: <20201027135522.655719020@linuxfoundation.org> References: <20201027135522.655719020@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org From: Łukasz Stelmach [ Upstream commit 581e2b41977dfc2d4c26c8e976f89c43bb92f9bf ] Fix issues with DMA transfers bigger than 512 bytes on Exynos3250. Without the patches such transfers fail to complete. This solution to the problem is found in the vendor kernel for ARTIK5 boards based on Exynos3250. Reviewed-by: Krzysztof Kozlowski Signed-off-by: Łukasz Stelmach Link: https://lore.kernel.org/r/20201002122243.26849-2-l.stelmach@samsung.com Signed-off-by: Mark Brown Signed-off-by: Sasha Levin --- drivers/spi/spi-s3c64xx.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/spi/spi-s3c64xx.c b/drivers/spi/spi-s3c64xx.c index cf67ea60dc0ed..fb5e2ba4b6b97 100644 --- a/drivers/spi/spi-s3c64xx.c +++ b/drivers/spi/spi-s3c64xx.c @@ -678,11 +678,11 @@ static int s3c64xx_spi_transfer_one(struct spi_master *master, sdd->state &= ~RXBUSY; sdd->state &= ~TXBUSY; - s3c64xx_enable_datapath(sdd, xfer, use_dma); - /* Start the signals */ s3c64xx_spi_set_cs(spi, true); + s3c64xx_enable_datapath(sdd, xfer, use_dma); + spin_unlock_irqrestore(&sdd->lock, flags); if (use_dma)