public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: AKASHI Takahiro <takahiro.akashi@linaro.org>
To: Simon Glass <sjg@chromium.org>
Cc: Ilias Apalodimas <ilias.apalodimas@linaro.org>,
	Heinrich Schuchardt <heinrich.schuchardt@canonical.com>,
	Masahisa Kojima <masahisa.kojima@linaro.org>,
	U-Boot Mailing List <u-boot@lists.denx.de>
Subject: Re: [PATCH 2/2] efi_loader: fill media_id from block device descriptor
Date: Mon, 26 Sep 2022 09:05:08 +0900	[thread overview]
Message-ID: <20220926000508.GA7925@laputa> (raw)
In-Reply-To: <CAPnjgZ1tt4Jr1CH8raD_8NJ6ay-s5JXGU6S+naQLZ453L-=bCw@mail.gmail.com>

On Sun, Sep 25, 2022 at 08:15:36AM -0600, Simon Glass wrote:
> Hi,
> 
> On Fri, 23 Sept 2022 at 01:08, Ilias Apalodimas
> <ilias.apalodimas@linaro.org> wrote:
> >
> > On Thu, 15 Sept 2022 at 23:02, Heinrich Schuchardt
> > <heinrich.schuchardt@canonical.com> wrote:
> > >
> > > Fill the media ID in the block IO protocol from the block device descriptor
> > > of the driver model.
> > >
> > > Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
> > > ---
> > >  lib/efi_loader/efi_disk.c | 6 +-----
> > >  1 file changed, 1 insertion(+), 5 deletions(-)
> > >
> > > diff --git a/lib/efi_loader/efi_disk.c b/lib/efi_loader/efi_disk.c
> > > index 73745ccaa0..35790aa86d 100644
> > > --- a/lib/efi_loader/efi_disk.c
> > > +++ b/lib/efi_loader/efi_disk.c
> > > @@ -476,11 +476,7 @@ static efi_status_t efi_disk_add_dev(
> > >         /* Fill in EFI IO Media info (for read/write callbacks) */
> > >         diskobj->media.removable_media = desc->removable;
> > >         diskobj->media.media_present = 1;
> > > -       /*
> > > -        * MediaID is just an arbitrary counter.
> > > -        * We have to change it if the medium is removed or changed.
> > > -        */
> > > -       diskobj->media.media_id = 1;
> > > +       diskobj->media.media_id = desc->media_id;
> > >         diskobj->media.block_size = desc->blksz;
> > >         diskobj->media.io_align = desc->blksz;
> > >         if (part)
> > > --
> > > 2.37.2
> > >
> >
> > Acked-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
> 
> Still a NAK from me as we should not add this to the desc thing.

In addition, I have already raised my concern about Heinrich's approach:
https://lists.denx.de/pipermail/u-boot/2022-September/494764.html

-Takahiro Akashi


> Ilias, we talked about getting the next step going for integrating EFI
> properly with driver model, which should sort this out.
> 
> Regards,
> SImon

  reply	other threads:[~2022-09-26  0:05 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-09-15 20:02 [PATCH 0/2] efi_loader: provide media ID Heinrich Schuchardt
2022-09-15 20:02 ` [PATCH 1/2] dm: blk: assign media ID to block devices Heinrich Schuchardt
2022-09-16  1:30   ` Simon Glass
2022-09-16  6:41     ` Heinrich Schuchardt
2022-09-16 20:29       ` Simon Glass
2022-09-15 20:02 ` [PATCH 2/2] efi_loader: fill media_id from block device descriptor Heinrich Schuchardt
2022-09-23  7:07   ` Ilias Apalodimas
2022-09-25 14:15     ` Simon Glass
2022-09-26  0:05       ` AKASHI Takahiro [this message]
2022-09-16  0:58 ` [PATCH 0/2] efi_loader: provide media ID AKASHI Takahiro
2022-09-26  6:06   ` Heinrich Schuchardt
2022-09-27  1:51     ` AKASHI Takahiro
2022-09-27  6:53       ` Heinrich Schuchardt
2022-09-28  1:54         ` Simon Glass
2022-09-28  6:57           ` Heinrich Schuchardt
2022-09-28  7:24             ` AKASHI Takahiro
2022-09-28 16:27               ` Simon Glass

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20220926000508.GA7925@laputa \
    --to=takahiro.akashi@linaro.org \
    --cc=heinrich.schuchardt@canonical.com \
    --cc=ilias.apalodimas@linaro.org \
    --cc=masahisa.kojima@linaro.org \
    --cc=sjg@chromium.org \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox