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 <[email protected]>

Applied to u-boot/next, thanks!

-- 
Tom

Attachment: signature.asc
Description: PGP signature

Reply via email to