From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id CD42CC54EE9 for ; Fri, 16 Sep 2022 11:41:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:Subject:CC :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=7cf0a9rP6XUrggBVJynZIxUicLV2XnLCzIpS/DzkTz4=; b=sHCg5J/x99BoUa ge132/y7EuHMjHJEVjuDl8115vfoOTZAW41l45qO0XPsrSZe7t5ppmYnlIZM73boAKeWJHp7KZXfj 0dv2f2Cdi9Vj/IAUVQOouUnBJm+dawB0Cd2J5q17KF/2jMiktTakogtjSOVewEYFezpdRGWYL6chW COho+4P9R4KT45WAeZX5isoqdGJQrEFJPM/gaPWKi+R/g38daRHrWC4FVYw8amuQwWMzJZ7Ft0Tyg tvMbEU2lOxmD6Xe/eIYSohSDmRhvsLbbm9VpU62BpKM9LGKMSxJya4mlj00X8W7OubS46yvDCh20C OPH3dPqXYQoL3efm2/Jw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oZ9hW-00CmAB-BO; Fri, 16 Sep 2022 11:40:06 +0000 Received: from smtp2.axis.com ([195.60.68.18]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1oZ9hQ-00Cm3m-S8 for linux-arm-kernel@lists.infradead.org; Fri, 16 Sep 2022 11:40:03 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=axis.com; q=dns/txt; s=axis-central1; t=1663328400; x=1694864400; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=vf3z5znW0KooHgZEWacieLyXs7JGdr3NGOK/5vrCD1M=; b=aE2VEZTYeAOIV6orJV7eSDGpR7tGy1+zViPdJAx0HMPulyv6uroWkSlc tcR1EUZGlSXItMgEjf1C5raFqUvWSIGgk1aStN7Ne5AM1vpk4X/CNpbEP g26skDIp0ljR2eZaYzj86bgA9/gNYX0xqlDG+oMggOP6wt0hiy0go29o6 dcbtgvOt0jQ7Dkx6dAYBF6uH3wNBY5p2V1LZ8xq8cYlPvGqh5JcDmVZeC nSmf+YlTsHOmnGcxA1diWe5Sc5lf9A12T7ahIpsDDukdhmxJd4P2Qo9RT u86PI3n0Es/jOSH/+Ts+GthTOg4NOHQbCJ6mhfKgIx3HJslzZ6qTXw4cX w==; From: Vincent Whitchurch To: , , CC: , Vincent Whitchurch , , , , , Subject: [PATCH 0/4] spi: Fix DMA bugs in (not only) spi-s3c64xx Date: Fri, 16 Sep 2022 13:39:47 +0200 Message-ID: <20220916113951.228398-1-vincent.whitchurch@axis.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220916_044001_547472_E00D68EC X-CRM114-Status: GOOD ( 12.18 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org 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: spi-loopback-test: Add test to trigger DMA/PIO mixing spi: Save current RX and TX DMA devices spi: Fix cache corruption due to DMA/PIO overlap spi: s3c64xx: Fix large transfers with DMA drivers/spi/spi-loopback-test.c | 27 +++++++ drivers/spi/spi-s3c64xx.c | 10 +++ drivers/spi/spi.c | 126 +++++++++++++++++++++++--------- include/linux/spi/spi.h | 4 + 4 files changed, 131 insertions(+), 36 deletions(-) -- 2.34.1 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel