Driver for MCS7780 USB-IrDA bridge chip
Subsystems (2)
Greetings Everyone.
I've written, with significant help from MosChip which provided me with some extra data, the driver for MCS7780. The official documentation for the chip is available at:
http://moschip.com/data/products/MCS7780/All_7780.zip
The driver is in a *very* early alpha stage but works a little bit.
It can:
* Setup hardware.
* Talk at 9600 bps.
* Receive packets and pass them to irda stack
* Send packets from the stack to the outside world.
It can't:
* Change the speed althoug hardware supports up to 4Mbps FIR mode.
* Handle most of possible errors.
* Make a cup of tea ;-)
* A lot more
The lists are quite equal at length ;) I would like to ask you kindly to look at my code and maybe, if you have an MCS7780 IR dongle, try it. I will appreciate any comments, patches and flames.
You can download it from either:
http://www.ee.pw.edu.pl/~stelmacl/mcs7780-0.1alpha.1.tar.bz2
or
http://stlman.fm.interia.pl/mcs7780-0.1alpha.1.tar.bz2
For the record the code is quite havely based on stir4200 driver since both chips has simmilar principles of operation. They both need a software do the framing for them. I also borrowed ;) the makfile from the Broadcom Gigabit Ethernet driver sources.
I am not subscribed to LKML, please CC any answers.
Thank you in advance
Best regards.
Signature · 1 line
Było mi bardzo miło. Trzecia pospolita klęska, [...]
Quoted 1 line
Łukasz< Już nie katolicka lecz złodziejska. (c)PP
----------------------------------------------------------------------
Znajdz swoja milosc na wiosne... >>> http://link.interia.pl/f187a
Quoted 7 lines · Lukasz Stelmach
You can download it from either:
http://www.ee.pw.edu.pl/~stelmacl/mcs7780-0.1alpha.1.tar.bz2
or
Nice, care to make up a patch as per the Documentation/SubmittingPatches file and send it to the linux-usb-devel mailing list so people can review it? Also, you might want to cc the netdev list for the network stuff.
thanks,
greg k-h
Greg KH napisał(a):
Quoted 4 lines · Lukasz Stelmach
Quoted 3 lines
You can download it from either:
http://www.ee.pw.edu.pl/~stelmacl/mcs7780-0.1alpha.1.tar.bz2
[...]
Quoted 3 lines
Nice, care to make up a patch as per the
Documentation/SubmittingPatchesfile and send it to the linux-usb-devel mailing list so people can review it?
I surely will make a patch but let me at least implement the speed changing. For without it the driver is just like a lawnmower instead of
beeing for example a scooter ;-)
Signature · 1 line
Było mi bardzo miło. Trzecia pospolita klęska, [...]
Quoted 1 line
Łukasz< Już nie katolicka lecz złodziejska. (c)PP
Quoted 5 lines · Lukasz Stelmach
Greg KH napisał(a):
Quoted 4 lines · Lukasz Stelmach
Quoted 3 lines
You can download it from either:
http://www.ee.pw.edu.pl/~stelmacl/mcs7780-0.1alpha.1.tar.bz2
Quoted 9 lines
[...]
Quoted 3 lines
Nice, care to make up a patch as per the
Documentation/SubmittingPatchesfile and send it to the linux-usb-devel mailing list so people can review it?I surely will make a patch but let me at least implement the speed changing. For without it the driver is just like a lawnmower instead of
beeing for example a scooter ;-)
Hello Lukasz and Greg,
I'm a graduate student at Portland State University in Prof Bart Massey's OS Internals Class. Many of us have been working on the driver for this chip also and we just recently got SIR working at 9600. We are in the currently in the process of testing. We would like to join forces, share what we've done and help with efforts to add support for speed changes, FIR and more testing.
Judy.
Judy Fischbach napisał(a):
Quoted 1 line
this chip also and we just recently got SIR working at 9600. We are in
I ve just set up ppp communication over ircomm with my Palm device :) 9600 of course but works flawlesly :-D
Quoted 3 lines
the currently in the process of testing. We would like to join forces, share what we've done and help with efforts to add support for speed changes, FIR and more testing.
It's great to hear I am not on my own with those problems. If you have read my source you know that speed changing routine is there and works, or rather is seemed to work according to the data sheet. What I can't do now is find a proper way to invoke it and not make the kernel panic. If I solve this problem only error handling and performace tuning will have to be done (if no other problems will be born by the way).
Please tell how can I help.
PS. I am simply curious how long did it take you to develope your code and how many of you have worked on it?
Signature · 1 line
Było mi bardzo miło. Trzecia pospolita klęska, [...]
Quoted 1 line
Łukasz< Już nie katolicka lecz złodziejska. (c)PP
Greetings Everyone.
The new, shiny 0.2alpha.3 release is ready to test it, smash it and blow it off ;-)
The major improvement is support for other SIR speeds: 2400 through 115200 bps. Well I think they will work but frankly speaking I haven't tested them because my Handspring always negotiates the highest rate.
I am sure there is quite a lot of bugs left so *please* test it as much as you can. I am realy convinced that performance may be a really big problem so I will appreciate any comments on the design.
Source tarball is available at:
http://www.ee.pw.edu.pl/~stelmacl/mcs7780-0.2alpha.3.tar.bz2
http://www.ee.pw.edu.pl/~stelmacl/mcs7780-0.2alpha.3.tar.bz2.asc (sig)
or
http://stlman.fm.interia.pl/mcs7780-0.2alpha.3.tar.bz2
http://stlman.fm.interia.pl/mcs7780-0.2alpha.3.tar.bz2.asc (sig)
To answer your question: I will make a patch but let me first be sure it is usable and at least beta-stable. You can help ;-)
Always yours.
Signature · 1 line
Było mi bardzo miło. Trzecia pospolita klęska, [...]
Quoted 1 line
Łukasz< Już nie katolicka lecz złodziejska. (c)PP
Greetings Everyone.
Greg told me that you (the list) might be interested in this so I should send the announcement to you.
The new, shiny 0.2alpha.3 release is ready to test it, smash it and blow it off ;-)
The major improvement is support for other SIR speeds: 2400 through 115200 bps. Well I think they will work but frankly speaking I haven't tested them because my Handspring always negotiates the highest rate.
I am sure there is quite a lot of bugs left so *please* test it as much as you can. I am realy convinced that performance may be a really big problem so I will appreciate any comments on the design.
Source tarball is available at:
http://www.ee.pw.edu.pl/~stelmacl/mcs7780-0.2alpha.3.tar.bz2
http://www.ee.pw.edu.pl/~stelmacl/mcs7780-0.2alpha.3.tar.bz2.asc (sig)
or
http://stlman.fm.interia.pl/mcs7780-0.2alpha.3.tar.bz2
http://stlman.fm.interia.pl/mcs7780-0.2alpha.3.tar.bz2.asc (sig)
To answer your question: I will make a patch but let me first be sure it is usable and at least beta-stable. You can help ;-)
This is the announcement of the 0.1alpha.1 version:
http://lkml.org/lkml/2005/5/25/47
Always yours.
Signature · 1 line
Było mi bardzo miło. Trzecia pospolita klęska, [...]
Quoted 1 line
Łukasz< Już nie katolicka lecz złodziejska. (c)PP