Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp498085pxx; Wed, 28 Oct 2020 09:40:39 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzJ/LOJyq0mIFfXFhHwnnnswBwOO3+bi6FGR/p4AQcdMcEv02ds/vV+we3GCCOskKFwrn6W X-Received: by 2002:a05:6402:943:: with SMTP id h3mr8704183edz.88.1603903238803; Wed, 28 Oct 2020 09:40:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603903238; cv=none; d=google.com; s=arc-20160816; b=ipPi9v3dLqYALexKeknKvxJpkc5p417RnUyD/cuG/WLPwPxpj2JwVTThDgF38Zor8z j5S5GGD+ekrp60RZ1yjcIuowW1eqAYP0e59S8AHYd7rCZCpQsMKQVVmb2cGXxh5BUJkD Vs94D3h63Qc4TvvSnt8X3r91JS9RmAO4E9G3pLWkuFRY5SrC/AeLd/YWhaqMaBKEJ0nQ kgrHFRhQTV2OSIxjLkFyOogrpoDOG5HKpYjVwkECajmcL0tt2TWQnjXJ/Ce8mPbYdlVD KzFD0jBajv9UUgBIwW0Ahc9VoFFGopkGMm/eZ8CfTDlmBq8FLY2bA6MmFWYzGFokBV4R Fw1w== 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=e4sPFI01IA9OsYufDbNMgMQVJUm6NU6Sz77ClIjAEMY=; b=TXvRJYgA31AkNwlJD1qGek/Ta9TpZX6I3FEuupGuOyHU5HLrMNZK2KcQVS0xJa6pwQ QXb/k2NhE1KvL8BpzPbwlljaVE6gzukOHEiXu6qFcIlO970sSDT/5voHCkOtjF0vwYQn Vjwkqgez4DGiQ0AejSO5VVBJDqjHv37eTON7AknSc9UhvVbozgpsHLK7eV49OYmXM0Sd Qag3toWJ7BRoX2AQRS25ZOmLcPcftXWe0NrJGb+VpZkAvCU1+zW8/+abEzshv/+HcvNM 0V0yFy++047FvYiu0+ZwgLEPpKP71xMt5+ieWbA/rRQMuEfEOOrRBp9RcQqnkcup9vRe 5S5A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=DhJBSy4w; 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 gb38si1650347ejc.555.2020.10.28.09.40.15; Wed, 28 Oct 2020 09:40:38 -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=DhJBSy4w; 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 S1818207AbgJ0RSN (ORCPT + 99 others); Tue, 27 Oct 2020 13:18:13 -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=20Stelmach?= , 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 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 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) -- 2.25.1