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 BEF1323370D; Mon, 10 Mar 2025 18:23:25 +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=1741631005; cv=none; b=tDlUPDIcafThwrugXAceFbl1jeCEwqa5+5XwmrRCWNUzosh5Y95MedYF8PAy0IKraB+jmDwZcaSE5Sj0S8UtU9YktJlPWqlsJq47AEUCLMIBi7T1M4xOSeH5f0rpps8HxXB+sYVbEzgxcclRn8f6Qml7KO1vSEW9YlwHrm8Uezg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1741631005; c=relaxed/simple; bh=B1UPVlftmDr0lophh2mLRpgpB5GFpyEh3nOdxOIYPIg=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=IOIC89rHmozlxmE8XergX9xEy26IVBSRo9rjIMoKcLCmlvvnWpJO7McZYjxCmwhJ4YlcGCjWFDsh1OF0ykLZf5rO38w9iNYsN1Lxx82Kb/Ke1iMWYtqQHRDjOiCl5blrkb+nAayZLCye+KvzZ/WyK5pR3MjjVtn0ujuWOEVCNS0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=YlhY/Kjk; 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="YlhY/Kjk" Received: by smtp.kernel.org (Postfix) with ESMTPSA id D5908C4CEE5; Mon, 10 Mar 2025 18:23:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1741631005; bh=B1UPVlftmDr0lophh2mLRpgpB5GFpyEh3nOdxOIYPIg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=YlhY/Kjkw0dZNrRoDPdHf0DUGKGis39wgLp5yok6kucOFCbokbi2icmnl7ByiCUvL 8Vnsi5HAgtpXlnh3G8h6adAaF3f7Jvsk6GrPJFpp9zr93SZwzu6Fo66AJwVbnGJsrA pEZxI/gZcrzTEGGmWWmA2mOv8VnmxNy5u3UEf9O8= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Ralf Schlatterbeck , Mark Brown , Stefan Wahren Subject: [PATCH 5.15 609/620] spi-mxs: Fix chipselect glitch Date: Mon, 10 Mar 2025 18:07:35 +0100 Message-ID: <20250310170609.576675956@linuxfoundation.org> X-Mailer: git-send-email 2.48.1 In-Reply-To: <20250310170545.553361750@linuxfoundation.org> References: <20250310170545.553361750@linuxfoundation.org> User-Agent: quilt/0.68 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-Transfer-Encoding: 8bit 5.15-stable review patch. If anyone has any objections, please let me know. ------------------ From: Ralf Schlatterbeck commit 269e31aecdd0b70f53a05def79480f15cbcc0fd6 upstream. There was a change in the mxs-dma engine that uses a new custom flag. The change was not applied to the mxs spi driver. This results in chipselect being deasserted too early. This fixes the chipselect problem by using the new flag in the mxs-spi driver. Fixes: ceeeb99cd821 ("dmaengine: mxs: rename custom flag") Signed-off-by: Ralf Schlatterbeck Link: https://msgid.link/r/20240202115330.wxkbfmvd76sy3a6a@runtux.com Signed-off-by: Mark Brown Cc: Stefan Wahren Signed-off-by: Greg Kroah-Hartman --- drivers/spi/spi-mxs.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) --- a/drivers/spi/spi-mxs.c +++ b/drivers/spi/spi-mxs.c @@ -39,6 +39,7 @@ #include #include #include +#include #define DRIVER_NAME "mxs-spi" @@ -252,7 +253,7 @@ static int mxs_spi_txrx_dma(struct mxs_s desc = dmaengine_prep_slave_sg(ssp->dmach, &dma_xfer[sg_count].sg, 1, (flags & TXRX_WRITE) ? DMA_MEM_TO_DEV : DMA_DEV_TO_MEM, - DMA_PREP_INTERRUPT | DMA_CTRL_ACK); + DMA_PREP_INTERRUPT | MXS_DMA_CTRL_WAIT4END); if (!desc) { dev_err(ssp->dev,