All of lore.kernel.org
 help / color / mirror / Atom feed
From: Chee, Tien Fong <tien.fong.chee@intel.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v10 4/4] common: Generic firmware loader for file system
Date: Thu, 8 Mar 2018 05:03:18 +0000	[thread overview]
Message-ID: <1520485397.10181.12.camel@intel.com> (raw)
In-Reply-To: <CAPnjgZ1TkGBy6X7Ex8NLswhbjrZvK080yj2ZcvO=htphwwKe4g@mail.gmail.com>

On Tue, 2018-03-06 at 10:51 -0700, Simon Glass wrote:
> Hi,
> 
> On 5 March 2018 at 02:43,  <tien.fong.chee@intel.com> wrote:
> > 
> > From: Tien Fong Chee <tien.fong.chee@intel.com>
> > 
> > This is file system generic loader which can be used to load
> > the file image from the storage into target such as memory.
> > The consumer driver would then use this loader to program whatever,
> > ie. the FPGA device.
> > 
> > Signed-off-by: Tien Fong Chee <tien.fong.chee@intel.com>
> > Reviewed-by: Lothar Waßmann <LW@KARO-electronics.de>
> > ---
> >  common/Kconfig             |  10 ++
> >  common/Makefile            |   1 +
> >  common/fs_loader.c         | 353
> > +++++++++++++++++++++++++++++++++++++++++++++
> >  doc/README.firmware_loader |  86 +++++++++++
> >  include/fs_loader.h        |  28 ++++
> >  5 files changed, 478 insertions(+)
> >  create mode 100644 common/fs_loader.c
> >  create mode 100644 doc/README.firmware_loader
> >  create mode 100644 include/fs_loader.h
> This looks fine as a concept but I am not keen on the implementation.
> 
This patchset has been going through many rounds and a lot of time
spending in review, and it is already working and being tested. I still
have a lot subsequent patches pending on this patchset. I would suggest
to accept this patchset, then we can enhance it to driver model in
later.

> 1. It should use driver model (only) in U-Boot proper. If there is
> some SPL problem then add a specific function or feature for SPL.
We can doing this in later since it is require sometime to figure out
and testing.

> 2. It should not be necessary ti manually init subsystems - driver
> model does this for you
This is for initializing storage driver in very early SPL, where
loading from storage to configure some critical HW need to done first.

> 3. You can use the uclass name to find things
Yeah, once it is converted to driver model, we can use the uclass for
searching HW info in DTS.
> 
> Please let me know if you need more info.
> 
> Regards,
> Simon

  reply	other threads:[~2018-03-08  5:03 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-03-05  9:43 [U-Boot] [PATCH v10 0/4] Generic firmware loader tien.fong.chee at intel.com
2018-03-05  9:43 ` [U-Boot] [PATCH v10 1/4] spl: Remove static declaration on spl_mmc_find_device function tien.fong.chee at intel.com
2018-03-05  9:43 ` [U-Boot] [PATCH v10 2/4] cmd: ubifs: Move ubifs_initialized checking into cmd_ubifs_umount() tien.fong.chee at intel.com
2018-03-05 14:34   ` Tom Rini
2018-03-05  9:43 ` [U-Boot] [PATCH v10 3/4] cmd: ubifs: Factor out some checking codes into cmd_ubifs_mount() tien.fong.chee at intel.com
2018-03-05 14:34   ` Tom Rini
2018-03-05  9:43 ` [U-Boot] [PATCH v10 4/4] common: Generic firmware loader for file system tien.fong.chee at intel.com
2018-03-06 17:51   ` Simon Glass
2018-03-08  5:03     ` Chee, Tien Fong [this message]
2018-03-08 21:04       ` Simon Glass
2018-03-15  7:18         ` Chee, Tien Fong
2018-03-15 12:21           ` Tom Rini
2018-03-08 23:02       ` Wolfgang Denk

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=1520485397.10181.12.camel@intel.com \
    --to=tien.fong.chee@intel.com \
    --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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.