X-Git-Url: http://git.samba.org/samba.git/?a=blobdiff_plain;f=drivers%2Fata%2Fsata_dwc_460ex.c;fp=drivers%2Fata%2Fsata_dwc_460ex.c;h=e3263e961045ac342636156d40986a11a85ebe33;hb=7aa8104a554713b685db729e66511b93d989dd6a;hp=bec33d781ae046f989742c0b381b06ca6bd92beb;hpb=76ed2f61ae3ee5ca6e3ef155a703ab3eee1eb295;p=sfrench%2Fcifs-2.6.git diff --git a/drivers/ata/sata_dwc_460ex.c b/drivers/ata/sata_dwc_460ex.c index bec33d781ae0..e3263e961045 100644 --- a/drivers/ata/sata_dwc_460ex.c +++ b/drivers/ata/sata_dwc_460ex.c @@ -137,7 +137,11 @@ struct sata_dwc_device { #endif }; -#define SATA_DWC_QCMD_MAX 32 +/* + * Allow one extra special slot for commands and DMA management + * to account for libata internal commands. + */ +#define SATA_DWC_QCMD_MAX (ATA_MAX_QUEUE + 1) struct sata_dwc_device_port { struct sata_dwc_device *hsdev;