Skip to content

Commit

Permalink
pata: Display Configuring .. lines for devices with private set_mode …
Browse files Browse the repository at this point in the history
…methods

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>
  • Loading branch information
Alan-Cox authored and Jeff Garzik committed Feb 21, 2007
1 parent 44877b4 commit e852f70
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions drivers/ata/pata_platform.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
1 change: 1 addition & 0 deletions drivers/ata/pata_rz1000.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit e852f70

Please sign in to comment.