[parisc-linux] Patch to enable IrDA :-)
Jochen Friedrich
jochen@scram.de
Wed, 1 May 2002 02:08:48 +0200 (CEST)
Hi,
this tiny patch enables the usage of IrDA dongles on the PA-RISC :-)
# cvs diff -u drivers/net/irda/irtty.c arch/parisc/config.in
Index: drivers/net/irda/irtty.c
===================================================================
RCS file: /var/cvs/linux/drivers/net/irda/irtty.c,v
retrieving revision 1.8
diff -u -r1.8 irtty.c
--- drivers/net/irda/irtty.c 2001/11/09 23:36:06 1.8
+++ drivers/net/irda/irtty.c 2002/05/01 00:07:28
@@ -26,6 +26,7 @@
#include <linux/module.h>
#include <linux/kernel.h>
+#include <linux/config.h>
#include <linux/tty.h>
#include <linux/init.h>
#include <linux/skbuff.h>
@@ -767,6 +768,9 @@
#ifdef TIOCM_OUT2 /* Not defined for ARM */
arg = TIOCM_OUT2;
+#endif
+#ifdef CONFIG_PARISC /* PA-RISC uses OUT1 as hardware flow control bit
*/
+ arg |= TIOCM_OUT1;
#endif
if (rts)
arg |= TIOCM_RTS;
Index: arch/parisc/config.in
===================================================================
RCS file: /var/cvs/linux/arch/parisc/config.in,v
retrieving revision 1.39
diff -u -r1.39 config.in
--- arch/parisc/config.in 2001/11/08 21:17:52 1.39
+++ arch/parisc/config.in 2002/05/01 00:07:28
@@ -153,6 +153,8 @@
source fs/Config.in
+source net/irda/Config.in
+
if [ "$CONFIG_VT" = "y" ]; then
mainmenu_option next_comment
comment 'Console drivers'
Cheers,
--jochen