From patchwork Fri May 31 09:44:31 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andy Shevchenko X-Patchwork-Id: 13681471 Received: from fgw20-7.mail.saunalahti.fi (fgw20-7.mail.saunalahti.fi [62.142.5.81]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id F307918EB1 for ; Fri, 31 May 2024 09:47:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=62.142.5.81 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717148829; cv=none; b=ES8xMAAILDCoD3mbc5EDv+z7uhWnVXceaV/LXemQy4X8xdyU+R5ytrp7xnz0k4hsHBJ0a16boaNbSkqsIFADEppJjZ41hLLCXHBNKcnpz+6JPE6WVP7kX0FA8CfJqpoe84MjyKLNPVpbhKiAl89fYagXARmmROjzkV8kXxn7RM4= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717148829; c=relaxed/simple; bh=v2i+5oujx3B3U03PNEXhRz8hllVMowViGOQ746GnLCU=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=RJRFlM+Oq6RCSRAYLuGkvPSI6ldNPnPjuizNguXidmw8c6uRo7zQUBcIyGmAQ0r9vea9/QllupQieKNNJbsXZOW044i9Ijo5SrtIXFn3PUBH+JdOqZ8rWovLFBhy+TBeGG6KquU+IYcBCL+A6U3Nzjqolh8oYL9oAjNPoF0vhmE= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com; spf=fail smtp.mailfrom=gmail.com; arc=none smtp.client-ip=62.142.5.81 Authentication-Results: smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=fail smtp.mailfrom=gmail.com Received: from localhost (88-113-26-230.elisa-laajakaista.fi [88.113.26.230]) by fgw21.mail.saunalahti.fi (Halon) with ESMTP id b9c3de8b-1f32-11ef-aafc-005056bdd08f; Fri, 31 May 2024 12:46:59 +0300 (EEST) From: Andy Shevchenko To: Mark Brown , linux-spi@vger.kernel.org, linux-kernel@vger.kernel.org Cc: =?utf-8?q?N=C3=ADcolas_F_=2E_R_=2E_A_=2E_Prado?= , Neil Armstrong , Andy Shevchenko Subject: [PATCH v1 0/2] spi: Make dummy SG handling robust Date: Fri, 31 May 2024 12:44:31 +0300 Message-ID: <20240531094658.1598969-1-andy.shevchenko@gmail.com> X-Mailer: git-send-email 2.45.1 Precedence: bulk X-Mailing-List: linux-spi@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 There's an unreliable code to handle DMA mappings on unidirection transfers. This series does two things: - it reverts the seemingly unnecessary change - it reworks dummy SG list handling There is no need to backport that AFAIU, but no harm to apply for v6.10 aka the current release cycle. Guys, please test these. Andy Shevchenko (2): spi: Revert "Check if transfer is mapped before calling DMA sync APIs" spi: Do not rely on the SG table and respective API implementations drivers/spi/spi.c | 46 +++++++++++++++++----------------------------- 1 file changed, 17 insertions(+), 29 deletions(-)