linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Jean Tourrilhes <jt@bougret.hpl.hp.com>
To: Alessandro Suardi <alessandro.suardi@oracle.com>
Cc: linux-kernel@vger.kernel.org, irda-users@lists.sourceforge.net
Subject: Re: 2.5.42: IrDA issues
Date: Thu, 24 Oct 2002 09:49:59 -0700	[thread overview]
Message-ID: <20021024164959.GB26173@bougret.hpl.hp.com> (raw)
In-Reply-To: <3DB7BA01.5010506@oracle.com>

On Thu, Oct 24, 2002 at 11:14:41AM +0200, Alessandro Suardi wrote:
> Jean Tourrilhes wrote:
> 
> [snip]
> 
> >>>    Stop ! Daniele Peri has just released a new version of the SMC
> >>>driver (smc-ircc2, link on my web page). I would like you to try this
> >>>new driver and report to me. I plan to push this new driver in the
> >>>kernel soon. So, don't waste too much time on the old driver.
> >>
> >>Unfortunately I can't compile the new driver. I modified the Makefile to
> >>comment out versioning (which i don't use) and change kernelversion
> >>to an appropriate 2.5.44, but it fails like this:
> >>
> >>In file included from /usr/src/linux-2.5.44/include/linux/irq.h:19,
> >>                from /usr/src/linux-2.5.44/include/asm/hardirq.h:6,
> >>                from /usr/src/linux-2.5.44/include/linux/interrupt.h:25,
> >>                from /usr/src/linux-2.5.44/include/linux/netdevice.h:454,
> >>                from smsc-ircc2.c:47:
> >>/usr/src/linux-2.5.44/include/asm/irq.h:16:25: irq_vectors.h: No such 
> >>file or directory
> >
> >
> >	Wow ! That's a weird one.
> >	The file in question is in .../arch/i386/mach-generic/. You
> >may be able to modify the compile directive to add that to the
> >compilation (a "-I" argument).
> 
> OK, this is a beginnning :)
> 
> I also had to replace all (mis)usages of __FUNCTION__ in printks,
>  ERROR and WARNING macros to get the driver to build, and finally
>  I built and loaded it.
> 
> So - with this driver the IrDA communication hangs as soon as the
>  first messages try to go from the PPP script to the phone, and I
>  have to kill irattach and restart it to see anything more from
>  irdadump.
> 
> Relevant info... from dmesg:
> 
> -------------------------------------------------------------------
> smsc_ircc_look_for_chips(): probing: 0x3f0 for: 0x0d
> smsc_ircc_probe(): cfgbase: 0x3f0, reg: 0x0d, type: FDC
> smsc_ircc_probe(): cfgbase: 0x3f0, reg: 0x20, type: FDC
> found SMC SuperIO Chip (devid=0x09 rev=08 base=0x03f0): FDC37N958FR
> SMsC IrDA Controller found
>  IrCC version 1.1, firport 0x290, sirport 0x3e8 dma=3, irq=4
> smsc_ircc_setup_io(): reading chip settings: dma: 255, irq: 255
>  Toshiba Satellite 1800 (GP data pin select) transceiver found
> IrDA: Registered device irda0
> smsc_ircc_look_for_chips(): probing: 0x370 for: 0x0d
> smsc_ircc_probe(): cfgbase: 0x370, reg: 0x0d, type: FDC
> smsc_ircc_probe(): cfgbase: 0x370, reg: 0x20, type: FDC
> smsc_ircc_look_for_chips(): probing: 0xe0 for: 0x0d
> smsc_ircc_probe(): cfgbase: 0xe0, reg: 0x0d, type: FDC
> smsc_ircc_probe(): cfgbase: 0xe0, reg: 0x20, type: FDC
> smsc_ircc_look_for_chips(): probing: 0x2e for: 0x0e
> smsc_ircc_probe(): cfgbase: 0x2e, reg: 0x0d, type: LPC
> smsc_ircc_probe(): cfgbase: 0x2e, reg: 0x20, type: LPC
> smsc_ircc_look_for_chips(): probing: 0x4e for: 0x0e
> smsc_ircc_probe(): cfgbase: 0x4e, reg: 0x0d, type: LPC
> smsc_ircc_probe(): cfgbase: 0x4e, reg: 0x20, type: LPC
> smsc_ircc_change_speed(): changing speed to: 9600
> smsc_ircc_sir_start()
> CSLIP: code copyright 1989 Regents of the University of California
> PPP generic driver version 2.4.2
> smsc_ircc_hard_xmit_sir(): changing speed.
> smsc_ircc_change_speed(): changing speed to: 1152000
> smsc_ircc_fir_start()
> smsc_ircc_set_fir_speed(): changing speed to: 1152000
> IrLAP, no activity on link!
> IrLAP, no activity on link!
> IrLAP, no activity on link!
> IrLAP, no activity on link!
> -------------------------------------------------------------------
> 
> 
> (1152000 should possibly be 115200 ?)
> 
> 
> And irdadump says:
> 
> --------------------------------------------------------
> 09:03:00.842829 xid:cmd 589c38b5 > ffffffff S=6 s=0 (14)
> 09:03:00.932819 xid:cmd 589c38b5 > ffffffff S=6 s=1 (14)
> 09:03:01.022788 xid:cmd 589c38b5 > ffffffff S=6 s=2 (14)
> 09:03:01.112789 xid:cmd 589c38b5 > ffffffff S=6 s=3 (14)
> 09:03:01.202787 xid:cmd 589c38b5 > ffffffff S=6 s=4 (14)
> 09:03:01.292756 xid:cmd 589c38b5 > ffffffff S=6 s=5 (14)
> 09:03:01.369859 xid:rsp 589c38b5 < bb700000 S=6 s=5 Nokia 6310 hint=b125 
> [ PnP Modem Fax Telephony IrCOMM IrOBEX ] (27)
> 09:03:01.382763 xid:cmd 589c38b5 > ffffffff S=6 s=* dolphin hint=0400 [ 
> Computer ] (23)
> 09:03:01.422691 snrm:cmd ca=fe pf=1 589c38b5 > bb700000 new-ca=66 (33)
> 09:03:01.524835 ua:rsp ca=66 pf=1 589c38b5 < bb700000 (31)
> 09:03:01.524997 rr:cmd > ca=66 pf=1 nr=0 (2)
> 09:03:01.774694 rr:cmd > ca=66 pf=1 nr=0 (2)
> 09:03:02.274609 rr:cmd > ca=66 pf=1 nr=0 (2)
> 09:03:02.774533 rr:cmd > ca=66 pf=1 nr=0 (2)
> --------------------------------------------------------
> 
> Then hangs (all this is with the 20021007 driver).
> 
> 
> Hope it's helpful, ciao,
> 
> --alessandro

	That's a speed problem (1152000 is MIR). You are supposed to
select the proper module parameters to get speed changes to MIR/FIR to
work properly (check IrDA mailing list messages from Daniele). Another
solution is to limit the speed of the stack to 115200 (115k - see my
web page for details).

	Good luck...

	Jean

  reply	other threads:[~2002-10-24 16:45 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-10-23 21:38 2.5.42: IrDA issues ALESSANDRO.SUARDI
2002-10-23 21:55 ` Jean Tourrilhes
2002-10-24  9:14   ` Alessandro Suardi
2002-10-24 16:49     ` Jean Tourrilhes [this message]
2002-10-23 22:06 ` Martin Diehl
  -- strict thread matches above, loose matches on Subject: below --
2002-11-02 20:36 ALESSANDRO.SUARDI
2002-11-04 21:11 ` Jean Tourrilhes
2002-10-13 13:27 ALESSANDRO.SUARDI
2002-10-14 17:34 ` Jean Tourrilhes
2002-10-21  9:19   ` Alessandro Suardi
2002-10-21 17:22     ` Jean Tourrilhes

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20021024164959.GB26173@bougret.hpl.hp.com \
    --to=jt@bougret.hpl.hp.com \
    --cc=alessandro.suardi@oracle.com \
    --cc=irda-users@lists.sourceforge.net \
    --cc=jt@hpl.hp.com \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).