]> git.baikalelectronics.ru Git - uboot.git/commit
nvme: Correct the prps per page calculation method
authorWesley Sheng <wesleyshenggit@sina.com>
Tue, 22 Jun 2021 03:34:21 +0000 (11:34 +0800)
committerBin Meng <bmeng.cn@gmail.com>
Wed, 23 Jun 2021 09:21:14 +0000 (17:21 +0800)
commitbcc337ae1b18f6d831aa3926ddd0e433dd56ec7b
treeeb9601cb30f209820292c8e05a824f4ffd7a3e58
parenta44dc5bf5f3c0f7ec30a2b76fa57733322bec955
nvme: Correct the prps per page calculation method

Each prp is 8 bytes, calculate the number of prps
per page should just divide page size by 8
there is no need to minus 1

Signed-off-by: Wesley Sheng <wesleyshenggit@sina.com>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
drivers/nvme/nvme.c