8250 driver patch for Blackfin platforms

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello,

I had modified the 8250.c driver as follows for Blackfin uClinux. Robin Getz had suggested me that this patch should be sumitted upstream. I hope that this is is the right way.

Regards,

Javier

--- trunk/drivers/serial/8250.c	2007-11-25 22:05:33 UTC (rev 3932)
+++ trunk/drivers/serial/8250.c	2007-11-25 22:08:02 UTC (rev 3933)
@@ -92,7 +92,9 @@
  */
 #define CONFIG_HUB6 1
+#ifndef CONFIG_BLACKFIN
 #include <asm/serial.h>
+#endif
/*
  * SERIAL_PORT_DFNS tells us about built-in ports that have no
@@ -1544,6 +1546,10 @@
 		i->head = &up->list;
 		spin_unlock_irq(&i->lock);
+#ifdef CONFIG_BLACKFIN
+		irq_flags |= IRQF_TRIGGER_HIGH;
+#endif
+
 		ret = request_irq(up->port.irq, serial8250_interrupt,
 				  irq_flags, "serial", i);
 		if (ret < 0)




--
------------------------------------------------------------------------
Javier Herrero                            EMAIL: jherrero@xxxxxxxxxxxxxx
HV Sistemas S.L.                          PHONE:         +34 949 336 806
Los Charcones, 17A                        FAX:           +34 949 336 792
19170 El Casar - Guadalajara - Spain WEB: http://www.hvsistemas.com
-
To unsubscribe from this list: send the line "unsubscribe linux-serial" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Linux PPP]     [Linux FS]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Linmodem]     [Device Mapper]     [Linux Kernel for ARM]

  Powered by Linux