: donauboe IrDA driver (resend)
Subsystems (2)
PATCH 1/1 : donauboe IrDA driver (resend)
Hi Marcelo,
I've noticed that the attached patch was also not included in
2.4.21-pre2.
It's a new driver that replaces the old toshoboe by fixing a
mountain of bugs and adding support for newer revisions of the hardware, and is therefore anticipated by people having this hardware (and who don't want to upgrade to 2.5.X). I decided to include this new driver alongside the old driver to be on the safe side.
I checked that it applies properly in 2.4.21-pre2, so would
you mind applying that to your kernel ?
Thanks... Jean
ir241_donauboe-2.diff :
---------------------
<Following patch from Martin Lucina & Christian Gennerat>
o [FEATURE] Rewrite of the toshoboe driver using documentation
o [FEATURE] Support Donau oboe chipsets.
o [FEATURE] FIR support
o [CORRECT] Probe chip before opening
o [FEATURE] suspend/resume support
o [FEATURE] Numerous other improvements/cleanups <Currently, we keep the old toshoboe driver around>
Documentation/Configure.help renamed from Documentation/Configure.d2.help +15 -4
@@ -24413,13 +24413,24 @@ CONFIG_NS83820 say M here and read <file:Documentation/modules.txt>. The module will be called ns83820.o. +Toshiba Type-O IR Port device driver (old driver) +CONFIG_TOSHIBA_OLD + Say Y here if you want to build support for the Toshiba Type-O IR + chipset. This chipset is used by the Toshiba Libretto 100CT, and + many more laptops. This driver is obsolete, will no more be + maintained and will be removed in favor of the new driver. + If you want to compile it as a module, say M here and read + <file:Documentation/modules.txt>. + The module will be called toshoboe.o. + Toshiba Type-O IR Port device driver CONFIG_TOSHIBA_FIR Say Y here if you want to build support for the Toshiba Type-O IR - chipset. This chipset is used by the Toshiba Libretto 100CT, and - many more laptops. If you want to compile it as a module, say M - here and read <file:Documentation/modules.txt>. The module will be - called toshoboe.o. + and Donau oboe chipsets. These chipsets are used by the Toshiba + Libretto 100/110CT, Tecra 8100, Portege 7020 and many more laptops. + If you want to compile it as a module, say M here and read + <file:Documentation/modules.txt>. + The module will be called donauboe.o. SMC IrCC CONFIG_SMC_IRCC_FIR
drivers/net/irda/Config.in renamed from drivers/net/irda.d2/Config.in +1 -0
@@ -28,6 +28,7 @@ comment 'FIR device drivers' dep_tristate 'IrDA USB dongles (Experimental)' CONFIG_USB_IRDA $CONFIG_IRDA $CONFIG_USB $CONFIG_EXPERIMENTAL dep_tristate 'NSC PC87108/PC87338' CONFIG_NSC_FIR $CONFIG_IRDA dep_tristate 'Winbond W83977AF (IR)' CONFIG_WINBOND_FIR $CONFIG_IRDA +dep_tristate 'Toshiba Type-O IR Port (old driver)' CONFIG_TOSHIBA_OLD $CONFIG_IRDA dep_tristate 'Toshiba Type-O IR Port' CONFIG_TOSHIBA_FIR $CONFIG_IRDA if [ "$CONFIG_MIPS" = "y" ]; then dep_tristate 'Alchemy Au1000 SIR/FIR' CONFIG_AU1000_FIR $CONFIG_IRDA
drivers/net/irda/Makefile renamed from drivers/net/irda.d2/Makefile +2 -1
@@ -17,7 +17,8 @@ obj-$(CONFIG_USB_IRDA) += irda-usb.o obj-$(CONFIG_NSC_FIR) += nsc-ircc.o obj-$(CONFIG_WINBOND_FIR) += w83977af_ir.o obj-$(CONFIG_SA1100_FIR) += sa1100_ir.o -obj-$(CONFIG_TOSHIBA_FIR) += toshoboe.o +obj-$(CONFIG_TOSHIBA_OLD) += toshoboe.o +obj-$(CONFIG_TOSHIBA_FIR) += donauboe.o obj-$(CONFIG_SMC_IRCC_FIR) += smc-ircc.o irport.o obj-$(CONFIG_ALI_FIR) += ali-ircc.o obj-$(CONFIG_VLSI_FIR) += vlsi_ir.o
drivers/net/irda/donauboe.c renamed from drivers/net/irda.d2/donauboe.c +1850 -0
1,850 lines not on this page · raw message
drivers/net/irda/donauboe.h renamed from drivers/net/irda.d2/donauboe.h +363 -0
363 lines not on this page · raw message
Hello,
This module does not load all the time for me. If I do an "modprobe donauboe" it gives something like:
TX: (144,80) (144,84) (144,80) (144,84) (0,00) (0,00) (0,00) (0,00) [9600]
RRTSRRT 4181
RX: (130,00) (130,00) (130,00) (130,00) (0,80) (0,80) (0,80) (0,80)
TX: (144,80) (144,84) (144,80) (144,84) (0,00) (0,00) (0,00) (0,00) [115200]
RRTSRRT 4117
RX: (130,00) (130,00) (130,00) (130,00) (0,80) (0,80) (0,80) (0,80)
TX: (128,84) (128,90) (128,84) (128,b4) (0,00) (0,00) (0,00) (0,00) [4000000]
TSRTSTR 3861
RX: (264,00) (264,20) (0,80) (0,80) (0,80) (0,80) (0,80) (0,80)
TX: (128,84) (128,90) (128,84) (128,b4) (0,00) (0,00) (0,00) (0,00) [1152000]
TSTST<3>toshoboeprobe(1152000) failed filter test
toshoboe: Register dump:
Interrupts: Tx:203 Rx:0 TxUnder:0 RxOver:0 Sip:0
RX 00 TX 44 RingBase 0f355c00RING_SIZE 11 IER ff ISR 07
CONFIG1 08 STATUS 00
CONFIG0 4ea0 ENABLE 937cNEW_PCONFIG 0101 CURR_PCONFIG 0101
MAXLEN 0c04 RXCOUNT 0100
Ring at 0f355c00:
RX: (0,80) (0,80) (0,80) (0,80) (0,80) (0,80) (0,80) (0,80)
TX: (128,00) (128,00) (128,00) (128,00) (0,00) (0,00) (0,00) (0,00)
If I try a few more times it will finally load...
The kernel is 2.4.20.0.pp.9 (RH rawhide kernel - 2.4.20-ac1 based) + acpi20021205 . I don't know why lspci shows "Toshiba Tecra 8100". The machine is an Toshiba Satellite Pro 4320.
Output of lspci:
00:00.0 Host bridge: Intel Corp. 440BX/ZX/DX - 82443BX/ZX/DX Host bridge (rev 03)
Subsystem: Toshiba America Info Systems Toshiba Tecra 8100 Laptop
System Chipset
Flags: bus master, medium devsel, latency 64
Memory at d0000000 (32-bit, prefetchable) [size=256M]
Capabilities: <available only to root>
00:01.0 PCI bridge: Intel Corp. 440BX/ZX/DX - 82443BX/ZX/DX AGP bridge (rev 03) (prog-if 00 [Normal decode])
Flags: bus master, 66Mhz, medium devsel, latency 64 Bus: primary=00, secondary=01, subordinate=01, sec-latency=64 Memory behind bridge: f0000000-f7ffffff
00:05.0 Bridge: Intel Corp. 82371AB/EB/MB PIIX4 ISA (rev 02)
Flags: bus master, medium devsel, latency 0
00:05.1 IDE interface: Intel Corp. 82371AB/EB/MB PIIX4 IDE (rev 01) (prog-if 80 [Master])
Flags: bus master, medium devsel, latency 64 I/O ports at fff0 [size=16]
00:05.2 USB Controller: Intel Corp. 82371AB/EB/MB PIIX4 USB (rev 01) (prog-if 00 [UHCI])
Flags: bus master, medium devsel, latency 64, IRQ 11 I/O ports at ff80 [size=32]
00:05.3 Bridge: Intel Corp. 82371AB/EB/MB PIIX4 ACPI (rev 03)
Flags: medium devsel, IRQ 9
00:07.0 Communication controller: Lucent Microelectronics 56k WinModem (rev 01)
Subsystem: Toshiba America Info Systems Internal V.90 Modem Flags: bus master, medium devsel, latency 0, IRQ 3 Memory at ffefff00 (32-bit, non-prefetchable) [size=256] I/O ports at 02f8 [size=8] I/O ports at 1c00 [size=256] Capabilities: <available only to root>
00:09.0 IRDA controller: Toshiba America Info Systems FIR Port Type-DO
Subsystem: Toshiba America Info Systems FIR Port Type-DO
Flags: slow devsel, IRQ 11
I/O ports at ff60 [size=32]
Capabilities: <available only to root>
00:0b.0 CardBus bridge: Toshiba America Info Systems ToPIC95 (rev 07)
Subsystem: Toshiba America Info Systems: Unknown device 0001 Flags: bus master, slow devsel, latency 168, IRQ 11 Memory at 10000000 (32-bit, non-prefetchable) [size=4K] Bus: primary=00, secondary=14, subordinate=14, sec-latency=0 Memory window 0: 10400000-107ff000 (prefetchable) Memory window 1: 10800000-10bff000 I/O window 0: 00004000-000040ff I/O window 1: 00004400-000044ff 16-bit legacy interface ports at 0001
00:0b.1 CardBus bridge: Toshiba America Info Systems ToPIC95 (rev 07)
Subsystem: Toshiba America Info Systems: Unknown device 0001 Flags: bus master, slow devsel, latency 168, IRQ 11 Memory at 10001000 (32-bit, non-prefetchable) [size=4K] Bus: primary=00, secondary=15, subordinate=15, sec-latency=0 Memory window 0: 10c00000-10fff000 (prefetchable) Memory window 1: 11000000-113ff000 I/O window 0: 00004800-000048ff I/O window 1: 00004c00-00004cff 16-bit legacy interface ports at 0001
00:0c.0 Multimedia audio controller: Yamaha Corporation YMF-744B [DS-1S Audio Controller] (rev 02)
Subsystem: Toshiba America Info Systems: Unknown device 0001
Flags: bus master, medium devsel, latency 64, IRQ 11 Memory at efff8000 (32-bit, non-prefetchable) [size=32K] I/O ports at ff00 [size=64]
I/O ports at fefc [size=4]
Capabilities: <available only to root>
01:00.0 VGA compatible controller: S3 Inc. 86C270-294 Savage/IX-MV (rev
11) (prog-if 00 [VGA])
Subsystem: Toshiba America Info Systems: Unknown device 0001
Flags: bus master, 66Mhz, medium devsel, latency 248, IRQ 11 Memory at f0000000 (32-bit, non-prefetchable) [size=128M] Expansion ROM at 000c0000 [disabled] [size=64K]
Capabilities: <available only to root>
--
Cioby
Quoted 6 lines · Dumitru Ciobarcianu
Hello,
This module does not load all the time for me. If I do an "modprobe donauboe" it gives something like:
[...]
Quoted 6 lines
If I try a few more times it will finally load...
The kernel is 2.4.20.0.pp.9 (RH rawhide kernel - 2.4.20-ac1 based) + acpi20021205 . I don't know why lspci shows "Toshiba Tecra 8100". The machine is an Toshiba Satellite Pro 4320.
As I don't have this hardware, I fully depend on people trying
the code to know if it works or not. This driver has been for 6 months in kernel 2.5.X and on my web page (and advertised on the IrDA mailing list), and it's only today that I get the first negative bug report.
I really wonder what I do wrong. Maybe I should throw untested
code straight in 2.4.X, like other people do, that may bring the bug report faster.
From my casual look at the driver code, it looks like the
hardware self test is failing. There is a way to disable this self test via module parameter "do_probe". Maybe you want to check that.
Also, would you mind sending this bug report to all three
maintainers of the driver ? Also : would you mind sending the log output of the old toshoboe driver (assuming it works - does it ?).
Have fun... Jean
P.S. : Full e-mail is at :
http://marc.theaimsgroup.com/?l=linux-kernel&m=104031025012364&w=2
Quoted 6 lines · Jean Tourrilhes
Quoted 1 line · Dumitru Ciobarcianu
As I don't have this hardware, I fully depend on people trying
the code to know if it works or not. This driver has been for 6 months in kernel 2.5.X and on my web page (and advertised on the IrDA mailing list), and it's only today that I get the first negative bug report.
[...]
Quoted 3 lines
Also, would you mind sending this bug report to all three
maintainers of the driver ? Also : would you mind sending the log output of the old toshoboe driver (assuming it works - does it ?).
Well, about the bug report it could be me being lazy or not having enough time... :)
It works with the old toshoboe driver.
If I load the module with "do_probe=0" donauoboe loads on the first try, thanks for the hint:
toshoboe: Using multiple tasks, version $Id: donauboe.c V2.17 jeu sep 12 08:50:20 2002 $
This is what I dug up from an old bootlog (for the old toshoboe messages):
Linux version 2.4.18-5.64LNX ([email protected]) (gcc version 3.1
20020620 (Red Hat Linux Rawhide 3.1-7)) #1 Wed Jul 10 00:30:01 EEST 2002 [..snip..]
IrDA: Registered device irda0
ToshOboe: Using single tasks, version $Id: toshoboe.c,v 1.91 1999/06/29 14:21:06 root Exp $
ToshOboe: setting baud to 9600
[..snip..]
Let me know if I can be of any help.
//Cioby
As I am not on LKML, I have not seen your
http://www.uwsg.indiana.edu/hypermail/linux/kernel/0212.2/0900.html
only Jean's reply.
Your problem is the same as Martin Lucina had, and I can reply the same as
Quoted 10 lines · Martin Lucina
kern.log:Oct 25 20:06:12 localhost kernel: TSTST<3>toshoboeprobe(1152000) failed filter test
That's an almost 50/50 failure rate, by a completely unscientific estimate.
Is the self test actually neccessary for the chip to function? If not, is there much point in having it enabled, at least as far as 2.4.x is concerned?
The test shows that there is a deep misunderstanding of how works MIR mode, and chaining blocks for optimization at MIR mode. some people say "MIR works" . That is good for them.
I would prefer to have "#undef USE_MIR"
So, test is not necessary for every day use. Just put options donauboe do_probe=0
in your /etc/modules.conf
Quoted 8 lines · Christian Gennerat
The test shows that there is a deep misunderstanding of how works MIR mode, and chaining blocks for optimization at MIR mode. some people say "MIR works" . That is good for them.
I would prefer to have "#undefUSE_MIR"So, test is not necessary for every day use. Just put options donauboe do_probe=0
in your/etc/modules.conf
Ok, so wouldn't make sense to make this the default for 2.4 ?
//Cioby