Skip to contentSkip to conversation

remove an unused function from NCR53c406a.c

PATCH In review Rusty Trivial Russell 4 participants 5 messages Jul 7, 2003 – Jul 10, 2003 SCSI

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 remove an unused function from NCR53c406a.c

From: Adrian Bunk <[email protected]>

The patch below removes an unused function from
drivers/scsi/NCR53c406a.c .

I've tested the compilation with 2.5.72-mm2.

drivers/scsi/NCR53c406a.c renamed from drivers/scsi/NCR53c406a.c.orig +0 -21
@@ -170,7 +170,6 @@
 /* Static function prototypes */
 static void NCR53c406a_intr(int, void *, struct pt_regs *);
 static irqreturn_t do_NCR53c406a_intr(int, void *, struct pt_regs *);
-static void wait_intr(void);
 static void chip_init(void);
 static void calc_port_addr(void);
 #ifndef IRQ_LEV
@@ -664,26 +663,6 @@
 	return (info_msg);
 }
 
-static void wait_intr(void)
-{
-	unsigned long i = jiffies + WATCHDOG;
-
-	while (time_after(i, jiffies) && !(inb(STAT_REG) & 0xe0)) {	/* wait for a pseudo-interrupt */
-		cpu_relax();
-		barrier();
-	}
-
-	if (time_before_eq(i, jiffies)) {	/* Timed out */
-		rtrc(0);
-		current_SC->result = DID_TIME_OUT << 16;
-		current_SC->SCp.phase = idle;
-		current_SC->scsi_done(current_SC);
-		return;
-	}
-
-	NCR53c406a_intr(0, NULL, NULL);
-}
-
 static int NCR53c406a_queue(Scsi_Cmnd * SCpnt, void (*done) (Scsi_Cmnd *))
 {
 	int i;
Signature · 3 lines
  What is this? http://www.kernel.org/pub/linux/kernel/people/rusty/trivial/
  Don't blame me: the Monkey is driving
  File: Adrian Bunk <[email protected]>: [2.5 patch] remove an unused function from NCR53c406a.c
#1 lore raw
Quoted 6 lines · Rusty Trivial Russell

From: Adrian Bunk <[email protected]>

The patch below removes an unused function from
drivers/scsi/NCR53c406a.c .

I've tested the compilation with 2.5.72-mm2.

Rusty, I'm not going to remove this immediately.

It's the old polling interface for the chip. It was unplumbed when the ->command() API was removed, but these chips were strangely connected to soundblaster cards and may need to operate in no-interrupt mode (in which case we'll need to ressurect it). I'm just waiting to see if anyone complains that their sound card attached CDROM no-longer works.

James

#2 lore raw
Quoted 5 lines · James Bottomley

It's the old polling interface for the chip. It was unplumbed when the ->command() API was removed, but these chips were strangely connected to soundblaster cards and may need to operate in no-interrupt mode (in which case we'll need to ressurect it). I'm just waiting to see if anyone complains that their sound card attached CDROM no-longer works.

Non interrupt mode doesn't seem to need ->command(). The queue function just happens to return when the I/O completes.

#3 lore raw
In reply to James Bottomley

In message <1057586204.1812.2.camel@mulgrave> you write:

Quoted 8 lines · Rusty Trivial Russell
Quoted 6 lines

From: Adrian Bunk <[email protected]>

The patch below removes an unused function from
drivers/scsi/NCR53c406a.c .

I've tested the compilation with 2.5.72-mm2.

Quoted 7 lines

Rusty, I'm not going to remove this immediately.

It's the old polling interface for the chip. It was unplumbed when the ->command() API was removed, but these chips were strangely connected to soundblaster cards and may need to operate in no-interrupt mode (in which case we'll need to ressurect it). I'm just waiting to see if anyone complains that their sound card attached CDROM no-longer works.

Thanks for taking the time to explain, James. From the other patches Adrian sent, I think he was on a warning hunt.

I'll turn off re-transmit on this patch, so if it gets applied later Adrian will get a closure mail, otherwise I'll dredge it up again late in the 2.6-pre stuff.

Thanks!
Rusty.
--
Anyone who quotes me in their sig is an idiot. -- Rusty Russell.

#4 lore raw
Quoted 11 lines · Rusty Russell

In message <1057586204.1812.2.camel@mulgrave> you write:

Quoted 10 lines · Rusty Trivial Russell
Quoted 6 lines

From: Adrian Bunk <[email protected]>

The patch below removes an unused function from
drivers/scsi/NCR53c406a.c .

I've tested the compilation with 2.5.72-mm2.

Rusty, I'm not going to remove this immediately.

Quoted 8 lines
Quoted 5 lines

It's the old polling interface for the chip. It was unplumbed when the ->command() API was removed, but these chips were strangely connected to soundblaster cards and may need to operate in no-interrupt mode (in which case we'll need to ressurect it). I'm just waiting to see if anyone complains that their sound card attached CDROM no-longer works.

Thanks for taking the time to explain, James. From the other patches Adrian sent, I think he was on a warning hunt.

Yup, that's correct.

Quoted 3 lines

I'll turn off re-transmit on this patch, so if it gets applied later Adrian will get a closure mail, otherwise I'll dredge it up again late in the 2.6-pre stuff.

That's OK for me.

Quoted 2 lines

Thanks!
Rusty.

Thanks
Adrian

Signature · 4 lines
       "Is there not promise of rain?" Ling Tan asked suddenly out
        of the darkness. There had been need of rain for many days.
       "Only a promise," Lao Er said.
                                       Pearl S. Buck - Dragon Seed