[PATCH v2 1/5] drivers/mtd/nvmxip: Trigger post bind as probe on driver level

Tom Rini trini at konsulko.com
Thu Aug 31 18:26:31 CEST 2023


On Wed, Aug 23, 2023 at 02:18:17AM +0200, Marek Vasut wrote:

> Perform all the block device creation only once, after the driver itself
> successfully bound. Do not do this in uclass post bind, as this might be
> triggered multiple times. For example the ut_dm_host test triggers this
> and triggers a memory leak that way, since there are now multiple block
> devices created using the blk_create_devicef() .
> 
> To retain the old probe-on-boot behavior, set DM_FLAG_PROBE_AFTER_BIND
> flag in uclass post_bind callback, so the driver model would probe the
> driver at the right time.
> 
> Rename the function as well, to match similar functions in
> other block-related subsystems, like the mmc one.
> 
> Signed-off-by: Marek Vasut <marek.vasut+renesas at mailbox.org>

Applied to u-boot/next, thanks!

-- 
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/20230831/d7269a02/attachment.sig>


More information about the U-Boot mailing list