[PATCH v2 1/7] nvme: Move block dev creation from uclass post_probe() to driver probe()

Bin Meng bmeng.cn at gmail.com
Wed Jun 23 11:22:28 CEST 2021


On Tue, Jun 22, 2021 at 9:16 PM Bin Meng <bmeng.cn at gmail.com> wrote:
>
> 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 at gmail.com>
>
> ---
>
> Changes in v2:
> - drop the nvme per-child platdata change
>
>  drivers/nvme/nvme-uclass.c | 30 ------------------------------
>  drivers/nvme/nvme.c        | 18 ++++++++++++++++++
>  2 files changed, 18 insertions(+), 30 deletions(-)
>

series applied to u-boot-x86, thanks!


More information about the U-Boot mailing list