Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp1110340pxx; Tue, 27 Oct 2020 08:28:36 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx+OHDtCof8sF4zjwhfaO/49Nf6N0Wa8UOPGDEnKbSvdjnvXR2APatogrMVhFIJxNaUUSHx X-Received: by 2002:a17:906:8610:: with SMTP id o16mr2820815ejx.209.1603812516149; Tue, 27 Oct 2020 08:28:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603812516; cv=none; d=google.com; s=arc-20160816; b=GgkSDq/JTp6aWF/qPxLKI9X7kD+rm1k0bt/6NqrZ+hCWP/N+7nhOBqslbCbnCvTCGb ThpX7z7JQSCfa92YJa3tdg4Y3UGg6VlUbLF9BM3yLyuJndSqrO+cEg0W9jwAEGD6YUL2 KJjTGE8Ti6gQazesYtEip/2vN54Su2ON9qjD8HxYZpfDPZMpPlaLCQK2+kbVzAxbmReF 1z8dC7IVj3VyK/JKTN7hx29vMyJT3g3IeMHhcz2czjCgsZ8Cv1Qn84fYOA3sZjlOpF/W bEfRJNuFp7zQrWl6qRyI1BAntrRbwcKadc0fQkEnRdGOZwcqbqeBiTMr3j3wLF4w6yIm FliQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=XbW56V2PLNrqAWMyCce79Lf1Z51uioeQWDWZ6/fgzNk=; b=lYaWjKuWlLKySHR8NQ8M9r+P+y+gdumDWnZx+ADXQNBtkKOvp9O670b/9KWqCb7NWm HWbuUnTZ1se6oNdpxtmqg7obrGFCKVHWvLd8gzvDaBBED+FbE65sUWCQfyMOqwpVxXm3 K6TNf4CdbBOqqPVUM/wwQcVUQkJ76GqjTbMTCA+QzyoSlO1d41IcN/8iKQ+LURLGwXhh PPbCjbxIC6YMAvKAddctm46ovixYK5lI5iSX06+PVNfLWKV9EejSnluwLJ+hFKUO31v7 3i69hrKPaWn9VWM5x62f2P7k0dw1Aj/o7vqLuCdfA9Ru6MRVbVb8WvAs9bekfEdZm3Pc PXRA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=DMR+rvnb; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b14si1106786edz.568.2020.10.27.08.28.13; Tue, 27 Oct 2020 08:28:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=DMR+rvnb; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1760240AbgJ0OeO (ORCPT + 99 others); Tue, 27 Oct 2020 10:34:14 -0400 Received: from mail.kernel.org ([198.145.29.99]:59720 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2902347AbgJ0Oct (ORCPT ); Tue, 27 Oct 2020 10:32:49 -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 558F0206DC; Tue, 27 Oct 2020 14:32:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1603809168; bh=ewlaxnRaadBePgHr+xb/RrbkFOIArvJHc4Jxdh9EBn8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=DMR+rvnbd6egkpJjxp98383vBpcQC4He8FUffPPQ/rkkb5Qm/fAd9K9r7o5V7r4X7 7y3zXfyV6HVqZRNGsoHUJt/2H4cze/kmlwqbIRm1fZI1+4GjRVsnJMWMUt96wj23/v erPiFDtoT/WM/txw5hQb29ayPFRWE380jM0O+83M= 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=20Stelmach?= , Mark Brown , Sasha Levin Subject: [PATCH 5.4 100/408] spi: spi-s3c64xx: swap s3c64xx_spi_set_cs() and s3c64xx_enable_datapath() Date: Tue, 27 Oct 2020 14:50:38 +0100 Message-Id: <20201027135459.731814913@linuxfoundation.org> X-Mailer: git-send-email 2.29.1 In-Reply-To: <20201027135455.027547757@linuxfoundation.org> References: <20201027135455.027547757@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@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 7b7151ec14c8a..322f75f89c713 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) -- 2.25.1