libata fixes
PATCH 1/1 libata fixes
Please pull from 'upstream-linus' branch of master.kernel.org:/pub/scm/linux/kernel/git/jgarzik/libata-dev.git upstream-linus
to receive the following updates:
drivers/ata/ahci.c | 2 +- drivers/ata/libata-core.c | 2 +- drivers/ata/libata-eh.c | 2 +- drivers/ata/libata-scsi.c | 60 +++++++++++++++++++++++++++++++++++-------- drivers/ata/pata_platform.c | 4 ++- drivers/ata/pata_sil680.c | 2 +- 6 files changed, 56 insertions(+), 16 deletions(-)
Andrew Morton (1):
pata_platform: set_mode fix
David Milburn (1):
libata-scsi: ata_task_ioctl should return ATA registers from sense data
Lennert Buytenhek (1):
ata_if_xfermask() word 51 fix
Robert Hancock (1):
libata: fix translation for START STOP UNIT
Sergei Shtylyov (1):
pata_sil680: PIO1 taskfile transfers overclocking fix (repost)
Tejun Heo (2):
ahci: port_no should be used when clearing IRQ in ahci_thaw()
libata: fix ata_eh_suspend() return value
drivers/ata/ahci.c +1 -1
@@ -1282,7 +1282,7 @@ static void ahci_thaw(struct ata_port *ap)/* clear IRQ */ tmp =readl (port_mmio +PORT_IRQ_STAT );writel (tmp, port_mmio +PORT_IRQ_STAT ); -writel (1 << ap->id, mmio +HOST_IRQ_STAT ); +writel (1 << ap->port_no, mmio +HOST_IRQ_STAT );/* turn IRQ back on */ writel (DEF_PORT_IRQ , port_mmio +PORT_IRQ_MASK );
drivers/ata/libata-core.c +1 -1
@@ -1037,7 +1037,7 @@ static unsigned int ata_id_xfermask(const u16 *id)* the PIO timing number for the maximum. Turn it into * a mask. */ -u8 mode = id[ATA_ID_OLD_PIO_MODES ] &0xFF ; +u8 mode = (id[ATA_ID_OLD_PIO_MODES ] >>8 ) &0xFF ;if (mode <5 )/* Valid PIO range */ pio_mask = (2 << mode) -1 ;else
drivers/ata/libata-eh.c +1 -1
@@ -1796,7 +1796,7 @@ static int ata_eh_suspend(struct ata_port *ap, struct ata_device **r_failed_dev) *r_failed_dev = dev;DPRINTK ("EXIT\n" ); -return 0 ; +return rc; }/**
drivers/ata/libata-scsi.c +49 -11
89 lines not on this page · raw message
drivers/ata/pata_platform.c +3 -1
@@ -30,7 +30,8 @@ static int pio_mask = 1;* Provide our own set_mode() as we don't want to change anything that has * already been configured.. */ -static void pata_platform_set_mode (struct ata_port *ap) +static int pata_platform_set_mode (struct ata_port *ap, +struct ata_device **r_failed_dev) {int i;
@@ -44,6 +45,7 @@ static void pata_platform_set_mode(struct ata_port *ap) dev->flags |=ATA_DFLAG_PIO ; } } +return 0 ; }static void pata_platform_host_stop (struct ata_host *host)
drivers/ata/pata_sil680.c +1 -1
@@ -135,7 +135,7 @@ static void sil680_error_handler(struct ata_port *ap)static void sil680_set_piomode (struct ata_port *ap,struct ata_device *adev) {static u16 speed_p[5 ] = {0x328A ,0x2283 ,0x1104 ,0x10C3 ,0x10C1 }; -static u16 speed_t[5 ] = {0x328A ,0x1281 ,0x1281 ,0x10C3 ,0x10C1 }; +static u16 speed_t[5 ] = {0x328A ,0x2283 ,0x1281 ,0x10C3 ,0x10C1 };unsigned long tfaddr =sil680_selreg (ap,0x02 );unsigned long addr =sil680_seldev (ap, adev,0x04 );