pata_sl82c105: implement sff_irq_check() method

Signed-off-by: Sergei Shtylyov <sshtylyov@ru.mvista.com>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>

authored by Sergei Shtylyov and committed by Jeff Garzik f7a437dd 9b980e10

+11
+11
drivers/ata/pata_sl82c105.c
··· 227 227 return 0; 228 228 } 229 229 230 + static bool sl82c105_sff_irq_check(struct ata_port *ap) 231 + { 232 + struct pci_dev *pdev = to_pci_dev(ap->host->dev); 233 + u32 val, mask = ap->port_no ? CTRL_IDE_IRQB : CTRL_IDE_IRQA; 234 + 235 + pci_read_config_dword(pdev, 0x40, &val); 236 + 237 + return val & mask; 238 + } 239 + 230 240 static struct scsi_host_template sl82c105_sht = { 231 241 ATA_BMDMA_SHT(DRV_NAME), 232 242 }; ··· 249 239 .cable_detect = ata_cable_40wire, 250 240 .set_piomode = sl82c105_set_piomode, 251 241 .prereset = sl82c105_pre_reset, 242 + .sff_irq_check = sl82c105_sff_irq_check, 252 243 }; 253 244 254 245 /**