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 01FA0221DA5; Tue, 11 Mar 2025 15:41:17 +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=1741707678; cv=none; b=MOk3exfAdu+OrAlUzWROY5Jp2qbpD8tLv10dOtNPnLMw/pqZ5Iy7+C+Yrj4Q4I9TJZk4o1OpW3m8A1e18aOprJRLfiSrk6TMTwA2oh86Sd2iu1I38QmlMBJDr2IGl4p3rVK20jyV/qfMepFu+grGuajXlGnKsRWwtxu62+mvyfw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1741707678; c=relaxed/simple; bh=az7OzVH4Ixnw1dBikc6hJwtlA4VaPMbZA6RyZtEqoFQ=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=IBLY/zGLjnFilULUl4SWVD0oreU1D2AU6niTLDwzJKwEYCqbfIRuCC2gtxmSmruVP7yAgsJDa/+UNDWkOJVnAdfZp1LCn4YHNr1XoleuwHwglYDxNiNPrEn3x5oBDVAXtPJBERLbwObDLtQ7jINmRh5/E0hN1SNwiDd3w0zSmGs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=fIjXh7DI; 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="fIjXh7DI" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2164EC4CEE9; Tue, 11 Mar 2025 15:41:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1741707677; bh=az7OzVH4Ixnw1dBikc6hJwtlA4VaPMbZA6RyZtEqoFQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=fIjXh7DIzXwxd6ns0QHgTi+CmI02E1uDSKEWeOdPOjZkaTdkFY2ZYzhyC719mBvZl PI/lgRCJ8hF3piTKr34hKM8eUz8PfF5k+ns++vaWTjqFEMo0Kw5MY4O+HMpRYjOcg4 QtCVYQtAMsnb8K5BY+CGJFSd3EbKadIkvvpVwrOM= 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.10 445/462] spi-mxs: Fix chipselect glitch Date: Tue, 11 Mar 2025 16:01:51 +0100 Message-ID: <20250311145815.906636439@linuxfoundation.org> X-Mailer: git-send-email 2.48.1 In-Reply-To: <20250311145758.343076290@linuxfoundation.org> References: <20250311145758.343076290@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.10-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,