Re: [resent RFC 08/22] dm: blk: add UCLASS_PARTITION

2021-10-04 Thread AKASHI Takahiro
On Mon, Oct 04, 2021 at 09:40:21PM +0300, Ilias Apalodimas wrote: > Hi Akashi-san, > > > > > [...] > > > +int blk_create_partitions(struct udevice *parent) > > +{ > > + int part, count; > > + struct blk_desc *desc = dev_get_uclass_plat(parent); > > + struct disk_partition info; > > +

Re: [resent RFC 08/22] dm: blk: add UCLASS_PARTITION

2021-10-04 Thread Ilias Apalodimas
Hi Akashi-san, > [...] > +int blk_create_partitions(struct udevice *parent) > +{ > + int part, count; > + struct blk_desc *desc = dev_get_uclass_plat(parent); > + struct disk_partition info; > + struct disk_part *part_data; > + char devname[32]; > + struct udevice

[resent RFC 08/22] dm: blk: add UCLASS_PARTITION

2021-10-03 Thread AKASHI Takahiro
UCLASS_PARTITION device will be created as a child node of UCLASS_BLK device. Signed-off-by: AKASHI Takahiro --- drivers/block/blk-uclass.c | 111 + include/blk.h | 9 +++ include/dm/uclass-id.h | 1 + 3 files changed, 121 insertions(+)