Skip to contentSkip to conversation

Request: Netmos support in parport_serial for 2.4.27

DISCUSSION Ryan Underwood 2 participants 4 messages Jun 14, 2004 – Jun 17, 2004 2 messages not in the archive Kbuild

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw
Quoted 10 lines

Hi,

I bet you won't have any luck to see it included in anywhere if you expect kernel maintainers to launch a web browser, find it on your site, and possibly merge it by hand. You could make things easier to them by updating the patch to 2.4.27-bk and post it right here.

Cheers,
Willy

It's not my patch or my site. I also wasn't the one who made previous requests for it. However, I have noticed that multiple requests for inclusion were ignored without any reason, so I figured it was just lost in the shadow of more important things till now. It has already been included in 2.6 for a long time, btw.

Signature · 1 line
Ryan Underwood, <[email protected]>
#2 lore raw
Quoted 8 lines · Ryan Underwood
Quoted 8 lines

Hi,

I bet you won't have any luck to see it included in anywhere if you expect kernel maintainers to launch a web browser, find it on your site, and possibly merge it by hand. You could make things easier to them by updating the patch to 2.4.27-bk and post it right here.

Quoted 8 lines
Quoted 2 lines

Cheers,
Willy

It's not my patch or my site. I also wasn't the one who made previous requests for it. However, I have noticed that multiple requests for inclusion were ignored without any reason, so I figured it was just lost in the shadow of more important things till now. It has already been included in 2.6 for a long time, btw.

Ryan,

Dont get Willy wrong -- your help bugging the maintainers is much appreciated.

Are you sure it has been included in v2.6? It doesnt seem to be the case last time I checked v2.6.7-rc3.

#3 lore raw
Quoted 8 lines · Marcelo Tosatti
Quoted 7 lines
Quoted 1 line

Willy

It's not my patch or my site. I also wasn't the one who made previous requests for it. However, I have noticed that multiple requests for inclusion were ignored without any reason, so I figured it was just lost in the shadow of more important things till now. It has already been included in 2.6 for a long time, btw.

Quoted 6 lines

Ryan,

Dont get Willy wrong -- your help bugging the maintainers is much appreciated.

Are you sure it has been included in v2.6? It doesnt seem to be the case last time I checked v2.6.7-rc3.

No, I don't think it has. I remember seeing a patch from Tim Waugh which made me think it had been included, but I guess not, from examining 2.6.7-rc3.

Signature · 1 line
Ryan Underwood, <[email protected]>

A message that is not in the archive (sent off-list or not yet received): [email protected]

#5 lore raw

The Netmos patch is working fine on my Netmos 9815 as far as I can tell.

I also attached a patch which addresses some things:
1) Wrong reporting of device and vendors ids.. I have no clue what the original code was even trying to do
2) Allows PCI parallel port to share an IRQ if possible. In limited testing this seems to be ok, but maybe the interrupt handler was not written for sharing. Someone else will need to ok this.
3) Adds a prod to get the user to specify an irq if one was probed but none specified, so if DMA is not being enabled, there is an outward looking cause for it.
4) Documentation clarification for Documentation/parport.txt

Ryan

Quoted 36 lines · Marcelo Tosatti

Ryan,

I'm going to release 2.4.27-pre6 in an hour or so with the NetMos patch included.

Can you please test it with your card?

TI

Quoted 23 lines · Ryan Underwood
Quoted 8 lines · Marcelo Tosatti
Quoted 7 lines
Quoted 1 line

Willy

It's not my patch or my site. I also wasn't the one who made previous requests for it. However, I have noticed that multiple requests for inclusion were ignored without any reason, so I figured it was just lost in the shadow of more important things till now. It has already been included in 2.6 for a long time, btw.

Quoted 6 lines

Ryan,

Dont get Willy wrong -- your help bugging the maintainers is much appreciated.

Are you sure it has been included in v2.6? It doesnt seem to be the case last time I checked v2.6.7-rc3.

No, I don't think it has. I remember seeing a patch from Tim Waugh which made me think it had been included, but I guess not, from examining 2.6.7-rc3.

Signature · 1 line
Ryan Underwood, <[email protected]>
Signature · 1 line
Ryan Underwood, <[email protected]>
char/parport_serial.c renamed from tmp/linux-2.4.26/drivers/char/parport_serial.c +3 -3
@@ -334,9 +334,9 @@
 		/* TODO: test if sharing interrupts works */
 		printk (KERN_DEBUG "PCI parallel port detected: %04x:%04x, "
 			"I/O at %#lx(%#lx)\n",
-			parport_serial_pci_tbl[i].vendor,
-			parport_serial_pci_tbl[i].device, io_lo, io_hi);
-		port = parport_pc_probe_port (io_lo, io_hi, PARPORT_IRQ_NONE,
+			dev->vendor,
+			dev->device, io_lo, io_hi);
+		port = parport_pc_probe_port (io_lo, io_hi, dev->irq,
 					      PARPORT_DMA_NONE, dev);
 		if (port) {
 			priv->port[priv->num_par++] = port;
parport/parport_pc.c renamed from tmp/linux-2.4.26/drivers/parport/parport_pc.c +7 -6
@@ -2343,8 +2343,9 @@
 	printk ("(,...)");
 #endif /* CONFIG_PARPORT_1284 */
 	printk("]\n");
-	if (probedirq != PARPORT_IRQ_NONE) 
-		printk(KERN_INFO "%s: irq %d detected\n", p->name, probedirq);
+	if (probedirq != PARPORT_IRQ_NONE) {
+		printk(KERN_INFO "%s: irq %d ignored (try irq=auto or irq=%d)\n", p->name, probedirq, probedirq);
+	}
 	parport_proc_register(p);
 
 	request_region (p->base, 3, p->name);
@@ -2355,7 +2356,7 @@
 
 	if (p->irq != PARPORT_IRQ_NONE) {
 		if (request_irq (p->irq, parport_pc_interrupt,
-				 0, p->name, p)) {
+				 ((dev != NULL)? SA_SHIRQ : 0), p->name, p)) {
 			printk (KERN_WARNING "%s: irq %d in use, "
 				"resorting to polled operation\n",
 				p->name, p->irq);
@@ -2890,9 +2891,9 @@
 		/* TODO: test if sharing interrupts works */
 		printk (KERN_DEBUG "PCI parallel port detected: %04x:%04x, "
 			"I/O at %#lx(%#lx)\n",
-			parport_pc_pci_tbl[i + last_sio].vendor,
-			parport_pc_pci_tbl[i + last_sio].device, io_lo, io_hi);
-		if (parport_pc_probe_port (io_lo, io_hi, PARPORT_IRQ_NONE,
+			dev->vendor,
+			dev->device, io_lo, io_hi);
+		if (parport_pc_probe_port (io_lo, io_hi, dev->irq,
 					   PARPORT_DMA_NONE, dev))
 			count++;
 	}
usr/src/linux/Documentation/parport.txt renamed from tmp/linux-2.4.26/Documentation/parport.txt +3 -1
@@ -33,7 +33,9 @@
 
 PCI parallel I/O card support comes from parport_pc.  Base I/O
 addresses should not be specified for supported PCI cards since they
-are automatically detected.
+are automatically detected.  If you have a multi PCI I/O card, try
+to use the parport_serial module if parport_pc does not catch
+all the ports by itself.
 
 
 KMod