From patchwork Fri Oct 2 12:22:36 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lukasz Stelmach X-Patchwork-Id: 11813267 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 1B2F1139A for ; Fri, 2 Oct 2020 12:23:21 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id F1B882074B for ; Fri, 2 Oct 2020 12:23:20 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=samsung.com header.i=@samsung.com header.b="sPXSDLiv" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387959AbgJBMXT (ORCPT ); Fri, 2 Oct 2020 08:23:19 -0400 Received: from mailout2.w1.samsung.com ([210.118.77.12]:54169 "EHLO mailout2.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387902AbgJBMW6 (ORCPT ); Fri, 2 Oct 2020 08:22:58 -0400 Received: from eucas1p1.samsung.com (unknown [182.198.249.206]) by mailout2.w1.samsung.com (KnoxPortal) with ESMTP id 20201002122252euoutp0278f461e052e8942eb2cd43c490abaa24~6LFez2eOK2316423164euoutp02B for ; Fri, 2 Oct 2020 12:22:52 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.w1.samsung.com 20201002122252euoutp0278f461e052e8942eb2cd43c490abaa24~6LFez2eOK2316423164euoutp02B DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1601641372; bh=GKVD4VWm7Cvdyywwusf1QceeQU4MFWyu++yW9esxCI4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=sPXSDLivzlBAoP4u/0req4FO5fQBvD1f7WIEeDvB34nf9JdG4hbib/CAQ9/6VDhPm 4rUF25pss5LiKEwO7fzgKcIMq3RKJ24MCpKG/Oonjlu21qmBsND4zZWiYUG+OLhqsd TUW+s0mJSL/s6fYsrFy3+eao9wrdBq7uZjtKW5xo= Received: from eusmges1new.samsung.com (unknown [203.254.199.242]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20201002122252eucas1p272f6377959e656acbf34bdf10f758c0e~6LFeav30l1010810108eucas1p20; Fri, 2 Oct 2020 12:22:52 +0000 (GMT) Received: from eucas1p2.samsung.com ( [182.198.249.207]) by eusmges1new.samsung.com (EUCPMTA) with SMTP id 81.42.06456.C9B177F5; Fri, 2 Oct 2020 13:22:52 +0100 (BST) Received: from eusmtrp2.samsung.com (unknown [182.198.249.139]) by eucas1p2.samsung.com (KnoxPortal) with ESMTPA id 20201002122251eucas1p235d6797ae11f075a09841be64dc65236~6LFeGki8F2502325023eucas1p2G; Fri, 2 Oct 2020 12:22:51 +0000 (GMT) Received: from eusmgms2.samsung.com (unknown [182.198.249.180]) by eusmtrp2.samsung.com (KnoxPortal) with ESMTP id 20201002122251eusmtrp2141758dc5face4f2c7fb60924e8976c5~6LFeF48ra0225802258eusmtrp2I; Fri, 2 Oct 2020 12:22:51 +0000 (GMT) X-AuditID: cbfec7f2-809ff70000001938-92-5f771b9caf6d Received: from eusmtip1.samsung.com ( [203.254.199.221]) by eusmgms2.samsung.com (EUCPMTA) with SMTP id FD.B0.06017.B9B177F5; Fri, 2 Oct 2020 13:22:51 +0100 (BST) Received: from localhost (unknown [106.120.51.46]) by eusmtip1.samsung.com (KnoxPortal) with ESMTPA id 20201002122251eusmtip10ba9a7279409444c21952bae83208a39~6LFd8yOpk0635906359eusmtip1O; Fri, 2 Oct 2020 12:22:51 +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: Marek Szyprowski , =?utf-8?q?Bart=C5=82omiej_?= =?utf-8?q?=C5=BBo=C5=82nierkiewicz?= , =?utf-8?q?=C5=81ukasz_Stelmach?= Subject: [PATCH v3 2/9] spi: spi-s3s64xx: Add S3C64XX_SPI_QUIRK_CS_AUTO for Exynos3250 Date: Fri, 2 Oct 2020 14:22:36 +0200 Message-Id: <20201002122243.26849-3-l.stelmach@samsung.com> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20201002122243.26849-1-l.stelmach@samsung.com> MIME-Version: 1.0 Organization: Samsung R&D Institute Poland X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrDKsWRmVeSWpSXmKPExsWy7djP87pzpMvjDSbM5LVY/OM5k8XGGetZ LaY+fMJm0f/4NbPF+fMb2C1uHlrBaLHp8TVWi8u75rBZzDi/j8mi8eNNdou1R+6yW6za9YfR gcfj+pJPzB47Z91l99i0qpPNY/OSeo++LasYPT5vkgtgi+KySUnNySxLLdK3S+DKuPrnPWPB draKyz8vsDcwbmLtYuTkkBAwkdg37xVLFyMXh5DACkaJG5cnMUE4Xxglnh76zwzhfGaUeH/n FFzLxgm/GSESyxklpjQsYwZJCAk8Z5RYtkgexGYTcJToX3qCFaRIRGA7k8TEz+fBljALHGWU 2PzgKgtIlbBAhMTtRf1sIDaLgKrEk1mzwFbwClhLXJv0gxlinbxE+/LtYDWcAjYSJxdtY4Oo EZQ4OfMJ2Bx+AS2JNU3XwWxmoPrmrbPB7pYQuMcusfzWRHaIQS4S0/++ZoKwhSVeHd8CFZeR +L9zPlCcA8iul5g8yQyit4dRYtucHywQNdYSd879YgOpYRbQlFi/Sx8i7Cix89gjRohWPokb bwUhTuCTmLRtOjNEmFeio00IolpFYl3/HqiBUhK9r1YwTmBUmoXkmVlIHpiFsGsBI/MqRvHU 0uLc9NRiw7zUcr3ixNzi0rx0veT83E2MwDR1+t/xTzsYv15KOsQowMGoxMObcag0Xog1say4 MvcQowQHs5IIr9PZ03FCvCmJl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9gvc3sfB ta0o4zrL186SxnPcIrobrVy3zQmYOOtcp8HmmaGL+c+uCl0bzHs559HzslTZk/ytfU0friio SVmfeXn22dODp6y4bA4Jv5CT84rY90Jx6YEK+Z5pF5RYijMSDbWYi4oTAf5vxongAgAA X-CMS-MailID: 20201002122251eucas1p235d6797ae11f075a09841be64dc65236 X-Msg-Generator: CA X-RootMTR: 20201002122251eucas1p235d6797ae11f075a09841be64dc65236 X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20201002122251eucas1p235d6797ae11f075a09841be64dc65236 References: <20201002122243.26849-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. The vendor kernel for ARTIK5 handles CS in a simmilar way. Signed-off-by: Ɓukasz Stelmach Reviewed-by: Krzysztof Kozlowski --- drivers/spi/spi-s3c64xx.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/spi/spi-s3c64xx.c b/drivers/spi/spi-s3c64xx.c index 26c7cb79cd78..4a9ca9a99857 100644 --- a/drivers/spi/spi-s3c64xx.c +++ b/drivers/spi/spi-s3c64xx.c @@ -1379,6 +1379,7 @@ static struct s3c64xx_spi_port_config exynos4_spi_port_config = { .tx_st_done = 25, .high_speed = true, .clk_from_cmu = true, + .quirks = S3C64XX_SPI_QUIRK_CS_AUTO, }; static struct s3c64xx_spi_port_config exynos7_spi_port_config = {