[PATCHv2] mmci: work with only one irq

Russell King - ARM Linux linux at arm.linux.org.uk
Mon Oct 11 05:44:04 EDT 2010


On Mon, Oct 11, 2010 at 05:36:41AM +0530, Rabin Vincent wrote:
> @@ -276,6 +292,10 @@ mmci_data_irq(struct mmci_host *host, struct mmc_data *data,
>  	if (status & MCI_DATAEND) {
>  		mmci_stop_data(host);
>  
> +		/* MCI_DATABLOCKEND not used with single irq */
> +		if (host->singleirq && !data->error)
> +			host->data_xfered = data->blksz * data->blocks;
> +

I'm uneasy about this.  If we don't get datablockend interrupts, then
when there's an error we don't know how much data was transferred, and
with big requests, we're going to have a very long time spent retrying
block by block.



More information about the linux-arm-kernel mailing list