From patchwork Thu Oct 1 15:21:40 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lukasz Stelmach X-Patchwork-Id: 11811703 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id BD4716CB for ; Thu, 1 Oct 2020 15:23:28 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id A37C320719 for ; Thu, 1 Oct 2020 15:23:28 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=samsung.com header.i=@samsung.com header.b="j8KQVKiT" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732610AbgJAPWt (ORCPT ); Thu, 1 Oct 2020 11:22:49 -0400 Received: from mailout1.w1.samsung.com ([210.118.77.11]:40825 "EHLO mailout1.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732563AbgJAPWs (ORCPT ); Thu, 1 Oct 2020 11:22:48 -0400 Received: from eucas1p2.samsung.com (unknown [182.198.249.207]) by mailout1.w1.samsung.com (KnoxPortal) with ESMTP id 20201001152247euoutp01c8ee2a368367329237b658fc534bafa5~555R5z6Tq2734527345euoutp01B for ; Thu, 1 Oct 2020 15:22:47 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.w1.samsung.com 20201001152247euoutp01c8ee2a368367329237b658fc534bafa5~555R5z6Tq2734527345euoutp01B DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1601565767; bh=BzRv9HJb8VaLbApMv1Dmlo0K8h3v8k5w87oec/cJk9M=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=j8KQVKiTtz1A3cik9vmEwSiDfPx+0BY/sNQSxsgcjwKJgFQRLAueuiqQczFJVhm+t wLhCHkBY5k1d32Ymh7d0tpLQr9EraWzkQSR5eapaFlN5d/2+zXFNw1Gxc8BRZl8Bbx rT1/Wtc+IHEZOKzYYf6JEH1BP3qpJ/B69BheqMxw= Received: from eusmges1new.samsung.com (unknown [203.254.199.242]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20201001152246eucas1p2b7cb48c0444b0d6205f7e39ca90f4e08~555RhktW31941319413eucas1p2C; Thu, 1 Oct 2020 15:22:46 +0000 (GMT) Received: from eucas1p2.samsung.com ( [182.198.249.207]) by eusmges1new.samsung.com (EUCPMTA) with SMTP id 66.2F.06456.644F57F5; Thu, 1 Oct 2020 16:22:46 +0100 (BST) Received: from eusmtrp1.samsung.com (unknown [182.198.249.138]) by eucas1p1.samsung.com (KnoxPortal) with ESMTPA id 20201001152246eucas1p1b4155ab4f06a39cc88f205b4a7cd47f9~555RM524D1726917269eucas1p1R; Thu, 1 Oct 2020 15:22:46 +0000 (GMT) Received: from eusmgms2.samsung.com (unknown [182.198.249.180]) by eusmtrp1.samsung.com (KnoxPortal) with ESMTP id 20201001152246eusmtrp1a47e25d5e19d404120af06da9ae4192f~555RMHHyf2671526715eusmtrp1h; Thu, 1 Oct 2020 15:22:46 +0000 (GMT) X-AuditID: cbfec7f2-7efff70000001938-43-5f75f446f3bf Received: from eusmtip2.samsung.com ( [203.254.199.222]) by eusmgms2.samsung.com (EUCPMTA) with SMTP id E3.D5.06017.644F57F5; Thu, 1 Oct 2020 16:22:46 +0100 (BST) Received: from localhost (unknown [106.120.51.46]) by eusmtip2.samsung.com (KnoxPortal) with ESMTPA id 20201001152246eusmtip2756b8b5264661f95b4e9dd99b220fe8b~555RCdfgq0103301033eusmtip25; Thu, 1 Oct 2020 15:22:46 +0000 (GMT) From: =?utf-8?q?=C5=81ukasz_Stelmach?= To: Kukjin Kim , Krzysztof Kozlowski , Tomasz Figa , Andi Shyti , Mark Brown , linux-spi@vger.kernel.org, linux-samsung-soc@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Cc: m.szyprowski@samsung.com, b.zolnierkie@samsung.com, =?utf-8?q?=C5=81ukas?= =?utf-8?q?z_Stelmach?= Subject: [PATCH v2 RESEND 1/9] spi: spi-s3c64xx: swap s3c64xx_spi_set_cs() and s3c64xx_enable_datapath() Date: Thu, 1 Oct 2020 17:21:40 +0200 Message-Id: <20201001152148.29747-2-l.stelmach@samsung.com> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20201001152148.29747-1-l.stelmach@samsung.com> MIME-Version: 1.0 Organization: Samsung R&D Institute Poland X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrNKsWRmVeSWpSXmKPExsWy7djP87puX0rjDX7+MrdY/OM5k8XGGetZ LaY+fMJm0f/4NbPF+fMb2C1uHlrBaLHp8TVWi8u75rBZzDi/j8mi8eNNdou1R+6yW6za9YfR gcfj+pJPzB47Z91l99i0qpPNY/OSeo++LasYPT5vkgtgi+KySUnNySxLLdK3S+DKeHI2p+Ap e0XLm2usDYx72boYOTkkBEwkXk/bB2RzcQgJrGCUmPvqKguE84VR4tS3KcwQzmdGiZ8/prPC tHw71QKVWM4oMW3SdXYI5zmjxLfGuYwgVWwCjhL9S0+wgiREBLYzSUz8fJ4FJMEsUCrRs/MQ 2HZhgSyJey9fg9ksAqoS83uWMIHYvALWEk2nbjFDrJOXaF++HayGU8BG4tzEw2wQNYISJ2c+ AZvJL6AlsabpOtR8eYnmrbPBzpMQuMcucWjFByaIQS4SN452QQ0Vlnh1fAs7hC0jcXpyD1Az B5BdLzF5khlEbw+jxLY5P1ggaqwl7pz7xQZSwyygKbF+lz5E2FHiw/15zBCtfBI33gpCnMAn MWnbdKgwr0RHmxBEtYrEuv49UAOlJHpfrWCcwKg0C8kzs5A8MAth1wJG5lWM4qmlxbnpqcWG eanlesWJucWleel6yfm5mxiBSer0v+OfdjB+vZR0iFGAg1GJhzfjUGm8EGtiWXFl7iFGCQ5m JRFep7On44R4UxIrq1KL8uOLSnNSiw8xSnO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fVvYwvjgg8TfHjiRN9X+/9h22GT1Py o42rrki02qu5fzH0XVJ7/sGh+Yu3bHD04fxwu3aHEktxRqKhFnNRcSIALolJXd4CAAA= X-CMS-MailID: 20201001152246eucas1p1b4155ab4f06a39cc88f205b4a7cd47f9 X-Msg-Generator: CA X-RootMTR: 20201001152246eucas1p1b4155ab4f06a39cc88f205b4a7cd47f9 X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20201001152246eucas1p1b4155ab4f06a39cc88f205b4a7cd47f9 References: <20200821161401.11307-1-l.stelmach@samsung.com> <20201001152148.29747-1-l.stelmach@samsung.com> Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org 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 --- 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 924b24441789..26c7cb79cd78 100644 --- a/drivers/spi/spi-s3c64xx.c +++ b/drivers/spi/spi-s3c64xx.c @@ -685,11 +685,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)