Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp786365rwb; Tue, 27 Sep 2022 04:49:57 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4lntckLQAv342GPd3ZYK/Eg5YSeDxdsYfxjG87J/S3vAA17bJjEa72dEIiTZzZIGKrAx3P X-Received: by 2002:a17:907:984:b0:77f:4d95:9e2f with SMTP id bf4-20020a170907098400b0077f4d959e2fmr23033246ejc.176.1664279396848; Tue, 27 Sep 2022 04:49:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664279396; cv=none; d=google.com; s=arc-20160816; b=aqzR2IJ6Lv4EdtID0TXc5JB34DUZ16/MrI9QUlbwgOhScm39bPYWkoiy2YAs3N8Z+4 NwFWXJGhHsvwSff/7IPLqrW8AL+tudtzuEVjb22oQu7YnbKF9OJNq9i44ZIpIeVLKWSm qKavdrnS9gwpyzk69kepRVnmZOIk0eAQ0LEk8ZErJF2cGge4PxSDI57UPe8iq7GI8+fp JjwIZbCpxQFUktYhS1Fg4WhHbZfradj+WMrmkXdhRMH8cJ4efen2/qjqnJ3Xc/O/SLTz ww/AVOpcC5V7bijocf5svukPDzG0TFIAuaGkyqwoBZLGzN7Fq810SwOoe7IS1KK+aDjH ILnQ== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=h7GywIaLDpaaXMq+bfRFzam8dsivXNekzUyZgu12Jds=; b=LDcJrcM02pfL7KnJp9ubgMNVGcaHw7qi+ctSdLsVuUg97LE+5oz5+OolTYzb5NIEdP P3ZlzAgz0ODsHHV22Wcnd9SXhAlpSo4oApvYDd0tzu84ZQ9ZAWWu5GYzxUS/RkH6WgIL OOqYtDmzR+VWfarI4Vw05SEcdjP+FL0ilb5oNP9+7lHh+sXD0XTdAU5fXtNZfKYGGIec u78hkylHIpBj7X0jD6vcxMG+2edE7DZRIlz6WMaZCpvWZoIaCXmP/itjTWu4Tr9wsy48 qwa2ir+dJ4CehlMgncizBerbi/rK5DShM3iHsTVrBa/4HS609B59DySSJRQ84pFt8fZz Dptg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@axis.com header.s=axis-central1 header.b=UeNSzlgI; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=axis.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i10-20020a1709064fca00b0073d5f9aa5e9si1033139ejw.327.2022.09.27.04.49.31; Tue, 27 Sep 2022 04:49:56 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass (test mode) header.i=@axis.com header.s=axis-central1 header.b=UeNSzlgI; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=axis.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231991AbiI0LXc (ORCPT + 99 others); Tue, 27 Sep 2022 07:23:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53086 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230461AbiI0LWv (ORCPT ); Tue, 27 Sep 2022 07:22:51 -0400 Received: from smtp2.axis.com (smtp2.axis.com [195.60.68.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 768C513C86E; Tue, 27 Sep 2022 04:21:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=axis.com; q=dns/txt; s=axis-central1; t=1664277701; x=1695813701; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=h7GywIaLDpaaXMq+bfRFzam8dsivXNekzUyZgu12Jds=; b=UeNSzlgIq4jOf6qEanfXMu57mF/IXqYC6rVJRG7HwXpM0gNgdisqXZxU 12JtbyBrbZO8hMuOALT5rTRPXKTghWBIF8ImvU2redjCbpgrg27VSQooW FchmKGkZ/e1sjN96773hqopa4P3e0+dnv6mB4W/F9SpDkQ5YjGimshh33 ECwpyEdheytthxYuoCQ5J1QDCzz1LkGHQGVPdvRL9i/02V50BOw8fX4pM OgZLXFYlz1/Ztx6MJnIgfpTN22yvaBzU6GIcZVGm3EciUdY5hfNmY5fFf DwOYAuEylmLe1Vpsi6031tbo3NS/rdvMtIxpWF1CAOJvK+1XDuT6oa51a Q==; From: Vincent Whitchurch To: , , CC: , Vincent Whitchurch , , , , , Subject: [PATCH v2 0/4] spi: Fix DMA bugs in (not only) spi-s3c64xx Date: Tue, 27 Sep 2022 13:21:13 +0200 Message-ID: <20220927112117.77599-1-vincent.whitchurch@axis.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_PASS, SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org v2: - Drop merged patch adding new test to spi-loopback-test - Fix compiler warning in !HAS_DMA builds - Add support to split transfers to core This series fixes some bugs I found while running spi-loopback-test with spi-s3c64xx. The first problem (which I actually noticed while trying to fix the second problem with transfers >64KiB) seems to be a generic issue which affects several drivers so I fixed it in the core. The series has been tested on ARTPEC-8, which has a version of the IP similar to Exynos 7 and with 64 byte FIFOs (compatible with "tesla,fsd-spi"). Cc: alim.akhtar@samsung.com Cc: linux-spi@vger.kernel.org Cc: linux-kernel@vger.kernel.org Cc: linux-samsung-soc@vger.kernel.org Cc: linux-arm-kernel@lists.infradead.org Vincent Whitchurch (4): spi: Save current RX and TX DMA devices spi: Fix cache corruption due to DMA/PIO overlap spi: Split transfers larger than max size spi: s3c64xx: Fix large transfers with DMA drivers/spi/spi-s3c64xx.c | 9 +++ drivers/spi/spi.c | 137 ++++++++++++++++++++++++++++---------- include/linux/spi/spi.h | 4 ++ 3 files changed, 114 insertions(+), 36 deletions(-) -- 2.34.1