diff options
Diffstat (limited to 'drivers/ata/libata-core.c')
-rw-r--r-- | drivers/ata/libata-core.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/drivers/ata/libata-core.c b/drivers/ata/libata-core.c index b8ac4902d312..2a882929de4a 100644 --- a/drivers/ata/libata-core.c +++ b/drivers/ata/libata-core.c | |||
@@ -1879,6 +1879,7 @@ retry: | |||
1879 | switch (class) { | 1879 | switch (class) { |
1880 | case ATA_DEV_SEMB: | 1880 | case ATA_DEV_SEMB: |
1881 | class = ATA_DEV_ATA; /* some hard drives report SEMB sig */ | 1881 | class = ATA_DEV_ATA; /* some hard drives report SEMB sig */ |
1882 | /* fall through */ | ||
1882 | case ATA_DEV_ATA: | 1883 | case ATA_DEV_ATA: |
1883 | case ATA_DEV_ZAC: | 1884 | case ATA_DEV_ZAC: |
1884 | tf.command = ATA_CMD_ID_ATA; | 1885 | tf.command = ATA_CMD_ID_ATA; |
@@ -2975,6 +2976,7 @@ int ata_bus_probe(struct ata_port *ap) | |||
2975 | case -ENODEV: | 2976 | case -ENODEV: |
2976 | /* give it just one more chance */ | 2977 | /* give it just one more chance */ |
2977 | tries[dev->devno] = min(tries[dev->devno], 1); | 2978 | tries[dev->devno] = min(tries[dev->devno], 1); |
2979 | /* fall through */ | ||
2978 | case -EIO: | 2980 | case -EIO: |
2979 | if (tries[dev->devno] == 1) { | 2981 | if (tries[dev->devno] == 1) { |
2980 | /* This is the last chance, better to slow | 2982 | /* This is the last chance, better to slow |
@@ -3462,6 +3464,7 @@ int ata_down_xfermask_limit(struct ata_device *dev, unsigned int sel) | |||
3462 | 3464 | ||
3463 | case ATA_DNXFER_FORCE_PIO0: | 3465 | case ATA_DNXFER_FORCE_PIO0: |
3464 | pio_mask &= 1; | 3466 | pio_mask &= 1; |
3467 | /* fall through */ | ||
3465 | case ATA_DNXFER_FORCE_PIO: | 3468 | case ATA_DNXFER_FORCE_PIO: |
3466 | mwdma_mask = 0; | 3469 | mwdma_mask = 0; |
3467 | udma_mask = 0; | 3470 | udma_mask = 0; |
@@ -3964,6 +3967,7 @@ int sata_link_scr_lpm(struct ata_link *link, enum ata_lpm_policy policy, | |||
3964 | scontrol &= ~(0x1 << 8); | 3967 | scontrol &= ~(0x1 << 8); |
3965 | scontrol |= (0x6 << 8); | 3968 | scontrol |= (0x6 << 8); |
3966 | break; | 3969 | break; |
3970 | case ATA_LPM_MED_POWER_WITH_DIPM: | ||
3967 | case ATA_LPM_MIN_POWER: | 3971 | case ATA_LPM_MIN_POWER: |
3968 | if (ata_link_nr_enabled(link) > 0) | 3972 | if (ata_link_nr_enabled(link) > 0) |
3969 | /* no restrictions on LPM transitions */ | 3973 | /* no restrictions on LPM transitions */ |
@@ -5823,7 +5827,7 @@ void ata_host_resume(struct ata_host *host) | |||
5823 | } | 5827 | } |
5824 | #endif | 5828 | #endif |
5825 | 5829 | ||
5826 | struct device_type ata_port_type = { | 5830 | const struct device_type ata_port_type = { |
5827 | .name = "ata_port", | 5831 | .name = "ata_port", |
5828 | #ifdef CONFIG_PM | 5832 | #ifdef CONFIG_PM |
5829 | .pm = &ata_port_pm_ops, | 5833 | .pm = &ata_port_pm_ops, |
@@ -6903,7 +6907,7 @@ static int __init ata_parse_force_one(char **cur, | |||
6903 | return -EINVAL; | 6907 | return -EINVAL; |
6904 | } | 6908 | } |
6905 | if (nr_matches > 1) { | 6909 | if (nr_matches > 1) { |
6906 | *reason = "ambigious value"; | 6910 | *reason = "ambiguous value"; |
6907 | return -EINVAL; | 6911 | return -EINVAL; |
6908 | } | 6912 | } |
6909 | 6913 | ||