[PATCH v3 02/40] nvmxip: Avoid probing on boot

Tom Rini trini at konsulko.com
Thu Aug 15 18:57:13 CEST 2024


On Sun, Aug 11, 2024 at 08:51:31AM -0600, Simon Glass wrote:

> Devices should be probed when they are used, not before. Drop this
> boot-time probing.
> 
> Signed-off-by: Simon Glass <sjg at chromium.org>
> ---
> 
> (no changes since v1)
> 
>  drivers/mtd/nvmxip/nvmxip-uclass.c | 7 -------
>  1 file changed, 7 deletions(-)
> 
> diff --git a/drivers/mtd/nvmxip/nvmxip-uclass.c b/drivers/mtd/nvmxip/nvmxip-uclass.c
> index 58e8c3fb74b..d18bd0e3d6b 100644
> --- a/drivers/mtd/nvmxip/nvmxip-uclass.c
> +++ b/drivers/mtd/nvmxip/nvmxip-uclass.c
> @@ -53,14 +53,7 @@ int nvmxip_probe(struct udevice *udev)
>  	return 0;
>  }
>  
> -static int nvmxip_post_bind(struct udevice *udev)
> -{
> -	dev_or_flags(udev, DM_FLAG_PROBE_AFTER_BIND);
> -	return 0;
> -}
> -
>  UCLASS_DRIVER(nvmxip) = {
>  	.name	   = "nvmxip",
>  	.id	   = UCLASS_NVMXIP,
> -	.post_bind = nvmxip_post_bind,
>  };

Since this is essentially a corstone-1000 driver, adding the
maintainers.

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20240815/c20224d9/attachment.sig>


More information about the U-Boot mailing list