2008-01-17 23:31:37

by mathewss

[permalink] [raw]
Subject: mos7720. anyone actualy have it wokring?

I have a
http://www.tigerdirect.com/applications/SearchTools/item-details.asp?EdpNo=2893289&CatId=464

uses mos7720 chip.

they have a linux driver on the site but it wont work on newer 2.6 kernels it uses SLAB_ATOMIC etc. needs updating.

The 2.6 kernel has this driver and i have seen some activity 6 months ago on it but nothing recent.

This driver for me does not work when i try to cat /dev/ttyUSB2
it fails and when i try to run

statserial /dev/ttyUSB2
statserial: TIOCMGET failed: Invalid argument


debugging seems to get me a bit lost one thing i notice is that the interrupt handeler never gets turned off. Other serial usb modules do remove the interrupt on close.

Was hoping someone had this hardware and had tested to see if it is just me.

Regards
Sean Mathews

struct SoftwareProfessional {
double salary;
long lunches;
float jobs;
char unstable;
void work;
short tempers;
};




________________________________________________________________
Sent via the WebMail system at mail.nutech.com




2008-01-18 09:05:56

by Oliver Neukum

[permalink] [raw]
Subject: Re: mos7720. anyone actualy have it wokring?

Am Freitag, 18. Januar 2008 00:31:26 schrieb mathewss:
> This driver for me does not work when i try to cat /dev/ttyUSB2
> it fails and when i try to run
>
> statserial /dev/ttyUSB2
> statserial: TIOCMGET failed: Invalid argument

We are always looking for testers. Can you recompile with CONFIG_USB_DEBUG,
provide a log and do an strace of your applications?

Regards
Oliver

2008-01-20 08:01:29

by mathewss

[permalink] [raw]
Subject: Re: mos7720. anyone actualy have it wokring?

Oliver, Thanks for the reply.

I would be glad to help.. I hope the format of this information is what you expect if not please let me know.

Kernel messages
http://pastebin.com/f3ff758ef

Strace Log
http://pastebin.com/f87b15f6

This is the most recent mos7720.c from
/pub/scm/linux/kernel/git/torvalds/linux-2.6.git
But it is compiled against my 2.6.22.13-0.3 kernel if thats a problem I can run this under another kernel but it did not seem as if anything had changed that would be a problem in this kernel.

I have a few mods I have made trying to track down whats going on mostly just some extra printk's and a fix to turn off the interrupt urb upon closing the device.

>> This driver for me does not work when i try to cat /dev/ttyUSB2
>> it fails and when i try to run
>>
>> statserial /dev/ttyUSB2
>> statserial: TIOCMGET failed: Invalid argument
>
>We are always looking for testers. Can you recompile with >CONFIG_USB_DEBUG,
>provide a log and do an strace of your applications?
>
> Regards
> Oliver
>



Regards
Sean Mathews

struct SoftwareProfessional {
double salary;
long lunches;
float jobs;
char unstable;
void work;
short tempers;
};




________________________________________________________________
Sent via the WebMail system at mail.nutech.com