From: Eric Nelson <eric.nelson@boundarydevices.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH V2] i.MX: fsl_esdhc: allow use with cache enabled.
Date: Tue, 08 May 2012 16:31:46 -0700 [thread overview]
Message-ID: <4FA9ACE2.9010408@boundarydevices.com> (raw)
In-Reply-To: <CAKWjMd7n84w5Rur7UGokSD7cVOaBLA1y7B5OjQKLoN3B2Pe9Xg@mail.gmail.com>
Thanks Andy,
On 05/08/2012 03:59 PM, Andy Fleming wrote:
>> --- a/drivers/mmc/fsl_esdhc.c
>> +++ b/drivers/mmc/fsl_esdhc.c
>> @@ -190,6 +190,10 @@ static int esdhc_setup_data(struct mmc *mmc, struct mmc_data *data)
>> esdhc_clrsetbits32(®s->wml, WML_RD_WML_MASK, wml_value);
>> esdhc_write32(®s->dsaddr, (u32)data->dest);
>> } else {
>> + flush_dcache_range((ulong)data->src,
>> + (ulong)data->src+data->blocks
>> + *data->blocksize);
>> +
>
>
> This still won't work. I don't believe this is implemented at all on
> the FSL PowerPC parts that use this controller.
>
> At the very least, it needs to be protected by an ifdef.
>
It seems more generally useful to implement a PowerPC cache layer
than to instrument each driver that supports cache.
Do you know how many other peripherals are shared between ARM and PPC
that might be broken by cache operations?
>> if (wml_value> WML_WR_WML_MAX)
>> wml_value = WML_WR_WML_MAX_VAL;
>> if ((esdhc_read32(®s->prsstat)& PRSSTAT_WPSPL) == 0) {
>> @@ -249,7 +253,15 @@ static int esdhc_setup_data(struct mmc *mmc, struct mmc_data *data)
>> return 0;
>> }
>>
>> -
>> +static void check_and_invalidate_dcache_range
>> + (struct mmc_cmd *cmd,
>> + struct mmc_data *data) {
>
>
> This is non-standard formatting in U-Boot.
>
Ok. I can address that in a V3 once I know the direction.
Regards,
Eric
next prev parent reply other threads:[~2012-05-08 23:31 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <http://lists.denx.de/pipermail/u-boot/2012-March/#119312>
2012-04-26 0:28 ` [U-Boot] [PATCH V2] i.MX: fsl_esdhc: allow use with cache enabled Eric Nelson
2012-05-08 22:59 ` Andy Fleming
2012-05-08 23:31 ` Eric Nelson [this message]
2012-05-09 5:45 ` Stefano Babic
2012-05-15 12:58 ` Dirk Behme
2012-05-15 13:09 ` Anatolij Gustschin
2012-05-15 23:01 ` Eric Nelson
2012-05-15 23:35 ` Marek Vasut
2012-06-12 17:07 ` Stefano Babic
2012-06-12 17:14 ` Eric Nelson
2012-06-12 17:23 ` Marek Vasut
2012-07-11 6:29 ` Dirk Behme
2012-07-13 10:37 ` Marek Vasut
2012-07-20 2:32 ` Marek Vasut
2012-07-20 5:35 ` Dirk Behme
2012-07-20 8:53 ` Stefano Babic
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=4FA9ACE2.9010408@boundarydevices.com \
--to=eric.nelson@boundarydevices.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