]> www.infradead.org Git - users/sagi/nvme-cli.git/commit
nvme.c: Check Firmware Update Granularity in fwdl
authorSteven Seungcheol Lee <sc108.lee@samsung.com>
Fri, 3 Mar 2023 07:44:55 +0000 (16:44 +0900)
committerDaniel Wagner <wagi@monom.org>
Mon, 6 Mar 2023 10:21:35 +0000 (11:21 +0100)
commit493d64d3632edc642ab74593c587d729b17668b8
treeb5312502a1d78eb9e3a49411c09ed7524a403c4a
parent20b5279fb8afc1fe5b5a0700ff31c6b9dc0d89c6
nvme.c: Check Firmware Update Granularity in fwdl

FWUG indicates the granularity and alignment requirement of the
firmware image being updated by the Firmware Image Download command

FWUG is reported in 4 KiB units
0h indicates that no information on granularity is provided
FFh indicates there is no restriction
so when this is 0 value, use 4 KiB split as a default

Do not override when xfer is given by user
-> Support for ignore fwug in (fwug>mdts) case

Reviewed-by: Keith Busch <keith.busch@gmail.com>
Reported-by: Minsik Jeon <hmi.jeon@samsung.com>
Signed-off-by: Steven Seungcheol Lee <sc108.lee@samsung.com>
nvme.c