]> git.dujemihanovic.xyz Git - u-boot.git/commit
nvme: Enable FUA
authorJon Lin <jon.lin@rock-chips.com>
Tue, 19 Oct 2021 02:40:53 +0000 (10:40 +0800)
committerTom Rini <trini@konsulko.com>
Wed, 17 Nov 2021 22:09:47 +0000 (17:09 -0500)
commitb6bfb8971dd039a60e1cff1895ab9be8be0915b3
treea31ed0ee38af9d590698568e299d202ce91fcdb0
parent4f2e2280862aabb22cbdb39d37d524702aa57bcc
nvme: Enable FUA

Most NVME devcies maintain data in internal cache for an uncertain
times, and u-boot has no method to force NVME to flush cache.
So this patch adds FUA to avoid data loss caused by power off after data
programming.

Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
Reviewed-by: Stefan Agner <stefan@agner.ch>
drivers/nvme/nvme.c