patch-2.4.0-test11-irda1
Subsystems (3)
PATCH 1/1 patch-2.4.0-test11-irda1
Linus,
Please apply this patch to your latest 2.4 code. The patch have been tested by users at the Linux-IrDA mailing-list which confirms that it fixes the specific problems listed below.
Changes:
o Devfs support with IrCOMM (pmhahn?)
o IrLAN connection failures with DHCP (me)
o NSC FIR dongle fixes (Pontus Fuchs)
o Fixes IrLAP discovery problems with some devices (me)
o Updates to some doc files (me)
-- Dag
Documentation/networking/irda.txt +3 -3
@@ -1,10 +1,10 @@ To use the IrDA protocols within Linux you will need to get a suitable copy of the IrDA Utilities. More detailed information about these and associated -programs can be found on http://www.cs.uit.no/linux-irda/ +programs can be found on http://irda.sourceforge.net/ For more information about how to use the IrDA protocol stack, see the -IR-HOWTO (http://www.snafu.de/~wehe/IR-HOWTO.html) written by Werner Heuser -<[email protected]> +IR-HOWTO (http://www.mobilix.org/Infrared-HOWTO/Infrared-HOWTO.html) written by Werner Heuser +<[email protected]> There is an active mailing list for discussing Linux-IrDA matters called linux-irda. To subscribe to it, visit:
MAINTAINERS +2 -2
@@ -645,9 +645,9 @@ S: Maintained IRDA SUBSYSTEM P: Dag Brattli -M: Dag Brattli <[email protected]> +M: Dag Brattli <[email protected]> L: [email protected] -W: http://www.cs.uit.no/linux-irda/ +W: http://irda.sourceforge.net/ S: Maintained ISAPNP
drivers/net/irda/irtty.c +1 -1
@@ -960,7 +960,7 @@ static int irtty_net_ioctl(struct net_de ASSERT(self != NULL, return -1;); ASSERT(self->magic == IRTTY_MAGIC, return -1;); -IRDA_DEBUG (2 , __FUNCTION__"(), %s, (cmd=0x%X)\n" , dev->name, cmd); +IRDA_DEBUG (3 , __FUNCTION__"(), %s, (cmd=0x%X)\n" , dev->name, cmd);/* Disable interrupts & save flags */ save_flags (flags);
drivers/net/irda/nsc-ircc.c +7 -7
@@ -708,9 +708,12 @@ static int nsc_ircc_setup(chipio_t *infoswitch_bank (iobase,BANK0 );/* Set FIFO threshold to TX17, RX16, reset and enable FIFO's */ -switch_bank (iobase,BANK0 ); +switch_bank (iobase,BANK0 );outb (FCR_RXTH |FCR_TXTH |FCR_TXSR |FCR_RXSR |FCR_FIFO_EN , iobase+FCR ); - + +outb (0x03 , iobase+LCR );/* 8 bit word length */ +outb (MCR_SIR , iobase+MCR );/* Start at SIR-mode, also clears LSR*/ +/* Set FIFO size to 32 */ switch_bank (iobase,BANK2 );outb (EXCR2_RFSIZ |EXCR2_TFSIZ , iobase+EXCR2 );
@@ -723,7 +726,7 @@ static int nsc_ircc_setup(chipio_t *infoswitch_bank (iobase,BANK6 );outb (0x20 , iobase+0 );/* Set 32 bits FIR CRC */ outb (0x0a , iobase+1 );/* Set MIR pulse width */ -outb (0x0d , iobase+2 );/* Set SIR pulse width */ +outb (0x0d , iobase+2 );/* Set SIR pulse width to 1.6us */ outb (0x2a , iobase+4 );/* Set beginning frag, and preamble length */ MESSAGE ("%s, driver loaded (Dag Brattli)\n" , driver_name);
@@ -804,8 +807,6 @@ static void nsc_ircc_init_dongle_interfa dongle_types[dongle_id]);break ;case 0x04 :/* Sharp RY5HD01 */ -IRDA_DEBUG (0 , __FUNCTION__"(), %s not supported yet\n" , - dongle_types[dongle_id]);break ;case 0x05 :/* Reserved, but this is what the Thinkpad reports */ IRDA_DEBUG(0, __FUNCTION__ "(), %s not defined by irda yet\n",
@@ -892,8 +893,7 @@ static void nsc_ircc_change_dongle_speed dongle_types[dongle_id]);break ;case 0x04 :/* Sharp RY5HD01 */ -IRDA_DEBUG (0 , __FUNCTION__"(), %s not supported yet\n" , - dongle_types[dongle_id]); +break ;case 0x05 :/* Reserved */ IRDA_DEBUG (0 , __FUNCTION__"(), %s not defined by irda yet\n" , dongle_types[dongle_id]);
net/irda/ircomm/ircomm_core.c +1 -1
@@ -512,7 +512,7 @@ int ircomm_proc_read(char *buf, char **s#endif /* CONFIG_PROC_FS */ #ifdef MODULE -MODULE_AUTHOR ("Dag Brattli <[email protected]>" ); +MODULE_AUTHOR ("Dag Brattli <[email protected]>" );MODULE_DESCRIPTION ("IrCOMM protocol" );int init_module (void )
net/irda/ircomm/ircomm_tty.c +4 -0
@@ -100,7 +100,11 @@ int __init ircomm_tty_init(void)memset (&driver,0 ,sizeof (struct tty_driver )); driver.magic =TTY_DRIVER_MAGIC ; driver.driver_name ="ircomm" ; +#ifdef CONFIG_DEVFS_FS + driver.name ="ircomm%d" ; +#else driver.name ="ircomm" ; +#endif driver.major =IRCOMM_TTY_MAJOR ; driver.minor_start =IRCOMM_TTY_MINOR ; driver.num =IRCOMM_TTY_PORTS ;
net/irda/irlan/irlan_client_event.c +1 -2
@@ -108,11 +108,10 @@ static int irlan_client_state_idle(struc self->client.iriap =iriap_open (LSAP_ANY ,IAS_CLIENT , self, irlan_client_get_value_confirm);/* Get some values from peer IAS */ +irlan_next_client_state (self,IRLAN_QUERY );iriap_getvaluebyclass_request (self->client.iriap, self->saddr, self->daddr,"IrLAN" ,"IrDA:TinyTP:LsapSel" ); - -irlan_next_client_state (self,IRLAN_QUERY );break ;case IRLAN_WATCHDOG_TIMEOUT :IRDA_DEBUG (2 , __FUNCTION__"(), IRLAN_WATCHDOG_TIMEOUT\n" );
net/irda/irlap_event.c +7 -7
@@ -4,10 +4,10 @@* Version: 0.9 * Description: IrLAP state machine implementation * Status: Experimental. -* Author: Dag Brattli <[email protected]> +* Author: Dag Brattli <[email protected]> * Created at: Sat Aug 16 00:59:29 1997 * Modified at: Sat Dec 25 21:07:57 1999 -* Modified by: Dag Brattli <[email protected]> +* Modified by: Dag Brattli <[email protected]> * * Copyright (c) 1998-2000 Dag Brattli <[email protected]>, * Copyright (c) 1998 Thomas Davis <[email protected]>
@@ -551,13 +551,15 @@ static int irlap_state_query(struct irla* since we want to work even with devices that violate the * timing requirements. */ -if (irda_device_is_receiving (self->netdev)) { -IRDA_DEBUG (1 , __FUNCTION__ +if (irda_device_is_receiving (self->netdev) && !self->add_wait) { +IRDA_DEBUG (2 , __FUNCTION__"(), device is slow to answer, " "waiting some more!\n" );irlap_start_slot_timer (self,MSECS_TO_JIFFIES (10 )); + self->add_wait = TRUE;return ret; } + self->add_wait = FALSE;if (self->s < self->S) { irlap_send_discovery_xid_frame(self, self->S,
@@ -1324,9 +1326,7 @@ static int irlap_state_nrm_p(struct irla* of receiving a frame (page 45, IrLAP). Check that * we only do this once for each frame. */ -if (irda_device_is_receiving (self->netdev) && - !self->add_wait) - { +if (irda_device_is_receiving (self->netdev) && !self->add_wait) {IRDA_DEBUG (1 ,"FINAL_TIMER_EXPIRED when receiving a " "frame! Waiting a little bit more!\n" );irlap_start_final_timer (self,MSECS_TO_JIFFIES (300 ));
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected]
Please read the FAQ at http://www.tux.org/lkml/