History log of /u-boot/include/nvmxip.h
Revision Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
# d223dcf3 22-Aug-2023 Marek Vasut <marek.vasut+renesas@mailbox.org>

drivers/mtd/nvmxip: Trigger post bind as probe on driver level

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@mailbox.org>

# dc3abd80 12-Jun-2023 Rui Miguel Silva <rui.silva@linaro.org>

nvmxip: move header to include

Move header to include to allow external code
to get the internal bdev structures to access
block device operations.

as at it, just add the UCLASS_NVMXIP string
so we get the correct output in partitions
listing.

Signed-off-by: Rui Miguel Silva <rui.silva@linaro.org>

# dc3abd80 12-Jun-2023 Rui Miguel Silva <rui.silva@linaro.org>

nvmxip: move header to include

Move header to include to allow external code
to get the internal bdev structures to access
block device operations.

as at it, just add the UCLASS_NVMXIP string
so we get the correct output in partitions
listing.

Signed-off-by: Rui Miguel Silva <rui.silva@linaro.org>