[PATCH v3 0/2] scsi: Replace SYNC_CACHE with FUA for scsi write

Balaji Selvanathan balaji.selvanathan at oss.qualcomm.com
Thu Apr 16 11:10:45 CEST 2026


This series replaces the SYNC_CACHE approach with FUA (Force Unit
Access) to prevent data loss during board resets while avoiding
system hangs during large sparse image flashing operations.

The previous SYNC_CACHE implementation caused timeouts and hangs
when flashing large sparse images because it issued cache sync
commands after every write operation. The FUA approach achieves
the same data integrity goal by setting the FUA bit in 
WRITE10 commands.

Signed-off-by: Balaji Selvanathan <balaji.selvanathan at oss.qualcomm.com>
---
Changes in v3:
- Changed commit description strcture and added SoB
- Link to v2: https://lore.kernel.org/u-boot/20260122083954.2722972-1-balaji.selvanathan@oss.qualcomm.com/

Changes in v2:
- Reverted "scsi: sync cache on write" commit and then set the FUA bit
- Link to v1: https://lore.kernel.org/u-boot/20260105052526.593017-1-balaji.selvanathan@oss.qualcomm.com/

---
Aswin Murugan (1):
      scsi: Enable FUA bit in WRITE10 commands

Balaji Selvanathan (1):
      Revert "scsi: sync cache on write"

 drivers/scsi/scsi.c | 24 +-----------------------
 1 file changed, 1 insertion(+), 23 deletions(-)
---
base-commit: 70fd0c3bb7c26d42f24d10145dd5f3168ac92eac
change-id: 20260416-enable_fua-67b6aadc2cad

Best regards,
-- 
Balaji Selvanathan <balaji.selvanathan at oss.qualcomm.com>



More information about the U-Boot mailing list