From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 91D621586CB; Tue, 23 Jul 2024 18:43:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1721760222; cv=none; b=GTLNCP6RHJsTTU4473w8J1G3O1Wpa8HVYd0HzWkpQBaw9FiGOXSLO7H1PFi0JwSfvOOyJu2gjolPS0s1Oi+fJb6Fp6el5Q00vJkmqLgWickB1KEaetMpkknYMYtfwNelYk83k4N4I8FJyWtQcghoM+sB6jpR760ockwNxgh2mNc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1721760222; c=relaxed/simple; bh=LQWtrTf9M1pPuE0rh3eVzAJQVZPj4iDRja5lL9A38pc=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=Z/VBLhKBkSSih/rVKPOd6+7cYVr4Pkgg75s8xB75FYk4OaamoHwPvCc5y/1kS/3noUlT2Kj7RX+iNldO0BASbnrH19E4vQfaMaRrYhMMveqXwGUIcitLctlYjTPYSBVTviEQJQyeDp+h0zJIkM8oRwD6JdDQRLuKHup8UA2n0MQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=Ok14nLl1; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="Ok14nLl1" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0DBA2C4AF09; Tue, 23 Jul 2024 18:43:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1721760222; bh=LQWtrTf9M1pPuE0rh3eVzAJQVZPj4iDRja5lL9A38pc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Ok14nLl1SXVlubxUQN7f11sMB6x30ZUAcdsy0QHf3g8BauLMR/xeK3egFBaENprxX hUQn/zp9BIpUwwAa/BqqEVioFcEeDzR1xaImGIGeA2h1LIXL2QKIJocQq1QM1Ztg1/ Gyo2HKl/Ign3FKrc4WwX4skR8/FY1DT45blZstqQ= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, =?UTF-8?q?Uwe=20Kleine-K=C3=B6nig?= , Mark Brown , Sasha Levin Subject: [PATCH 6.9 144/163] spi: imx: Dont expect DMA for i.MX{25,35,50,51,53} cspi devices Date: Tue, 23 Jul 2024 20:24:33 +0200 Message-ID: <20240723180149.035344235@linuxfoundation.org> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20240723180143.461739294@linuxfoundation.org> References: <20240723180143.461739294@linuxfoundation.org> User-Agent: quilt/0.67 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 6.9-stable review patch. If anyone has any objections, please let me know. ------------------ From: Uwe Kleine-König [ Upstream commit ce1dac560a74220f2e53845ec0723b562288aed4 ] While in commit 2dd33f9cec90 ("spi: imx: support DMA for imx35") it was claimed that DMA works on i.MX25, i.MX31 and i.MX35 the respective device trees don't add DMA channels. The Reference manuals of i.MX31 and i.MX25 also don't mention the CSPI core being DMA capable. (I didn't check the others.) Since commit e267a5b3ec59 ("spi: spi-imx: Use dev_err_probe for failed DMA channel requests") this results in an error message spi_imx 43fa4000.spi: error -ENODEV: can't get the TX DMA channel! during boot. However that isn't fatal and the driver gets loaded just fine, just without using DMA. Signed-off-by: Uwe Kleine-König Link: https://patch.msgid.link/20240508095610.2146640-2-u.kleine-koenig@pengutronix.de Signed-off-by: Mark Brown Signed-off-by: Sasha Levin --- drivers/spi/spi-imx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/spi/spi-imx.c b/drivers/spi/spi-imx.c index 09b6c1b45f1a1..09c676e50fe0e 100644 --- a/drivers/spi/spi-imx.c +++ b/drivers/spi/spi-imx.c @@ -1050,7 +1050,7 @@ static struct spi_imx_devtype_data imx35_cspi_devtype_data = { .rx_available = mx31_rx_available, .reset = mx31_reset, .fifo_size = 8, - .has_dmamode = true, + .has_dmamode = false, .dynamic_burst = false, .has_targetmode = false, .devtype = IMX35_CSPI, -- 2.43.0