]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
Revert "spi: cadence_qspi: Fix odd byte write issue in STIG mode"
authorPrasanth Babu Mantena <p-mantena@ti.com>
Wed, 16 Jul 2025 07:04:07 +0000 (12:34 +0530)
committerMichal Simek <michal.simek@amd.com>
Thu, 24 Jul 2025 07:04:04 +0000 (09:04 +0200)
The buffer that is being used to write into the flash needs
to be handled properly with padding of 0xFF. The place that
this is done can be at a more generic place like spi-nor core.

This reverts commit cd9123507003e07b13e61d72e14e493bb338e827.

Signed-off-by: Prasanth Babu Mantena <p-mantena@ti.com>
Reviewed-by: Neha Malcom Francis <n-francis@ti.com>
Reviewed-by: Venkatesh Yadav Abbarapu <venkatesh.abbarapu@amd.com>
Link: https://lore.kernel.org/r/20250716070407.2082524-1-p-mantena@ti.com
Signed-off-by: Michal Simek <michal.simek@amd.com>
drivers/spi/cadence_qspi_apb.c

index 6f89d3add5d50f71c333bffefaebe5be40213051..4696c09f754b2361c568b30778bbcbdb58c8df5b 100644 (file)
@@ -558,9 +558,6 @@ int cadence_qspi_apb_command_write(struct cadence_spi_priv *priv,
        void *reg_base = priv->regbase;
        u8 opcode;
 
-       if (priv->dtr)
-               txlen += txlen & 1;
-
        if (priv->dtr)
                opcode = op->cmd.opcode >> 8;
        else