blk: set log2blksz in blk_create_device()
authorHeinrich Schuchardt <xypron.glpk@gmx.de>
Fri, 25 Oct 2019 10:15:31 +0000 (12:15 +0200)
committerHeinrich Schuchardt <xypron.glpk@gmx.de>
Wed, 30 Oct 2019 16:49:40 +0000 (17:49 +0100)
commitee5041451e467711b9a4b0e679ba9cc18d93400e
tree72a66323f3cef3bf634d35d5cfc3089dd402ff81
parentffc379b42c85466e1dd4c8fee8268801f26d2ab8
blk: set log2blksz in blk_create_device()

The ext4 file system requires log2blksz to be set. So when setting the
block size on the block descriptor we should fill this field too.

This fixes a problem with EFI block devices providing ext4 partitions, cf.
https://lists.denx.de/pipermail/u-boot/2019-October/387702.html.

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Reviewed-by: Simon Glass <sjg@chromium.org>
drivers/block/blk-uclass.c