we need a new way to access serial ports
covici at ccs.covici.com
covici at ccs.covici.com
Sun Jun 27 01:28:31 EDT 2010
Is there any way you could open the port from kernel space as though you
were in user space and just write to it without taking exclusive
control?
Trevor Astrope <astrope at tabbweb.com> wrote:
> I'm pretty sure this is also the code that fails with a pci express
> serial card if you define the irq and i/o port in the kernel serial.h
> header with earlier kernels.
>
> On Sat, 26 Jun 2010, Chris Brannon wrote:
>
> > Apparently, what we have isn't working for some people, as of the 2.6.34
> > kernel.
> > Here's the piece of code from src/serialio.c which is failing:
> >
> > if (synth_request_region(ser->port, 8)) {
> > /* try to take it back. */
> > printk("Ports not available, trying to steal them\n");
> > __release_region(&ioport_resource, ser->port, 8);
> > if (synth_request_region(ser->port, 8))
> > return NULL;
> > }
> >
> > -- Chris
> > _______________________________________________
> > Speakup mailing list
> > Speakup at braille.uwo.ca
> > http://speech.braille.uwo.ca/mailman/listinfo/speakup
> >
> _______________________________________________
> Speakup mailing list
> Speakup at braille.uwo.ca
> http://speech.braille.uwo.ca/mailman/listinfo/speakup
--
Your life is like a penny. You're going to lose it. The question is:
How do
you spend it?
John Covici
covici at ccs.covici.com
More information about the Speakup
mailing list