sym 2.1.18j
PATCH 1/1 sym 2.1.18j
sym 2.1.18j:
- Add SPI transport attributes (James Bottomley)
- Use generic code to do Domain Validation (James Bottomley)
- Stop using scsi_to_pci_dma_dir() (Christoph Hellwig)
- Change some constants to their symbolic names (Grant Grundler)
- Handle a race between a postponed command completing and the EH retrying it (James Bottomley)
- If the auto request sense fails, issue a device reset (James Bottomley)
drivers/scsi/Kconfig +1 -0
@@ -908,6 +908,7 @@ config 53C700_LE_ON_BE config SCSI_SYM53C8XX_2 tristate "SYM53C8XX Version 2 SCSI support" depends on PCI && SCSI + select SCSI_SPI_ATTRS ---help--- This driver supports the whole NCR53C8XX/SYM53C8XX family of PCI-SCSI controllers. It also supports the subset of LSI53C10XX
drivers/scsi/sym53c8xx_2/sym_glue.c +142 -8
246 lines not on this page · raw message
drivers/scsi/sym53c8xx_2/sym_glue.h +7 -12
@@ -66,9 +66,10 @@# include <asm/irq.h> #endif +#include <scsi/scsi.h> #include <scsi/scsi_cmnd.h> +#include <scsi/scsi_device.h> #include <scsi/scsi_host.h> -#include "../scsi.h" /* XXX: DID_* */ #ifndef bzero#define bzero (d, n) memset((d), 0, (n))
@@ -341,18 +342,12 @@ typedef struct scsi_cmnd *cam_scsiio_p;/#define CAM_RESRC_UNAVAIL DID_ERROR/* -* Remap SCSI data direction values. +* Remap data direction values. */ -#ifndef SCSI_DATA_UNKNOWN -#define SCSI_DATA_UNKNOWN 0 -#define SCSI_DATA_WRITE 1 -#define SCSI_DATA_READ 2 -#define SCSI_DATA_NONE 3 -#endif -#define CAM_DIR_NONE SCSI_DATA_NONE -#define CAM_DIR_IN SCSI_DATA_READ -#define CAM_DIR_OUT SCSI_DATA_WRITE -#define CAM_DIR_UNKNOWN SCSI_DATA_UNKNOWN +#define CAM_DIR_NONE DMA_NONE +#define CAM_DIR_IN DMA_FROM_DEVICE +#define CAM_DIR_OUT DMA_TO_DEVICE +#define CAM_DIR_UNKNOWN DMA_BIDIRECTIONAL/* * These ones are used as return code from
drivers/scsi/sym53c8xx_2/sym_hipd.c +4 -3
@@ -50,7 +50,8 @@* SUCH DAMAGE. */ -#define SYM_DRIVER_NAME "sym-2.1.18i" +#define SYM_VERSION "2.1.18j" +#define SYM_DRIVER_NAME "sym-" SYM_VERSION#include "sym_glue.h" #include "sym_nvram.h"
@@ -3183,7 +3184,7 @@ static void sym_sir_bad_scsi_status(hcb_/* * patch requested size into sense command */ - cp->sensecmd[0 ] =0x03 ; + cp->sensecmd[0 ] =REQUEST_SENSE ; cp->sensecmd[1 ] =0 ;if (tp->tinfo.curr.scsi_version <=2 && cp->lun <=7 ) cp->sensecmd[1 ] = cp->lun <<5 ;
@@ -5693,7 +5694,7 @@ if (resid)* On standard INQUIRY response (EVPD and CmDt * not set), sniff out device capabilities. */ -if (cp->cdb_buf[0 ] ==0x12 && !(cp->cdb_buf[1 ] &0x3 )) +if (cp->cdb_buf[0 ] ==INQUIRY && !(cp->cdb_buf[1 ] &0x3 ))sym_sniff_inquiry (np, cp->cam_ccb, resid);#endif
Signature · 6 lines
"Next the statesmen will invent cheap lies, putting the blame upon the nation that is attacked, and every man will be glad of those conscience-soothing falsities, and will diligently study them, and refuse to examine any refutations of them; and thus he will by and by convince himself that the war is just, and will thank God for the better sleep he enjoys after this process of grotesque self-deception." -- Mark Twain