From: Stefano Babic <sbabic@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 2/2] fsl_esdhc: Remove cache snooping for i.MX
Date: Mon, 13 Aug 2012 17:16:14 +0200 [thread overview]
Message-ID: <50291A3E.4060002@denx.de> (raw)
In-Reply-To: <1193048219.2362030.1344868768606.JavaMail.root@advansee.com>
On 13/08/2012 16:39, Beno?t Th?baudeau wrote:
>>
>> Why don't you get rid of no_snoop at all ? Using ARCH_IMX is not
>> needed
>> anymore.
>
> Because I didn't know if disabling cache snooping could be a useful option or
> not for architectures other than i.MX, so I preferred to leave it just in case,
> even if it seems to be unused.
I introduce no_snoop when I adapted the driver for iMX. I do not see
PowerPC boards setting this bit.
And checking this, it seems to me that code in
arch/arm/cpu/armv7/imx-common/cpu.c is wrong, because cpu_mmc_init()
does not set the bit and the scr register is set (or could be set) even
for i.MX6 SOCs. Maybe writing at this adress does not cause problems,
but it seems wrong. You patch then fixes also this issue.
> But if you are certain that disabling cache snooping can not be useful for
> architectures other than i.MX (now or in the future, for boards in or out of
> tree), I can completely remove no_snoop. Just tell me.
IMHO you can drop it.
>
> Perhaps you have a rule such as "remove any stuff that is unused in mainstream".
It would be nice to have it ;-)
Best regards,
Stefano
--
=====================================================================
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic at denx.de
=====================================================================
next prev parent reply other threads:[~2012-08-13 15:16 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
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 [this message]
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=50291A3E.4060002@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