Re: [RFC][PATCH] MMC: Use write timeout value as read from CSR

From: Matt Fleming
Date: Tue Sep 09 2008 - 03:59:34 EST

2008/9/9 Pierre Ossman <drzeus-mmc@xxxxxxxxx>:
> On Tue, 9 Sep 2008 08:34:27 +0100
> "Matt Fleming" <mattjfleming@xxxxxxxxxxxxxx> wrote:
>> 2008/9/9 Pierre Ossman <drzeus-mmc@xxxxxxxxx>:
>> > On Mon, 8 Sep 2008 14:28:00 +0100
>> > "Matt Fleming" <mattjfleming@xxxxxxxxxxxxxx> wrote:
>> >
>> >> You're right, I changed the patch accordingly (I also fixed the read
>> >> timeout path).
>> >>
>> >
>> > This still doesn't use the fields from the request structure. E.g. SDIO
>> > support is probably still broken here as it mandates a timeout of 1
>> > second for data transfers.
>> >
>> What fields in the request structure? Are you talking about struct mmc_request ?
> Yup, timeout_ns and timeout_clks.

OK, just to be clear, where are those fields not used? They are used
in the new mmc_get_timeout() function.

I'm assuming SDIO should use the same logic as MMC for working out the
timeout value? Or is there an upper limit of 1 second on the timeout
for SDIO? I am not very confident in my understanding of the nuances
of SDIO. Also, I don't have any SDIO hardware so I can't test this
change (which is the reason I didn't change it in the first place).
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at
Please read the FAQ at