From: Wolfgang Denk <wd@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] [U-Boot, v2] env: mmc/fat/ext4: make sure that the MMC sub-system is initialized before using it
Date: Sun, 25 Feb 2018 09:53:10 +0100 [thread overview]
Message-ID: <20180225085310.248C324018D@gemini.denx.de> (raw)
In-Reply-To: <20180224215325.GQ4311@bill-the-cat>
Dear Tom Rini,
In message <20180224215325.GQ4311@bill-the-cat> you wrote:
>
> > Why do you ignore this NAK, and why do you add this patch so late in
> > the release cycle anyway?
>
> Sorry, didn't v2 address your concerns? We don't initialize the device
> because maybe we'll have env there, we initalize mmc because we need to
> check that it is there. Thanks!
No, it does not. As is, we initialize MMC in the EXT4 code (in
env_ext4_load()). If we go that route, we would have to add similar
init calls to all other file systemn load routines as well.
This does not make sense to me. This pollutes the code with
unrelated things - file system code should not depend on any
underlaying driver suport. It increases code size, makes the code
harder to maintain (if you need to change this, there is good
chances to forget the same change in other file systems), and there
is a good chance that in the end you will initialzie MMC even if you
don't use it.
We should keep the code clean and orthogonal. Driver init code has
no place in file system code.
If needed, the drivers have to make sure to auto--initialize on
first access.
I hold my NAK on this patch. It is the wrong thing to do.
Best regards,
Wolfgang Denk
--
DENX Software Engineering GmbH, Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
A meeting is an event at which the minutes are kept and the hours are
lost.
next prev parent reply other threads:[~2018-02-25 8:53 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-02-12 13:54 [U-Boot] [PATCH v2] env: mmc/fat/ext4: make sure that the MMC sub-system is initialized before using it Faiz Abbas
2018-02-19 5:32 ` Faiz Abbas
2018-02-20 22:03 ` [U-Boot] [U-Boot, " Tom Rini
2018-02-24 20:58 ` Wolfgang Denk
2018-02-24 21:53 ` Tom Rini
2018-02-25 8:53 ` Wolfgang Denk [this message]
2018-02-25 13:48 ` Tom Rini
2018-02-25 14:50 ` Wolfgang Denk
2018-02-25 18:35 ` Tom Rini
2018-02-25 15:18 ` Lukasz Majewski
2018-02-25 17:38 ` Wolfgang Denk
2018-02-26 14:29 ` Faiz Abbas
2018-02-28 9:08 ` Lukasz Majewski
2018-03-05 9:59 ` Faiz Abbas
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=20180225085310.248C324018D@gemini.denx.de \
--to=wd@denx.de \
--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