]> git.baikalelectronics.ru Git - uboot.git/commit
nvme: Move block dev creation from uclass post_probe() to driver probe()
authorBin Meng <bmeng.cn@gmail.com>
Tue, 22 Jun 2021 13:16:17 +0000 (21:16 +0800)
committerBin Meng <bmeng.cn@gmail.com>
Wed, 23 Jun 2021 09:21:14 +0000 (17:21 +0800)
commit68f7008711286fc44a9969f8b6a0e40e0893f715
tree4546e94d2546718ed4a11e37493ca0dc62aa9d52
parent041673d4cb525bad4429e3fc129a90bf11ce532b
nvme: Move block dev creation from uclass post_probe() to driver probe()

At present the block device creation happens in the NVMe uclass
driver post_probe() phase. In preparation to support multiple
namespaces, we should issue namespace identify before creating
block devices but that touches the underlying hardware hence it
is not appropriate to do such in the uclass driver post_probe().
Let's move it to driver probe() phase instead.

Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
drivers/nvme/nvme-uclass.c
drivers/nvme/nvme.c