Backport via-ircc to Linux-2.4 from 2.6
Subsystems (2)
A message that is not in the archive (sent off-list or not yet received): [email protected]
Hi,
look, I do not have much time for this political discussion. All I say is:
- I backported the VIA FIR IRDA driver from 2.6 because I needed it
- Most other AMD-based laptop users will need it too
- The driver (or at least a close relative) worked flawlessly for me for 1 year
- The backport does not affect other drivers or system stability even when loaded
- I am willing to maintain it till 2.4 is phased out. Which is the case when distros decide to go 2.6, but no earlier.
Here is the patch, take it or leave it or start talking CODE.
-- j
Quoted 46 lines · Jens David
Quoted 11 lines
Hi,
Quoted 4 lines · Jean
I received very little feedback on the VIA driver (included in
2.6.X), and a few of them were negatives.I used the original VIA driver for almost a year now with the original Mandrake-9.1 kernel (2.4.21 based) flawlessly. This one, which is a pure 1:1 copy from 2.6 with make rules etc. adjusted for about a week now, flawlessly.
Good to know.
Quoted 5 lines
Quoted 4 lines
My policy has been to not backport into 2.4.X code which has not been successfully tested in 2.6.X, because 2.4.X is supposed to be stable, and up to now I don't consider the VIA driver tested. You have a few other drivers that were not backported for this exact reason.
Quoted 8 lines
Well, as a simple user (I just do kernel hacking for relaxization) I must admit that I do not really understand this.
I would rather accept an untested or slightly flawed driver (bad suspend support, busy-waits, bad coding style etc.), as long as it is clearly marked "experimental", than not being able to use the device at all. I suppose most users would second that. And there should be a lot of them as any VIA686-based notebook with IRDA support _needs_ this driver to use IRDA _at_all_. The generic SIR driver will _not_ work.You probably don't understand the concept of stable and
experimental kernel branches. Kernel 2.6.X has all the latest IrDA code, so if you need the VIA driver it's as easy as replacing your kernel with 2.6.1.
So, what's your excuse for not running 2.6.1 ?Quoted 4 lines
The driver-API change is 100% backwards-compatible as it just adds one primitive and does not modify the other ones. As no other driver uses the new call (obviously) nothing can happen to the other drivers. On the other hand it allows drop-in of other 2.6 IRDA drivers as well.
Yes, I must admit that it's mutch cleaner that I had feared.
Quoted 1 line
-- jensJean
Quoted 12 lines · Jens David
Hi,
look, I do not have much time for this political discussion. All I say is:
- I backported the VIA FIR IRDA driver from 2.6 because I needed it
- Most other AMD-based laptop users will need it too
- The driver (or at least a close relative) worked flawlessly for me for 1 year
- The backport does not affect other drivers or system stability even when loaded
- I am willing to maintain it till 2.4 is phased out. Which is the case when distros decide to go 2.6, but no earlier.
Quoted 3 lines
Here is the patch, take it or leave it or start talking CODE.
-- j
Wow, whose code are we talking about ? Just for your
information (and Jeff will confirm), it was possible to integrate the VIA driver in the kernel only because I fixed many integration issues, (VIA was mostly unresponsive), and I don't have this hardware.
I told you the problem was the lack of testing. Now that you
solved this issue, things will go forward. But, I'm only human.
Jean
Quoted 12 lines · Jens David
Hi,
look, I do not have much time for this political discussion. All I say is:
- I backported the VIA FIR IRDA driver from 2.6 because I needed it
- Most other AMD-based laptop users will need it too
- The driver (or at least a close relative) worked flawlessly for me for 1 year
- The backport does not affect other drivers or system stability even when loaded
- I am willing to maintain it till 2.4 is phased out. Which is the case when distros decide to go 2.6, but no earlier.
Quoted 3 lines
Here is the patch, take it or leave it or start talking CODE.
-- j
Would you mind testing the attached patch ? That's what I
would like to send to Marcelo.
Thanks.
Jean
drivers/net/irda/Config.in renamed from drivers/net/irda.d5/Config.in +1 -0
@@ -37,6 +37,7 @@ if [ "$CONFIG_EXPERIMENTAL" != "n" ]; th dep_tristate 'SMC IrCC (Experimental)' CONFIG_SMC_IRCC_FIR $CONFIG_IRDA dep_tristate 'ALi M5123 FIR (Experimental)' CONFIG_ALI_FIR $CONFIG_IRDA dep_tristate 'VLSI 82C147 SIR/MIR/FIR (Experimental)' CONFIG_VLSI_FIR $CONFIG_IRDA +dep_tristate 'VIA IrCC (Experimental)' CONFIG_VIA_IRCC_FIR $CONFIG_IRDA fi if [ "$CONFIG_ARCH_SA1100" = "y" ]; then dep_tristate 'SA1100 Internal IR' CONFIG_SA1100_FIR $CONFIG_IRDA
drivers/net/irda/Makefile renamed from drivers/net/irda.d5/Makefile +1 -0
@@ -22,6 +22,7 @@ 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 +obj-$(CONFIG_VIA_IRCC_FIR) += via-ircc.o obj-$(CONFIG_ESI_DONGLE) += esi.o obj-$(CONFIG_TEKRAM_DONGLE) += tekram.o obj-$(CONFIG_ACTISYS_DONGLE) += actisys.o
drivers/net/irda/via-ircc.c renamed from drivers/net/irda.d5/via-ircc.c +1652 -0
1,652 lines not on this page · raw message
drivers/net/irda/via-ircc.h renamed from drivers/net/irda.d5/via-ircc.h +1044 -0
1,044 lines not on this page · raw message
Documentation/Configure.help renamed from Documentation/Configure.d5.help +8 -0
@@ -26157,6 +26157,14 @@ CONFIG_SMC_IRCC_FIR here and read <file:Documentation/modules.txt>. The module will be called smc-ircc.o. +VIA IrCC +CONFIG_VIA_IRCC_FIR + Say Y here if you want to build support for the VIA Fast Infrared + Communications Controller. It is used in all sorts of VIA686a- and + VT1211-based notebooks. If you want to compile it as a module, say M + here and read <file:Documentation/modules.txt>. The module will be + called via-ircc.o. + ALi M5123 FIR controller driver CONFIG_ALI_FIR Say Y here if you want to build support for the ALi M5123 FIR
MAINTAINERS renamed from MAINTAINERS.d5 +5 -0
@@ -2086,6 +2086,11 @@ P: Roger Luethi M: [email protected] S: Maintained +VIA-IRCC IRDA DRIVER +P: Jens David +M: [email protected] +S: Maintained + USB DIAMOND RIO500 DRIVER P: Cesar Miquel M: [email protected]