[PATCH 2/8] disk: Simplify disk_blk_read() using blk_read()

Tom Rini trini at konsulko.com
Wed Aug 23 16:42:05 CEST 2023

On Mon, Aug 14, 2023 at 01:46:42AM +0200, Marek Vasut wrote:

> The disk_blk_read() can be simplified using blk_read(), the only
> things which needs to be handled are the read offset based on the
> partition properties, and the block device ops which are coming
> from the parent udevice, not the partition udevice.
> The later is currently not implemented correctly as far as I can
> tell, since the current code extracts block device descriptor from
> the parent udevice which is OK, but extracts block device operations
> from the partition udevice, which does not seem OK.
> Switching to the blk_read() fixes that too.
> The dev_get_blk() usage is simplified using UCLASS_PARTITION check.
> Add non-confusing documentation what this really does.
> Signed-off-by: Marek Vasut <marek.vasut+renesas at mailbox.org>

Applied to u-boot/next, thanks!

-------------- 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/20230823/f2ffd636/attachment.sig>

More information about the U-Boot mailing list