Hi Olivier, On Thu, Dec 05, 2013 at 10:45:16AM +0100, Olivier Sobrie wrote: [...] > > Hi Ludovic, > > With this patch I'm able to use the wlan sdio module wl1271. > When you've time, it would be nice to validate or fix this > patch. Thanks for your patch, before giving my ack I would like to test it on other devices. I hope I could manage that next week. Regards Ludovic > > Thanks for your help, > > Olivier > > drivers/mmc/host/atmel-mci.c | 6 +++++- > 1 file changed, 5 insertions(+), 1 deletion(-) > > diff --git a/drivers/mmc/host/atmel-mci.c b/drivers/mmc/host/atmel-mci.c > index b86b482..c599731 100644 > --- a/drivers/mmc/host/atmel-mci.c > +++ b/drivers/mmc/host/atmel-mci.c > @@ -45,6 +45,7 @@ > > #define ATMCI_DATA_ERROR_FLAGS (ATMCI_DCRCE | ATMCI_DTOE | ATMCI_OVRE | ATMCI_UNRE) > #define ATMCI_DMA_THRESHOLD 16 > +#define ATMCI_PDC_MIN_DATASIZE 16 > > enum { > EVENT_CMD_RDY = 0, > @@ -765,7 +766,10 @@ static void atmci_pdc_set_single_buf(struct atmel_mci *host, > } > > if (host->data_size <= buf_size) { > - if (host->data_size & 0x3) { > + if ((host->data_size < ATMCI_PDC_MIN_DATASIZE) && > + (dir == XFER_TRANSMIT)) { > + atmci_writel(host, counter_reg, 4); > + } else if (host->data_size & 0x3) { > /* If size is different from modulo 4, transfer bytes */ > atmci_writel(host, counter_reg, host->data_size); > atmci_writel(host, ATMCI_MR, host->mode_reg | ATMCI_MR_PDCFBYTE); > -- > 1.7.9.5 > -- To unsubscribe from this list: send the line "unsubscribe linux-mmc" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html