serial driver PMC MSP71xx, kernel linux-mips.git mast er
Subsystems (2)
Quoted 5 lines · Sergei Shtylyov
Quoted 4 lines
Quoted 4 lines
This I would hope you can hide in the platform specific serial_in/serial_out functions. If you write the
UART_LCRsave it inserial_out(), if you read IER etc.
Quoted 7 lines
Quoted 1 line
I couldn't find hooks for platform specific serial_in/out functions.
It's because there are none. :-)
Quoted 1 line
Do you mean using the up->port.iotype's in serial_in/out from 8250.c?
Not sure what Alan meant, but this seems the only option for now.
That's the conclusion I came to. I've rewritten the patch to use port.type instead of iotype since one of the fix is SoC and not UART specific. I guess I could use both iotype and type with a test on each for the appropriate bug, what do you recommend?
Quoted 5 lines
Quoted 1 line
Quoted 1 line
And we might want to add a void * for board specific insanity to the
8250
Quoted 2 lines
Quoted 2 lines
structures if we really have to so you can hang your brain damage privately off that ?
Quoted 7 lines
Quoted 1 line
Sounds good to me, it would give us a location to store the address
of the
Quoted 1 line
UART_STATUS_REGrequired by this UART variant.I doubt we really need to *store* it somewhere. Isn't it an fixed
offset
from UART's base (I haven't seen the header)?
Unfortunately it's not a constant offset from the UART in the SoC register space. I've used Alan suggestion and added a classic, on some other OSes %-|, void "user" pointer.
I'll repost as soon I complete testing and try the new timer patch.
Marc
Hello.
Quoted 6 lines · Marc St-Jean
Quoted 5 lines
Quoted 5 lines
Quoted 3 lines
This I would hope you can hide in the platform specific serial_in/serial_out functions. If you write the
UART_LCRsave it inserial_out(), if you read IER etc.I couldn't find hooks for platform specific serial_in/out functions.
Quoted 8 lines
Quoted 5 lines
It's because there are none. :-)
Quoted 1 line
Do you mean using the up->port.iotype's in serial_in/out from 8250.c?
Not sure what Alan meant, but this seems the only option for now.
That's the conclusion I came to. I've rewritten the patch to use port.type instead of iotype since one of the fix is SoC and not UART specific. I guess
I failed to folkow your logic. :-)
Quoted 2 lines
I could use both iotype and type with a test on each for the appropriate bug, what do you recommend?
I think iotype would be enough. You can't pass type for platform devices
anyway, IIRC (the thing I don't quite like).
Quoted 11 lines
Quoted 9 lines
Quoted 6 lines
Quoted 3 lines
And we might want to add a void * for board specific insanity to the 8250 structures if we really have to so you can hang your brain damage privately off that ?
Sounds good to me, it would give us a location to store the address of the
UART_STATUS_REGrequired by this UART variant.I doubt we really need to *store* it somewhere. Isn't it an fixed offset
from UART's base (I haven't seen the header)?Unfortunately it's not a constant offset from the UART in the SoC register
Hm...
Quoted 2 lines
space. I've used Alan suggestion and added a classic, on some other OSes %-|, void "user" pointer.
Only do not do it under #ifdef.
Quoted 1 line
Marc
WBR, Sergei