Skip to contentSkip to conversation

sym2 & lasi700 small updates

PATCH In review Matthew Wilcox 2 participants 2 messages Aug 14, 2004

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 sym2 & lasi700 small updates

Two small patches from the PA-RISC tree:

- Claim the lasi700 interrupt with a more useful name (Thibaut Varene)
- sym2 always defines SYM_OPT_NVRAM_PRE_READ; delete dead code (Matthew Wilcox)

drivers/scsi/lasi700.c +1 -1
diff -urpNX dontdiff linus-2.6/drivers/scsi/lasi700.c parisc-2.6/drivers/scsi/lasi700.c
@@ -110,7 +110,7 @@ lasi700_probe(struct parisc_device *dev)
 
 	host->irq = dev->irq;
 	if (request_irq(dev->irq, NCR_700_intr, SA_SHIRQ,
-				dev->dev.bus_id, host)) {
+				"lasi700", host)) {
 		printk(KERN_ERR "%s: irq problem, detaching\n",
 		       dev->dev.bus_id);
 		goto out_put_host;
drivers/scsi/sym53c8xx_2/sym_glue.h +0 -1
diff -urpNX dontdiff linus-2.6/drivers/scsi/sym53c8xx_2/sym_glue.h parisc-2.6/drivers/scsi/sym53c8xx_2/sym_glue.h
@@ -89,7 +89,6 @@
 
 #define SYM_OPT_HANDLE_DIR_UNKNOWN
 #define SYM_OPT_HANDLE_DEVICE_QUEUEING
-#define SYM_OPT_NVRAM_PRE_READ
 #define SYM_OPT_SNIFF_INQUIRY
 #define SYM_OPT_LIMIT_COMMAND_REORDERING
 #define	SYM_OPT_ANNOUNCE_TRANSFER_RATE
drivers/scsi/sym53c8xx_2/sym_hipd.c +0 -14
diff -urpNX dontdiff linus-2.6/drivers/scsi/sym53c8xx_2/sym_hipd.c parisc-2.6/drivers/scsi/sym53c8xx_2/sym_hipd.c
@@ -5738,15 +5738,8 @@ if (resid)
 /*
  *  Soft-attach the controller.
  */
-#ifdef SYM_OPT_NVRAM_PRE_READ
 int sym_hcb_attach(hcb_p np, struct sym_fw *fw, struct sym_nvram *nvram)
-#else
-int sym_hcb_attach(hcb_p np, struct sym_fw *fw)
-#endif
 {
-#ifndef SYM_OPT_NVRAM_PRE_READ
-	struct sym_nvram nvram_buf, *nvram = &nvram_buf;
-#endif
 	int i;
 
 	/*
@@ -5771,13 +5764,6 @@ int sym_hcb_attach(hcb_p np, struct sym_
 	 *  if the chip is currently active.
 	 */
 	sym_chip_reset (np);
-
-	/*
-	 *  Try to read the user set-up.
-	 */
-#ifndef SYM_OPT_NVRAM_PRE_READ
-	(void) sym_read_nvram(np, nvram);
-#endif
 
 	/*
 	 *  Prepare controller and devices settings, according 
drivers/scsi/sym53c8xx_2/sym_hipd.h +0 -5
diff -urpNX dontdiff linus-2.6/drivers/scsi/sym53c8xx_2/sym_hipd.h parisc-2.6/drivers/scsi/sym53c8xx_2/sym_hipd.h
@@ -1139,12 +1139,7 @@ int sym_abort_scsiio(hcb_p np, cam_ccb_p
 int sym_abort_ccb(hcb_p np, ccb_p cp, int timed_out);
 int sym_reset_scsi_target(hcb_p np, int target);
 void sym_hcb_free(hcb_p np);
-
-#ifdef SYM_OPT_NVRAM_PRE_READ
 int sym_hcb_attach(hcb_p np, struct sym_fw *fw, struct sym_nvram *nvram);
-#else
-int sym_hcb_attach(hcb_p np, struct sym_fw *fw);
-#endif
 
 /*
  *  Optionnaly, the driver may handle IO timeouts.
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
#1 lore raw

drivers/scsi/lasi700.c lasi700_probe(struct parisc_device *dev) · line 114

Quoted 4 lines · Matthew Wilcox
drivers/scsi/lasi700.c +1 -1
 	if (request_irq(dev->irq, NCR_700_intr, SA_SHIRQ,
-				dev->dev.bus_id, host)) {
+				"lasi700", host)) {
 		printk(KERN_ERR "%s: irq problem, detaching\n",

Actually, this was deliberate. By design it's trying to give the sysfs device node so that the location of the irq is uniquely descriptive to the particular device in question.

I find this useful when I'm tracing things, but I suppose others would prefer that it be more obviously descriptive.

What the old driver used to put there was 700 or 710 depending on which chip it was driving.

James