From: Jean-Jacques Hiblot <jjhiblot@ti.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v4 08/10] mmc: make UHS and HS200 optional
Date: Wed, 6 Dec 2017 09:29:01 +0100 [thread overview]
Message-ID: <1ededae0-295d-e51c-79b6-82aa725ff874@ti.com> (raw)
In-Reply-To: <CAPnjgZ12nSKZWiLLqEqfn3hJ4tAgxheYUfqdV9B0yc1OCA2J7g@mail.gmail.com>
On 02/12/2017 04:29, Simon Glass wrote:
> Hi Jean-Jacques,
>
> On 29 November 2017 at 07:29, Jean-Jacques Hiblot <jjhiblot@ti.com> wrote:
>> Supporting USH and HS200 increases the code size as it brings in IO voltage
>> control, tuning and fatter data structures.
>> Use Kconfig configuration to select which of those features should be
>> built in.
>>
>> Signed-off-by: Jean-Jacques Hiblot <jjhiblot@ti.com>
>> ---
>> drivers/mmc/Kconfig | 46 +++++++++++++++++++++++++++++++++++
>> drivers/mmc/mmc-uclass.c | 4 +++
>> drivers/mmc/mmc.c | 63 +++++++++++++++++++++++++++++++++++++++++++++++-
>> include/mmc.h | 27 ++++++++++++++++++---
>> 4 files changed, 135 insertions(+), 5 deletions(-)
> A few things:
>
> - Can these default to on? I think going fast is best, and reducing
> functionality can be an option
This is conservative decision. The patches are less likely to break
untested platforms if this is not enabled if only because of the
increased footprint.
Most platforms won't benefit from it at first because the host driver
has to implement a few more callbacks to support those modes.
We can always default to 'y' later when more host support this.
> - Can you use if (IS_ENABLED) instead of #if within functions?
I wasn't sure about the ability of the compiler to always throw away
unused code this way. I'll give it a try.
>
> Regards,
> Simon
>
next prev parent reply other threads:[~2017-12-06 8:29 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-11-29 14:29 [U-Boot] [PATCH v4 00/10] mmc: fixes for HS200/UHS core support Jean-Jacques Hiblot
2017-11-29 14:29 ` [U-Boot] [PATCH v4 01/10] mmc: dump card and host capabilities if debug is enabled Jean-Jacques Hiblot
2017-12-02 3:29 ` Simon Glass
2017-11-29 14:29 ` [U-Boot] [PATCH v4 02/10] dm: mmc: update mmc_of_parse() Jean-Jacques Hiblot
2017-12-02 3:29 ` Simon Glass
2017-11-29 14:29 ` [U-Boot] [PATCH v4 03/10] mmc: Fixed a problem with old sd or mmc that do not support High speed Jean-Jacques Hiblot
2017-11-29 14:29 ` [U-Boot] [PATCH v4 04/10] mmc: all hosts support 1-bit bus width and legacy timings Jean-Jacques Hiblot
2017-11-29 14:29 ` [U-Boot] [PATCH v4 05/10] mmc: fix for old MMCs (below version 4) Jean-Jacques Hiblot
2017-12-02 3:29 ` Simon Glass
2017-11-29 14:29 ` [U-Boot] [PATCH v4 06/10] mmc: don't use malloc_cache_aligned() Jean-Jacques Hiblot
2017-12-02 3:29 ` Simon Glass
2017-11-29 14:29 ` [U-Boot] [PATCH v4 07/10] mmc: allow to compile out the error messages Jean-Jacques Hiblot
2017-11-29 18:43 ` Tom Rini
2017-11-29 14:29 ` [U-Boot] [PATCH v4 08/10] mmc: make UHS and HS200 optional Jean-Jacques Hiblot
2017-12-02 3:29 ` Simon Glass
2017-12-06 8:29 ` Jean-Jacques Hiblot [this message]
2017-11-29 14:29 ` [U-Boot] [PATCH v4 09/10] mmc: make optional the support for eMMMC hardware partitioning Jean-Jacques Hiblot
2017-11-29 18:44 ` Tom Rini
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=1ededae0-295d-e51c-79b6-82aa725ff874@ti.com \
--to=jjhiblot@ti.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox