2.4.x libata updates
Subsystems (3)
PATCH 1/1 2.4.x libata updates
Mostly minor fixes.
Please do a
bk pull bk://kernel.bkbits.net/jgarzik/libata-upstream-2.4
This will update the following files:
Documentation/Configure.help | 10 ++ drivers/scsi/libata-scsi.c | 158 ++++++++++++++++++++++++++++++++++++++----- drivers/scsi/libata.h | 2 drivers/scsi/sata_nv.c | 6 + include/linux/ata.h | 2 5 files changed, 158 insertions(+), 20 deletions(-)
through these ChangeSets:
<[email protected]> (04/08/18 1.1472.1.13)
[libata sata_nv] fix leak on error
Spotted by Francois Romieu.
<[email protected]> (04/08/18 1.1472.1.12)
[libata] improve translation of ATA errors to SCSI sense codes
<[email protected]> (04/08/18 1.1472.1.11)
[ata] remove 'packed' attributed from struct ata_prd
It's not needed, and it generates very poor code on some platforms.
Noticed by Bart and David Miller.
<[email protected]> (04/08/18 1.1472.1.10)
[PATCH] 2.4.28-pre1: add two SATA Configure.help entries
The trivial patch below adds the missing Configure.help entries for two new options.
Documentation/Configure.help +10 -0
@@ -9324,6 +9324,16 @@ If unsure, say N. +CONFIG_SCSI_ATA_PIIX + This option enables support for ICH5 Serial ATA. + + If unsure, say N. + +CONFIG_SCSI_SATA_NV + This option enables support for NVIDIA Serial ATA. + + If unsure, say N. + CONFIG_SCSI_SATA_PROMISE This option enables support for Promise Serial ATA TX2/TX4.
drivers/scsi/libata-scsi.c +141 -17
182 lines not on this page · raw message
drivers/scsi/libata.h +1 -1
@@ -46,7 +46,7 @@/* libata-scsi.c */ -extern void ata_to_sense_error (struct ata_queued_cmd *qc); +extern void ata_to_sense_error (struct ata_queued_cmd *qc,u8 drv_stat);extern int ata_scsi_error (struct Scsi_Host *host);extern unsigned int ata_scsiop_inq_std (struct ata_scsi_args *args,u8 *rbuf,unsigned int buflen);
drivers/scsi/sata_nv.c +5 -1
@@ -370,7 +370,7 @@ probe_ent->mmio_base =ioremap (pci_resource_start (pdev,5 ),pci_resource_len (pdev,5 ));if (probe_ent->mmio_base ==NULL ) - goto err_out_free_ent; + goto err_out_iounmap; base = (unsigned long )probe_ent->mmio_base;
@@ -395,6 +395,10 @@ata_add_to_probe_list (probe_ent);return 0 ; + +err_out_iounmap: +if (host->host_desc->host_flags &NV_HOST_FLAGS_SCR_MMIO ) +iounmap (probe_ent->mmio_base); err_out_free_ent:kfree (probe_ent);
include/linux/ata.h +1 -1
@@ -192,7 +192,7 @@struct ata_prd {u32 addr;u32 flags_len; -} __attribute__((packed)); +};struct ata_taskfile {unsigned long flags;/* ATA_TFLAG_xxx */