Hi,
Looks good to me, but I don't have access to NSC chips anymore,
so I cannot test it. Maybe some more people could test this patch
before we ship it to Linus?
-- Dag
On Tue, 27 Feb 2001 09:51:31 -0800, Jean Tourrilhes wrote:
> Thomas Hood wrote :
> >
> > Hi. Here's a patch for drivers/net/irda/nsc-ircc.c
> > 80% of the changes are minor changes to messages,
> > designed to make them all consistent.
> >
> > The other 20% fix a number of bugs.
>
> Great work !
>
> > > @@ -160,7 +160,7 @@
> > > int i = 0;
> > >
> > > /* Probe for all the NSC chipsets we know about */
> > > - for (chip=chips; chip->name ; chip++,i++) {
> > > + for (chip=chips; chip->name ; chip++) {
> >
> > Variable "i" counts the number of found chips. With
> > the "i++" here, if one has a PC97338 then one has to
> > enter "irq=4,4 io=0x3e8,0x3e8" as the options.
>
> Correct. Not many people are using those options.
>
> > [...]
> > > - if (io[i] < 2000) {
> > > + if (io[i] < 0x2000) {
> >
> > Typo.
>
> Ouch !
>
> > [...]
> > >
> > > - pnp = (reg >> 4) & 0x01;
> > > + pnp = (reg >> 3) & 0x01;
> >
> > An important change. The pnp flag is bit 3, not bit 4.
> > See datasheet.
>
> Re-Ouch !
> What's the impact ?
>
> > > --- net/irda/af_irda.c_2.4.2 Mon Jan 29 01:59:34 2001
> > > +++ net/irda/af_irda.c Mon Feb 26 19:12:12 2001
> > > @@ -2434,5 +2434,7 @@
> > >
> > > MODULE_AUTHOR("Dag Brattli <[EMAIL PROTECTED]>");
> > > MODULE_DESCRIPTION("The Linux IrDA Protocol Subsystem");
> > > +#ifdef CONFIG_IRDA_DEBUG
> > > MODULE_PARM(irda_debug, "1l");
> > > +#endif
> > > #endif /* MODULE */
> >
> > Without this, if CONFIG_IRDA_DEBUG is not defined then irda_debug
> > is an unresolved symbol.
>
> Good one...
>
> Dag : any comments ?
>
> Jean
>
>
----
Dag Brattli <[EMAIL PROTECTED]>
My homepage http://www.brattli.net/dag/
Try Linux-IrDA: http://irda.sourceforge.net/
Try Pygmy: http://pygmy.sourceforge.net/
_______________________________________________
Linux-IrDA mailing list - [EMAIL PROTECTED]
http://www.pasta.cs.UiT.No/mailman/listinfo/linux-irda