From: stefano babic <sbabic@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH] fsl_esdhc: Add no-snoop config for default init
Date: Sat, 11 Aug 2012 23:57:48 +0200 [thread overview]
Message-ID: <5026D55C.50906@denx.de> (raw)
In-Reply-To: <746717980.2303098.1344707942239.JavaMail.root@advansee.com>
Am 11/08/2012 19:59, schrieb Beno?t Th?baudeau:
> Hi Stefano,
>
Hi Beno?t,
> That could be a solution. However, that would have to be done for i.MX25 and
> i.MX35 too (I have patches to add/fix eSDHC support for these that I will post
> shortly), which means more duplicated code that should rather be centralized
> somewhere.
Ok, I'll wait for your patches ;-)
>
>>> On i.MX, the patch could also be improved by not making this option
>>> available,
>>> but behaving as if it were set.
>>
>> Right. It should not be configurable. We know that the i.MXs have no
>> snoop cabability.
>
> The solution I would like would be to have some automatic ARCH_IMX (or ARCH_MXC)
> config like on Linux. Then the fsl_esdhc driver could use this config to remove
> all cache snooping stuff from its code and from struct fsl_esdhc_cfg.
>
> The i.MX board files would have to be updated to no longer refer to the no_snoop
> field. struct fsl_esdhc_cfg would then have only one field for i.MX, but this is
> not really an issue.
Yes, this is no an issue.
>
> ARCH_IMX could be defined in all imx-regs.h files. Or the fsl_esdhc driver could
> simply use a #if testing all the supported CONFIG_MX*.
Let the fsl_edhc checking for CONFIG_MX* results clear for us today, but
nobody will remember after some times and if the checked CONFIG_MX* will
be changed, it will have drawbacks not so evident on MMC. I prefer the
first solution, adding an entry to imx-regs.h.
Best regards,
Stefano Babic
--
=====================================================================
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-0 Fax: +49-8142-66989-80 Email: office at denx.de
=====================================================================
next prev parent reply other threads:[~2012-08-11 21:57 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-08-10 21:13 [U-Boot] [PATCH] fsl_esdhc: Add no-snoop config for default init Benoît Thébaudeau
2012-08-11 10:43 ` Stefano Babic
2012-08-11 14:39 ` Benoît Thébaudeau
2012-08-11 17:25 ` Stefano Babic
2012-08-11 17:59 ` Benoît Thébaudeau
2012-08-11 21:57 ` stefano babic [this message]
2012-08-13 14:18 ` [U-Boot] [PATCH 1/2] imx: Define architecture identifier Benoît Thébaudeau
2012-08-13 14:18 ` [U-Boot] [PATCH 2/2] fsl_esdhc: Remove cache snooping for i.MX Benoît Thébaudeau
2012-08-13 14:24 ` Stefano Babic
2012-08-13 14:39 ` Benoît Thébaudeau
2012-08-13 15:16 ` Stefano Babic
2012-08-13 15:53 ` [U-Boot] [PATCH v2 " Benoît Thébaudeau
2012-08-13 17:28 ` [U-Boot] [PATCH v3 " Benoît Thébaudeau
2012-08-13 16:32 ` [U-Boot] [PATCH 1/2] imx: Define architecture identifier Otavio Salvador
2012-08-13 17:27 ` [U-Boot] [PATCH v3 1/2] mxc: " Benoît Thébaudeau
2012-09-01 7:35 ` Stefano Babic
2012-08-12 6:25 ` [U-Boot] [PATCH] fsl_esdhc: Add no-snoop config for default init Stefano Babic
2012-08-12 13:52 ` Benoît Thébaudeau
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=5026D55C.50906@denx.de \
--to=sbabic@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