From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (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 652D337BE84; Fri, 7 Aug 2026 14:55:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786114530; cv=none; b=PIH5Jt+yH08PqoGgKnlrCq/GrDb0Z2vpu0d1BAX9t/PZ1tz96ynN4r3+CauykF5iPr5N3sWCXv4hM4s8kKSwG6o0RohZJjsm3CG4fgU7A2cyHKWvYJMdxqJWoAoc0fF9ny0ug2qGovI9r8EzNVTKGY1bvICR0t+hqQ54XHXrTFc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786114530; c=relaxed/simple; bh=LfhsGf0zPcQxVnMg83F4ev+n5Pbi/BjtrEubSZHRh7E=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=DlNKxm1ABcRwqZIlU2M718jc7SjMzn9qb6Gde8o07mLT3sQIgSug8LTpnPgIrASjq1+YBmq+eRMEsbWrEv1l95i+/5pgJNrtyxS7PNdksGrTXSd/UbCNhj5edRnzkxJ/s9+6HH3KpuxC1GF+7tb4JK7NhCnjcLZIr6YxzaSPbx4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=OJhXsYHK; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="OJhXsYHK" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5280C1F000E9; Fri, 7 Aug 2026 14:55:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1786114524; bh=9rXgqcK/IDDNP7NKvhy2FSpN1vr+JlS4MwO5tR8PkVc=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=OJhXsYHKZ2M5KgMhLvDz0xv+dOjhfAmw/v8N+xCUcjkf3JMn/j2MZqvEmcMUmHYW2 pp5KxkrGkElAhPFr5EBVsSVGQwyVIkiAlY0Gg/r917FQfgpXTgq5hR+qektp3KishE DNTo5RYXRJ6+r7EHx8ADta3E3XPnSzkzfGlI2CKM= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Rodrigo Alencar <455.rodrigo.alencar@gmail.com>, Jun Guo , Mark Brown Subject: [PATCH 6.12 267/337] spi: spi-cadence: enable SPI_CONTROLLER_MUST_TX Date: Fri, 7 Aug 2026 16:37:50 +0200 Message-ID: <20260807143424.331011714@linuxfoundation.org> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20260807143418.516897842@linuxfoundation.org> References: <20260807143418.516897842@linuxfoundation.org> User-Agent: quilt/0.69 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 6.12-stable review patch. If anyone has any objections, please let me know. ------------------ From: Jun Guo commit f6b625639e39bc384a7bddbf134a698d40258b3b upstream. During an SPI read operation, even if the xspi->txbuf passed to the cdns_spi_writerinterface is empty, it is still necessary to call cdns_spi_write(xspi, CDNS_SPI_TXD, txw); otherwise, the read operation will fail to obtain data correctly due to a lack of clocks. Fixes: 4e00135b2dd1 ("spi: spi-cadence: supports transmission with bits_per_word of 16 and 32") Reported-by: Rodrigo Alencar <455.rodrigo.alencar@gmail.com> Closes: https://lore.kernel.org/all/lbijvnnwsnddonmm5pveqzap6iibxhl4maneq43x4j6w64dev6@u75qhm5cwiob/ Signed-off-by: Jun Guo Link: https://patch.msgid.link/20260115091924.844179-1-jun.guo@cixtech.com Signed-off-by: Mark Brown Signed-off-by: Greg Kroah-Hartman --- drivers/spi/spi-cadence.c | 1 + 1 file changed, 1 insertion(+) --- a/drivers/spi/spi-cadence.c +++ b/drivers/spi/spi-cadence.c @@ -735,6 +735,7 @@ static int cdns_spi_probe(struct platfor ctlr->unprepare_transfer_hardware = cdns_unprepare_transfer_hardware; ctlr->mode_bits = SPI_CPOL | SPI_CPHA; ctlr->bits_per_word_mask = SPI_BPW_MASK(8); + ctlr->flags = SPI_CONTROLLER_MUST_TX; if (of_device_is_compatible(pdev->dev.of_node, "cix,sky1-spi-r1p6")) ctlr->bits_per_word_mask |= SPI_BPW_MASK(16) | SPI_BPW_MASK(32);