mirror of https://gitee.com/openkylin/linux.git
Blackfin pata-bf54x driver: should cover all possible interrupt sources
Signed-off-by: Sonic Zhang <sonic.zhang@analog.com> Signed-off-by: Bryan Wu <bryan.wu@analog.com> Signed-off-by: Jeff Garzik <jeff@garzik.org>
This commit is contained in:
parent
f920411258
commit
30d849c95f
|
@ -1147,15 +1147,13 @@ static unsigned char bfin_bmdma_status(struct ata_port *ap)
|
||||||
void __iomem *base = (void __iomem *)ap->ioaddr.ctl_addr;
|
void __iomem *base = (void __iomem *)ap->ioaddr.ctl_addr;
|
||||||
unsigned short int_status = ATAPI_GET_INT_STATUS(base);
|
unsigned short int_status = ATAPI_GET_INT_STATUS(base);
|
||||||
|
|
||||||
if (ATAPI_GET_STATUS(base) & (MULTI_XFER_ON|ULTRA_XFER_ON)) {
|
if (ATAPI_GET_STATUS(base) & (MULTI_XFER_ON|ULTRA_XFER_ON))
|
||||||
host_stat |= ATA_DMA_ACTIVE;
|
host_stat |= ATA_DMA_ACTIVE;
|
||||||
}
|
if (int_status & (MULTI_DONE_INT|UDMAIN_DONE_INT|UDMAOUT_DONE_INT|
|
||||||
if (int_status & (MULTI_DONE_INT|UDMAIN_DONE_INT|UDMAOUT_DONE_INT)) {
|
ATAPI_DEV_INT))
|
||||||
host_stat |= ATA_DMA_INTR;
|
host_stat |= ATA_DMA_INTR;
|
||||||
}
|
if (int_status & (MULTI_TERM_INT|UDMAIN_TERM_INT|UDMAOUT_TERM_INT))
|
||||||
if (int_status & (MULTI_TERM_INT|UDMAIN_TERM_INT|UDMAOUT_TERM_INT)) {
|
host_stat |= ATA_DMA_ERR|ATA_DMA_INTR;
|
||||||
host_stat |= ATA_DMA_ERR;
|
|
||||||
}
|
|
||||||
|
|
||||||
dev_dbg(ap->dev, "ATAPI: host_stat=0x%x\n", host_stat);
|
dev_dbg(ap->dev, "ATAPI: host_stat=0x%x\n", host_stat);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue