]> err.no Git - linux-2.6/commitdiff
pata: Display Configuring .. lines for devices with private set_mode methods
authorAlan <alan@lxorguk.ukuu.org.uk>
Tue, 20 Feb 2007 17:35:43 +0000 (17:35 +0000)
committerJeff Garzik <jeff@garzik.org>
Wed, 21 Feb 2007 09:58:20 +0000 (04:58 -0500)
We can't specify which mode in the cases below but we can at least say
PIO and look consistent with the default.

Signed-off-by: Alan Cox <alan@redhat.com>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
drivers/ata/pata_platform.c
drivers/ata/pata_rz1000.c

index 479a326114e0ca4132740f2e619a793a9ef5046b..02ea95fcba694e85d9fc307047b7a7466203e392 100644 (file)
@@ -42,6 +42,7 @@ static int pata_platform_set_mode(struct ata_port *ap, struct ata_device **unuse
                        dev->pio_mode = dev->xfer_mode = XFER_PIO_0;
                        dev->xfer_shift = ATA_SHIFT_PIO;
                        dev->flags |= ATA_DFLAG_PIO;
+                       ata_dev_printk(dev, KERN_INFO, "configured for PIO\n");
                }
        }
        return 0;
index 71a2bac09e0d90ee7638d9ecc129d7ef1141b5d7..60fc598f765de3da8935e0f07536bf5b1702eeba 100644 (file)
@@ -71,6 +71,7 @@ static int rz1000_set_mode(struct ata_port *ap, struct ata_device **unused)
                        dev->xfer_mode = XFER_PIO_0;
                        dev->xfer_shift = ATA_SHIFT_PIO;
                        dev->flags |= ATA_DFLAG_PIO;
+                       ata_dev_printk(dev, KERN_INFO, "configured for PIO\n");
                }
        }
        return 0;