2004-01-13 22:49:22

by Jens David

[permalink] [raw]
Subject: [SPAM?] [PATCH] Backport via-ircc to Linux-2.4 from 2.6

Hi Jeff & all,

this patch adds support for the VIA fast infrared controller to
Linux-2.4 . Most VIA686a and VT1211-based notebooks with
infrared port need this driver to offer IRDA support.

Non-intrusive high-quality (incl. Configure.help entry etc.) patch
against linux-2.4.24-0pre2.1mdk from Mandrake Cooker. Needs
patch-2.4.24-0.pre2.1mdk-irda_device_api26 from previous mail.
Should apply to vanilla-2.4.24 without too much fuzz as well.

-- j

--
Jens David, DG1KJD
Email: [email protected]
http://www.afthd.tu-darmstadt.de/~dg1kjd
Work: +49 351 80800 527 --- Home/Mobile: +49 173 6394993



Attachments:
patch-2.4.24-0.pre2.1mdk-via_ircc (70.19 kB)
VIA-IRCC driver backport Linux-2.6 -> Linux-2.4

2004-01-14 08:19:23

by Jens David

[permalink] [raw]
Subject: Re: [SPAM?] [PATCH] Backport via-ircc to Linux-2.4 from 2.6

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


> On Wed, Jan 14, 2004 at 12:42:24AM +0100, Jens David wrote:
> > Hi,
> >
> > > On Tue, Jan 13, 2004 at 05:47:38PM -0500, Jean wrote:
> > >
> > > 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.
>
> > > 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.
> >
> > 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 ?
>
> > 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.
>
> > -- jens
>
> Jean
>

2004-01-14 19:57:12

by Jean Tourrilhes

[permalink] [raw]
Subject: Re: [SPAM?] [PATCH] Backport via-ircc to Linux-2.4 from 2.6

On Wed, Jan 14, 2004 at 09:17:11AM +0100, Jens David wrote:
> 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

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

2004-01-15 02:34:26

by Jean Tourrilhes

[permalink] [raw]
Subject: Re: [SPAM?] [PATCH] Backport via-ircc to Linux-2.4 from 2.6

On Wed, Jan 14, 2004 at 09:17:11AM +0100, Jens David wrote:
> 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

Would you mind testing the attached patch ? That's what I
would like to send to Marcelo.
Thanks.

Jean


Attachments:
(No filename) (753.00 B)
ir244_via-ircc-5.diff (70.65 kB)
Download all attachments