* doubt in arch/ppc/8260_io/uart.c
@ 2002-12-22 12:12 Omanakuttan
2002-12-23 20:15 ` Dan Malek
0 siblings, 1 reply; 2+ messages in thread
From: Omanakuttan @ 2002-12-22 12:12 UTC (permalink / raw)
To: linuxppc-embedded, kernelnewbies
Hi,
in kernel 2.4.17, arch/ppc/8260/uart.c contains the following lines in
rs_8xx_stop()
{
....
sccp->scc_sccm &= ~UART_SCCM_TX;
....
}
UART_SCCM_TX is defined to 0x00000020
i.e, only the TX bit is 1
Now the manual (MPC8260UM.pdf) states that clearing a bit is 1 for both
SCCE and SCCM. Following it, what I understand is the above C statement
clears all the bits of ccp->scc_sccm except TX bit.
Then how does it stop the SCC/SCM?
Clearly something is wrong in _my_ logic, what can that be?
Thanks for your time,
Om.
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: doubt in arch/ppc/8260_io/uart.c
2002-12-22 12:12 doubt in arch/ppc/8260_io/uart.c Omanakuttan
@ 2002-12-23 20:15 ` Dan Malek
0 siblings, 0 replies; 2+ messages in thread
From: Dan Malek @ 2002-12-23 20:15 UTC (permalink / raw)
To: Omanakuttan; +Cc: linuxppc-embedded, kernelnewbies
Omanakuttan wrote:
> Hi,
> in kernel 2.4.17, arch/ppc/8260/uart.c contains the following lines in
> rs_8xx_stop()
> {
> ....
> sccp->scc_sccm &= ~UART_SCCM_TX;
> ....
> }
The start/stop functions enable/disable interrupts. Clearing the TX bit
in the interrupt mask causes that interrupt to be disabled.
> UART_SCCM_TX is defined to 0x00000020
> i.e, only the TX bit is 1
>
> Now the manual (MPC8260UM.pdf) states that clearing a bit is 1 for both
> SCCE and SCCM. Following it, what I understand is the above C statement
> clears all the bits of ccp->scc_sccm except TX bit.
No, the C statement above leaves all bits set (that were set) except
the TX bit.
> Then how does it stop the SCC/SCM?
It doesn't stop the SCC, it only stops the interrupt from being delivered
to the driver.
-- Dan
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2002-12-23 20:15 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-12-22 12:12 doubt in arch/ppc/8260_io/uart.c Omanakuttan
2002-12-23 20:15 ` Dan Malek
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).