parallel I/O ports & opend darin pins on MPC8xx
A message that is not in the archive (sent off-list or not yet received): [email protected]
Quoted 6 lines · In message <[email protected]> you wrote:
Quoted 4 lines
Solution? What is so difficult about latching your output value in a variable?
What he's saying is that OTHER drivers read the input and then write that value to the output.
I did understand this.
Quoted 2 lines
In his driver, he can latch the output through a variable, but that won't affect what other
Obviously all drivers that may modify bits in this I/O port will have to share the variable used to latch the value.
Yes, this may include modifying existing code in the UART or Ethernet or other drivers.
Quoted 3 lines
Unless there is kernel support to alias the data in a memory variable (and it doesn't sound like
there is), then this is going to continue to be a problem. Might I
Don't make it unnecessary complicated. You don't need "kernel support to alias the data in a memory variable". This is really not so difficult to implement yourself when you need it.
Best regards,
Wolfgang Denk
--
Software Engineering: Embedded and Realtime Systems, Embedded Linux
Phone: (+49)-8142-4596-87 Fax: (+49)-8142-4596-88 Email: [email protected] The so-called "desktop metaphor" of today's workstations is instead an "airplane-seat" metaphor. Anyone who has shuffled a lap full of papers while seated between two portly passengers will recognize the difference -- one can see only a very few things at once.
- Fred Brooks, Jr.
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
A message that is not in the archive (sent off-list or not yet received): [email protected]
Quoted 3 lines · In message <[email protected]> you wrote:
But I still don't see how you could avoid having other drivers clobber your output but. I think he has to take one of the two options I
By modifying _all_ drivers that will modify the port in question in a way that is based on previously read data.
Quoted 2 lines
suggested. Adding his own variable can't help in any way I can imagine. Could you give an example?
Find out which port pin(s) is/are configured as OD output. Check which other port pins on this port are in use, and which drivers are using these port pins. Make all these drivers use a common buffer variable. Voila...
Wolfgang Denk
--
Software Engineering: Embedded and Realtime Systems, Embedded Linux
Phone: (+49)-8142-4596-87 Fax: (+49)-8142-4596-88 Email: [email protected] If a packet hits a pocket on a socket on a port,
And the bus is interrupted as a very last resort,
And the address of the memory makes your floppy disk abort, Then the socket packet pocket has an error to report! - Ken Burchill?
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
Quoted 54 lines · Dean Matsen
Quoted 36 lines · Wolfgang Denk
Quoted 9 lines · In message <[email protected]> you wrote:
Quoted 5 lines
Solution? What is so difficult about latching your output value in a variable?
What he's saying is that OTHER drivers read the input and then write that value to the output.
I did understand this.
Quoted 4 lines
In his driver, he can latch the output through a variable, but that won't affect what other
Obviously all drivers that may modify bits in this I/O port will have to share the variable used to latch the value.
Yes, this may include modifying existing code in the UART or Ethernet or other drivers.
Quoted 5 lines
Unless there is kernel support to alias the data in a memory variable (and it doesn't sound like
there is), then this is going to continue to be a problem. Might IQuoted 11 lines
Don't make it unnecessary complicated. You don't need "kernel support to alias the data in a memory variable". This is really not so difficult to implement yourself when you need it.
Best regards,
Wolfgang Denk
No no, I wasn't suggesting that it be added, I was (subtly) pointing out that it is not likely to be added because you'd have to review every other driver in the PPC system. Not gonna happen.
Quoted 10 lines
But I still don't see how you could avoid having other drivers clobber your output but. I think he has to take one of the two options I suggested. Adding his own variable can't help in any way I can imagine. Could you give an example?
Dean
Ooops, NM on the example -- I didn't read carefully enough. Yes, updating the
other drivers would work too, but then he's got to maintain a ton of patches for his version of the kernel.
Dean
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/