Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 25854
b: refs/heads/master
c: 67ab7f5
h: refs/heads/master
v: v3
  • Loading branch information
Russell King authored and Russell King committed Apr 15, 2006
1 parent 2890bc8 commit b66993c
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 25 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 63d39fe88ffabbd82d9db42e9b603c58532fc918
refs/heads/master: 67ab7f596b6adbaef5abc539dbee822e298a36e1
22 changes: 18 additions & 4 deletions trunk/Documentation/serial/driver
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,11 @@
--------------------


$Id: driver,v 1.10 2002/07/22 15:27:30 rmk Exp $


This document is meant as a brief overview of some aspects of the new serial
driver. It is not complete, any questions you have should be directed to
<rmk@arm.linux.org.uk>

The reference implementation is contained within serial_amba.c.
The reference implementation is contained within amba_pl011.c.



Expand All @@ -31,6 +28,11 @@ The serial core provides a few helper functions. This includes identifing
the correct port structure (via uart_get_console) and decoding command line
arguments (uart_parse_options).

There is also a helper function (uart_write_console) which performs a
character by character write, translating newlines to CRLF sequences.
Driver writers are recommended to use this function rather than implementing
their own version.


Locking
-------
Expand Down Expand Up @@ -86,6 +88,7 @@ hardware.
- TIOCM_DTR DTR signal.
- TIOCM_OUT1 OUT1 signal.
- TIOCM_OUT2 OUT2 signal.
- TIOCM_LOOP Set the port into loopback mode.
If the appropriate bit is set, the signal should be driven
active. If the bit is clear, the signal should be driven
inactive.
Expand Down Expand Up @@ -141,6 +144,10 @@ hardware.
enable_ms(port)
Enable the modem status interrupts.

This method may be called multiple times. Modem status
interrupts should be disabled when the shutdown method is
called.

Locking: port->lock taken.
Interrupts: locally disabled.
This call must not sleep
Expand All @@ -160,6 +167,8 @@ hardware.
state. Enable the port for reception. It should not activate
RTS nor DTR; this will be done via a separate call to set_mctrl.

This method will only be called when the port is initially opened.

Locking: port_sem taken.
Interrupts: globally disabled.

Expand All @@ -169,6 +178,11 @@ hardware.
RTS nor DTR; this will have already been done via a separate
call to set_mctrl.

Drivers must not access port->info once this call has completed.

This method will only be called when there are no more users of
this port.

Locking: port_sem taken.
Interrupts: caller dependent.

Expand Down
2 changes: 1 addition & 1 deletion trunk/arch/arm/mach-s3c2410/common-smdk.c
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ static struct mtd_partition smdk_default_nand_part[] = {
.offset = 0,
},
[1] = {
.name = "S3C2410 flash partition 1",
.name = "S3C2410 flash parition 1",
.offset = 0,
.size = SZ_2M,
},
Expand Down
2 changes: 1 addition & 1 deletion trunk/arch/arm/mach-s3c2410/s3c2440-clock.c
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ static int s3c2440_clk_add(struct sys_device *sysdev)

clkdivn = __raw_readl(S3C2410_CLKDIVN);
clkdivn |= S3C2440_CLKDIVN_UCLK;
__raw_writel(clkdivn, S3C2410_CLKDIVN);
__raw_writel(camdivn, S3C2410_CLKDIVN);

mutex_unlock(&clocks_mutex);
}
Expand Down
18 changes: 0 additions & 18 deletions trunk/include/asm-arm/unistd.h
Original file line number Diff line number Diff line change
Expand Up @@ -360,24 +360,6 @@
#define __ARM_NR_usr32 (__ARM_NR_BASE+4)
#define __ARM_NR_set_tls (__ARM_NR_BASE+5)

/*
* The following syscalls are obsolete and no longer available for EABI.
*/
#if defined(__ARM_EABI__)
#undef __NR_time
#undef __NR_umount
#undef __NR_stime
#undef __NR_alarm
#undef __NR_utime
#undef __NR_getrlimit
#undef __NR_select
#undef __NR_readdir
#undef __NR_mmap
#undef __NR_socketcall
#undef __NR_syscall
#undef __NR_ipc
#endif

#define __sys2(x) #x
#define __sys1(x) __sys2(x)

Expand Down

0 comments on commit b66993c

Please sign in to comment.