Received: by 2002:a05:6500:2018:b0:1fb:9675:f89d with SMTP id t24csp342148lqh; Fri, 31 May 2024 03:04:55 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUuSexQSb36jPaFtBe6TP+6jf3O8Jz3szd7ArmB/uQqVjOHHNdWutneZ1vHumtiA2NMjHA+Nj2lwFF9ovXCTV+14oO7W5pzRio5DOgavg== X-Google-Smtp-Source: AGHT+IEUevMYJo2shO4eds4vTlfuEYzDoWIBjf0IJIj0A492yi0dsJLNeYu3XXhv6p5d9CmL6tKM X-Received: by 2002:a05:6a21:329f:b0:1af:f6b9:e3e4 with SMTP id adf61e73a8af0-1b26f0f1a85mr1754349637.12.1717149895631; Fri, 31 May 2024 03:04:55 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717149895; cv=pass; d=google.com; s=arc-20160816; b=swGoUnEHTSe21f7BIMsWjQHkl7dtbOP4c3C1tc7/rL8f42IkPjRH/nFNxsAqODjdeG mYqnpaejL7u+PUD6vjdn1QpIcighBt1XmFVVkKpYTdkoZIGPt0awlF+h44CpcTB6ImEn S8t2SmDeHTNBXq7A8eaurg51kWANWn17cEh95s6AO9oLerzKF0TT0fvpOLZmXru9LyWT uDxiTC8XWi0BHa5sGQrRUE1enxpojtyY+/60FS4vOt5f39xkgoH0nbD12lyal1i9SDf1 ZkG3Xge2H5BFASdHLjupKh3wBRx52ghjQ0/35Jw6FA9NZNbNdGSWLGQnVg2uYyjCUJIy k5cA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from; bh=5idhZB2Oi2XLsNrLNzCybPdP2Y2hpuwjFmTxWpxsna4=; fh=IVRe5WRDg8pKQWapptU00myq1r/BA2fcQxPkFx2l8gs=; b=rWYqzirRe5JgTLUfkIfCxQvHt+hsNICEHZegwqvwJ12LEB2Qz38m03laLdxr7Sxgtr maMF67h8dxh+mEtEQ9zjCEquO4el2zHfDxCBl5qtLlnIF63D3pOAk3H06ACgMHmpZq88 qtizLcQU5mDeIbJ9YbwKwyRvgzRyrWGju6RmEIbs9Zu4RR9gFJtnQO+lPwh62LOz+S0C i3C9ApLQyvEaOUjy84sNDSMnvM5lHDkKl27O/YP0jW2hrWZWU2GDbN6qPzsn1OvAOIs5 bLpUjQxCxg2QUzepEcWbVNIMadkWLin21C6D4uTl5oQkn7Z0n7ZL6PghBEeCAyvY/sdb JqYw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-196619-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-196619-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id 98e67ed59e1d1-2c1c27e2a25si1386172a91.82.2024.05.31.03.04.55 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 31 May 2024 03:04:55 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-196619-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-196619-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-196619-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id C76E3B2232D for ; Fri, 31 May 2024 09:47:16 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0310C13E3F8; Fri, 31 May 2024 09:47:10 +0000 (UTC) Received: from fgw22-7.mail.saunalahti.fi (fgw22-7.mail.saunalahti.fi [62.142.5.83]) (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 190871CD35 for ; Fri, 31 May 2024 09:47:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=62.142.5.83 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717148829; cv=none; b=QkUUy24ORLqV9y1EGpRht68yf5GSvr13I4PG8roYknEtmRncndU9lyU5HLv6NzccxRE+PVB4HuUDbjI2ULNjflF1iZyxzdNbDP48ETf53s6NFyi2SlbgiHlTNP5eESQgUxS5aNJHS3SjFxa7fDy7Sn4VoA4g5hpT8QwLm1Y6jJA= 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.83 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=20F=20=2E=20R=20=2E=20A=20=2E=20Prado?= , 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-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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(-) -- 2.45.1