diff --git a/drivers/scsi/libata-bmdma.c b/drivers/scsi/libata-bmdma.c index 9ce221f..9397f0b 100644 --- a/drivers/scsi/libata-bmdma.c +++ b/drivers/scsi/libata-bmdma.c @@ -1070,6 +1070,10 @@ int ata_pci_init_one (struct pci_dev *pd goto err_out_regions; } + dev_printk(KERN_INFO, &pdev->dev, + "XXX: legacy_mode=%x probe_ent=%p probe_ent2=%p\n", + legacy_mode, probe_ent, probe_ent2); + pci_set_master(pdev); /* FIXME: check ata_device_add return */ diff --git a/drivers/scsi/libata-core.c b/drivers/scsi/libata-core.c index 66feebd..9756ee6 100644 --- a/drivers/scsi/libata-core.c +++ b/drivers/scsi/libata-core.c @@ -5401,8 +5401,11 @@ int ata_device_add(const struct ata_prob /* alloc a container for our list of ATA ports (buses) */ host_set = kzalloc(sizeof(struct ata_host_set) + (ent->n_ports * sizeof(void *)), GFP_KERNEL); - if (!host_set) + if (!host_set) { + printk(KERN_ERR "ata_device_add() alloc failed, n_ports=%d\n", + ent->n_ports); return 0; + } spin_lock_init(&host_set->lock); host_set->dev = dev; @@ -5419,8 +5422,10 @@ int ata_device_add(const struct ata_prob unsigned long xfer_mode_mask; ap = ata_host_add(ent, host_set, i); - if (!ap) + if (!ap) { + printk(KERN_ERR "ata_host_add() failed\n"); goto err_out; + } host_set->ports[i] = ap; xfer_mode_mask =(ap->udma_mask << ATA_SHIFT_UDMA) | @@ -5537,7 +5542,7 @@ err_out: } err_free_ret: kfree(host_set); - VPRINTK("EXIT, returning 0\n"); + printk(KERN_ERR "ata_device_add() ERROR, returning 0\n"); return 0; }