]> git.dujemihanovic.xyz Git - u-boot.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)
commit84344258f23fb9ac5abe7383c909f8606ac767b6
tree4546e94d2546718ed4a11e37493ca0dc62aa9d52
parentc3e52c71bb0e7e5e34fadafbfcc34bce9899c100
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