Hi Martin,

>>>>> "Martin" == Martin Diehl <[EMAIL PROTECTED]> writes:

    Martin> On Sun, 4 Jul 2004, Raj Mathur wrote:

    >> [Cross-posted]

    Martin> Good to hear at least some aspect of the ma620 is working
    Martin> now...  I keep the crosspost because it's related to both
    Martin> topics.

    >> - - Speeds above 9600bps cause some problem in the serial
    >> driver.  If I DON'T echo 9600 >
    >> /proc/sys/net/irda/max_baud_rate before loading the MA620
    >> drivers, this is the error I get when trying anything more
    >> complex than a straight discovery on the phone link:
    >> 
    >> Jul 4 07:39:32 mail kernel: ma600_change_speed(): bad control
    >> byte read-back 42 != 04 Jul 4 07:39:32 mail kernel:
    >> irda_config_fsm - error: -1 Jul 4 07:39:35 mail kernel: IrLAP,
    >> no activity on link!

    Martin> Well, looks like the driver assumed the speed change
    Martin> failed due to the incorrect serial readback. This test was
    Martin> copied from the old ma600 driver. ma600 is the only dongle
    Martin> driver currently trying to do this raw readback
    Martin> test. There are at least 3 possible reasons for it to
    Martin> fail: * some undisclosed bug somewhere in the raw read
    Martin> mode * this test might happened to work (kind of) with old
    Martin> ma600 driver due to echo readback, but not really reading
    Martin> back from the dongle * readback might behave differently
    Martin> for the ma620 usb version

    Martin> That's why there is a comment in the code and the
    Martin> corresponding lines are prepared to be disabled ;-)

Ah, I never look at kernel source (it's ``sufficiently advanced
technology'' and hence magic to me :)

    Martin> Simply try editing the file
    Martin> linux/drivers/net/irda/ma600-sir.c.  In line 197
    Martin> (2.6.7-vanilla) change the "#if 1" to read "#if 0" and
    Martin> rebuild your module. By chance this will help you out
    Martin> because the speed chance was likely working, just the
    Martin> verification failed.

Made the change (#if 0), and now it's working fine at 115200bps.
Tried a file transfer from phone to computer, and a cu, both of which
worked.  Thanks for the tip!

    >> - - Unloading the PL2303 module (modprobe -r pl2303) results in
    >> a kernel oops:

    Martin> What happens if you first unplug the ma620 before rmmod
    Martin> pl2303?  Anyway, this looks like an issue with usbserial
    Martin> so Greg might be interested.

Haven't tried that yet, will post once I have some results on that
front.

Regards,

-- Raju
-- 
Raj Mathur                [EMAIL PROTECTED]      http://kandalaya.org/
       GPG: 78D4 FC67 367F 40E2 0DD5  0FEF C968 D0EF CC68 D17F
                      It is the mind that moves


-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 - 
digital self defense, top technical experts, no vendor pitches, 
unmatched networking opportunities. Visit www.blackhat.com
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-users

Reply via email to