From: Igor Grinberg <grinberg@compulab.co.il>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 1/6] usb: ehci: mx6: Add support for i.MX6SL
Date: Tue, 17 Jun 2014 09:26:54 +0300 [thread overview]
Message-ID: <539FDFAE.9060005@compulab.co.il> (raw)
In-Reply-To: <539F0025.7010301@mail.bg>
Hi Nikolay,
On 06/16/14 17:33, Nikolay Dimitrov wrote:
> Hi Igor,
>
> My personal opinion is that unless you intend to run the binary on multiple IMX6 variants,
That is exactly what we do already (code is on the way) and IMO what
we should aim for.
> there's no
> need to do expensive checks in runtime, when you can do the same at compile-time.
Why do you think it is expensive? Any benchmarks?
Also, the solution is what Marek already said, in short:
do the check once and store the result for future use...
> 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.
For me it is just an artificial complication which prevents single binary for
i.MX6 based boards.
Don't get me wrong, I think that in your board code you can choose which
approach you want, whether it will be single or multi binary, but this
is i.MX6 (and possibly future i.MX*) USB code which can be used on many
i.MX6 boards.
>
> 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.
Again, what are we talking about? A couple of bytes?
> My personal assumption is that such generic
> approach would be more tolerated in the Linux kernel.
For Linux kernel this is the only acceptable way now.
--
Regards,
Igor.
next prev parent reply other threads:[~2014-06-17 6:26 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 ` [U-Boot] [PATCH 1/6] usb: ehci: mx6: Add support for i.MX6SL Nikolay Dimitrov
2014-06-16 14:53 ` Marek Vasut
2014-06-17 16:21 ` Nikolay Dimitrov
2014-06-17 16:36 ` Marek Vasut
2014-06-17 6:26 ` Igor Grinberg [this message]
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=539FDFAE.9060005@compulab.co.il \
--to=grinberg@compulab.co.il \
--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