Forcing a specific baud speed in ftdi_sio

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi All

I'm not sure if I'm asking the right place, so feel free to tell me to
get elsewhere...

I am in the sad position where I have to run some proprietary software
("Evolution ERSP", it's control software for a robot) on a recent
kernel; I'm using 2.6.28.
The software has been developed for Linux 2.6.8, and Evolution (the
company behind the software) provided a patch for the 'ftdi_sio'
module in this kernel that forced the baud speed to 250000. The ERSP
software depends on this patch. The patch simply did

       /* convert baud rate from 230K to 250K for RCM device */
       if ( baud == 230400 && port->serial->dev->descriptor.idVendor ==
EVOLUTION_VID )
         {
           baud = 250000;
           dbg("%s: bumped magical 230400 baud to 2.5kb", __FUNCTION__);
         }

as part of 'get_ftdi_divisor'. I tried making the same change in the
'ftdi_sio' module in 2.6.28, but it seems the 'get_ftdi_divisor'
function isn't called anymore.

My question is: is there some way I can reintroduce the above
mentioned patch? I know it's a hack, but the proprietary nature of the
ERSP software seems to render such hacks necessary.

Many thanks
Søren

P.S. In case it isn't clear, I'm not really a kernel hacker, so please
don't assume I understand anything of what I'm doing

P.P.S I'm not subscribed to this list, so please keep me CC'ed.
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux