From: Nikolay Dimitrov <picmaster@mail.bg>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 1/6] usb: ehci: mx6: Add support for i.MX6SL
Date: Mon, 16 Jun 2014 17:33:09 +0300 [thread overview]
Message-ID: <539F0025.7010301@mail.bg> (raw)
In-Reply-To: <mailman.3.1402912801.24865.u-boot@lists.denx.de>
Hi Igor,
My personal opinion is that unless you intend to run the binary on
multiple IMX6 variants, there's no
need to do expensive checks in runtime, when you can do the same at
compile-time. For me it's the
same as choosing puts() vs printf() - you know at compile time whether
you need to print arguments
or not, so same with the USB controller base address - you know in
advance that you target a specific
CPU variant and not the other ones.
To a certain extent I agree that it would be awesome to have the same
code running on all IMX6
variants, but the run-time checks will increase somewhat the binary
footprint and U-Boot community has
already gone to great efforts to remove unnecessary bloat. My personal
assumption is that such generic
approach would be more tolerated in the Linux kernel.
Kind regards,
Nikolay
On 6/16/2014 1:00 PM, u-boot-request at lists.denx.de wrote:
> Message: 30 Date: Mon, 16 Jun 2014 10:05:08 +0300 From: Igor Grinberg
> <grinberg@compulab.co.il> Subject: Re: [U-Boot] [PATCH 1/6] usb: ehci:
> mx6: Add support for i.MX6SL To: Otavio Salvador
> <otavio@ossystems.com.br>, U-Boot Mailing List <u-boot@lists.denx.de>
> Cc: Marek Vasut <marex@denx.de>, Fabio Estevam
> <fabio.estevam@freescale.com> Message-ID:
> <539E9724.4020809@compulab.co.il> Content-Type: text/plain;
> charset=ISO-8859-1 Hmmm... Can't this be done dynamically? I mean...
> you can check the SoC type in runtime, right? And then substitute the
> correct address in a variable or so... I would really prefer such kind
> of things done in runtime.
> -- Regards, Igor.
next parent reply other threads:[~2014-06-16 14:33 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <mailman.3.1402912801.24865.u-boot@lists.denx.de>
2014-06-16 14:33 ` Nikolay Dimitrov [this message]
2014-06-16 14:53 ` [U-Boot] [PATCH 1/6] usb: ehci: mx6: Add support for i.MX6SL Marek Vasut
2014-06-17 16:21 ` Nikolay Dimitrov
2014-06-17 16:36 ` Marek Vasut
2014-06-17 6:26 ` Igor Grinberg
2014-06-17 17:49 ` Nikolay Dimitrov
2014-06-19 12:56 ` Igor Grinberg
2014-06-16 0:46 Otavio Salvador
2014-06-16 0:49 ` Marek Vasut
2014-06-16 1:11 ` Otavio Salvador
2014-06-16 1:28 ` Marek Vasut
2014-06-16 7:05 ` Igor Grinberg
2014-06-16 11:51 ` Otavio Salvador
2014-06-17 14:56 ` Stefano Babic
2014-06-17 14:58 ` Otavio Salvador
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=539F0025.7010301@mail.bg \
--to=picmaster@mail.bg \
--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