Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
400e9cf2
Commit
400e9cf2
authored
Jul 03, 2004
by
Linus Torvalds
Browse files
Options
Browse Files
Download
Plain Diff
Merge
bk://bk.arm.linux.org.uk/linux-2.6-serial
into ppc970.osdl.org:/home/torvalds/v2.6/linux
parents
2006dfb7
6e1d6fb8
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
19 additions
and
33 deletions
+19
-33
drivers/serial/8250.c
drivers/serial/8250.c
+12
-21
drivers/serial/8250_acorn.c
drivers/serial/8250_acorn.c
+1
-2
drivers/serial/8250_acpi.c
drivers/serial/8250_acpi.c
+1
-1
drivers/serial/8250_pci.c
drivers/serial/8250_pci.c
+1
-1
drivers/serial/8250_pnp.c
drivers/serial/8250_pnp.c
+1
-1
drivers/serial/au1x00_uart.c
drivers/serial/au1x00_uart.c
+2
-5
drivers/serial/bast_sio.c
drivers/serial/bast_sio.c
+1
-1
include/linux/serial_core.h
include/linux/serial_core.h
+0
-1
No files found.
drivers/serial/8250.c
View file @
400e9cf2
...
...
@@ -1687,8 +1687,6 @@ static void serial8250_release_port(struct uart_port *port)
struct
uart_8250_port
*
up
=
(
struct
uart_8250_port
*
)
port
;
unsigned
long
start
,
offset
=
0
,
size
=
0
;
if
(
!
(
up
->
port
.
flags
&
UPF_RESOURCES
))
return
;
if
(
up
->
port
.
type
==
PORT_RSA
)
{
offset
=
UART_RSA_BASE
<<
up
->
port
.
regshift
;
size
=
8
;
...
...
@@ -1733,16 +1731,14 @@ static int serial8250_request_port(struct uart_port *port)
struct
resource
*
res
=
NULL
,
*
res_rsa
=
NULL
;
int
ret
=
0
;
if
(
up
->
port
.
flags
&
UPF_RESOURCES
)
{
if
(
up
->
port
.
type
==
PORT_RSA
)
{
ret
=
serial8250_request_rsa_resource
(
up
,
&
res_rsa
);
if
(
ret
<
0
)
return
ret
;
}
ret
=
serial8250_request_std_resource
(
up
,
&
res
);
if
(
up
->
port
.
type
==
PORT_RSA
)
{
ret
=
serial8250_request_rsa_resource
(
up
,
&
res_rsa
);
if
(
ret
<
0
)
return
ret
;
}
ret
=
serial8250_request_std_resource
(
up
,
&
res
);
/*
* If we have a mapbase, then request that as well.
*/
...
...
@@ -1782,17 +1778,13 @@ static void serial8250_config_port(struct uart_port *port, int flags)
* Find the region that we can probe for. This in turn
* tells us whether we can probe for the type of port.
*/
if
(
up
->
port
.
flags
&
UPF_RESOURCES
)
{
ret
=
serial8250_request_std_resource
(
up
,
&
res_std
);
if
(
ret
<
0
)
return
;
ret
=
serial8250_request_std_resource
(
up
,
&
res_std
);
if
(
ret
<
0
)
return
;
ret
=
serial8250_request_rsa_resource
(
up
,
&
res_rsa
);
if
(
ret
<
0
)
probeflags
&=
~
PROBE_RSA
;
}
else
{
ret
=
serial8250_request_rsa_resource
(
up
,
&
res_rsa
);
if
(
ret
<
0
)
probeflags
&=
~
PROBE_RSA
;
}
if
(
flags
&
UART_CONFIG_TYPE
)
autoconfig
(
up
,
probeflags
);
...
...
@@ -1867,8 +1859,7 @@ static void __init serial8250_isa_init_ports(void)
up
->
port
.
iobase
=
old_serial_port
[
i
].
port
;
up
->
port
.
irq
=
irq_canonicalize
(
old_serial_port
[
i
].
irq
);
up
->
port
.
uartclk
=
old_serial_port
[
i
].
baud_base
*
16
;
up
->
port
.
flags
=
old_serial_port
[
i
].
flags
|
UPF_RESOURCES
;
up
->
port
.
flags
=
old_serial_port
[
i
].
flags
;
up
->
port
.
hub6
=
old_serial_port
[
i
].
hub6
;
up
->
port
.
membase
=
old_serial_port
[
i
].
iomem_base
;
up
->
port
.
iotype
=
old_serial_port
[
i
].
io_type
;
...
...
drivers/serial/8250_acorn.c
View file @
400e9cf2
...
...
@@ -43,8 +43,7 @@ serial_register_onedev(unsigned long baddr, void *vaddr, int irq, unsigned int b
memset
(
&
req
,
0
,
sizeof
(
req
));
req
.
irq
=
irq
;
req
.
flags
=
UPF_AUTOPROBE
|
UPF_RESOURCES
|
UPF_SHARE_IRQ
;
req
.
flags
=
UPF_AUTOPROBE
|
UPF_SHARE_IRQ
;
req
.
baud_base
=
baud_base
;
req
.
io_type
=
UPIO_MEM
;
req
.
iomem_base
=
vaddr
;
...
...
drivers/serial/8250_acpi.c
View file @
400e9cf2
...
...
@@ -123,7 +123,7 @@ static int acpi_serial_add(struct acpi_device *device)
}
serial_req
.
baud_base
=
BASE_BAUD
;
serial_req
.
flags
=
UPF_SKIP_TEST
|
UPF_BOOT_AUTOCONF
|
UPF_RESOURCES
;
serial_req
.
flags
=
UPF_SKIP_TEST
|
UPF_BOOT_AUTOCONF
;
priv
->
line
=
register_serial
(
&
serial_req
);
if
(
priv
->
line
<
0
)
{
...
...
drivers/serial/8250_pci.c
View file @
400e9cf2
...
...
@@ -1665,7 +1665,7 @@ pciserial_init_one(struct pci_dev *dev, const struct pci_device_id *ent)
for
(
i
=
0
;
i
<
nr_ports
;
i
++
)
{
memset
(
&
serial_req
,
0
,
sizeof
(
serial_req
));
serial_req
.
flags
=
UPF_SKIP_TEST
|
UPF_AUTOPROBE
|
UPF_
RESOURCES
|
UPF_
SHARE_IRQ
;
UPF_SHARE_IRQ
;
serial_req
.
baud_base
=
board
->
base_baud
;
serial_req
.
irq
=
get_pci_irq
(
dev
,
board
,
i
);
if
(
quirk
->
setup
(
dev
,
board
,
&
serial_req
,
i
))
...
...
drivers/serial/8250_pnp.c
View file @
400e9cf2
...
...
@@ -413,7 +413,7 @@ serial_pnp_probe(struct pnp_dev * dev, const struct pnp_device_id *dev_id)
serial_req
.
port
,
serial_req
.
irq
,
serial_req
.
io_type
);
#endif
serial_req
.
flags
=
UPF_SKIP_TEST
|
UPF_AUTOPROBE
|
UPF_RESOURCES
;
serial_req
.
flags
=
UPF_SKIP_TEST
|
UPF_AUTOPROBE
;
serial_req
.
baud_base
=
115200
;
line
=
register_serial
(
&
serial_req
);
...
...
drivers/serial/au1x00_uart.c
View file @
400e9cf2
...
...
@@ -969,9 +969,7 @@ static int serial8250_request_port(struct uart_port *port)
struct
resource
*
res
=
NULL
,
*
res_rsa
=
NULL
;
int
ret
=
0
;
if
(
up
->
port
.
flags
&
UPF_RESOURCES
)
{
ret
=
serial8250_request_std_resource
(
up
,
&
res
);
}
ret
=
serial8250_request_std_resource
(
up
,
&
res
);
/*
* If we have a mapbase, then request that as well.
...
...
@@ -1072,8 +1070,7 @@ static void __init serial8250_isa_init_ports(void)
up
->
port
.
iobase
=
old_serial_port
[
i
].
port
;
up
->
port
.
irq
=
old_serial_port
[
i
].
irq
;
up
->
port
.
uartclk
=
get_au1x00_uart_baud_base
();
up
->
port
.
flags
=
old_serial_port
[
i
].
flags
|
UPF_RESOURCES
;
up
->
port
.
flags
=
old_serial_port
[
i
].
flags
;
up
->
port
.
hub6
=
old_serial_port
[
i
].
hub6
;
up
->
port
.
membase
=
old_serial_port
[
i
].
iomem_base
;
up
->
port
.
iotype
=
old_serial_port
[
i
].
io_type
;
...
...
drivers/serial/bast_sio.c
View file @
400e9cf2
...
...
@@ -24,7 +24,7 @@ static int __init serial_bast_register(unsigned long port, unsigned int irq)
printk("BAST: SuperIO serial (%08lx,%d)\n", port, irq);
#endif
serial_req
.
flags
=
UPF_AUTOPROBE
|
UPF_
RESOURCES
|
UPF_
SHARE_IRQ
;
serial_req
.
flags
=
UPF_AUTOPROBE
|
UPF_SHARE_IRQ
;
serial_req
.
baud_base
=
BASE_BAUD
;
serial_req
.
irq
=
irq
;
serial_req
.
io_type
=
UPIO_MEM
;
...
...
include/linux/serial_core.h
View file @
400e9cf2
...
...
@@ -205,7 +205,6 @@ struct uart_port {
#define UPF_CONS_FLOW (1 << 23)
#define UPF_SHARE_IRQ (1 << 24)
#define UPF_BOOT_AUTOCONF (1 << 28)
#define UPF_RESOURCES (1 << 30)
#define UPF_IOREMAP (1 << 31)
#define UPF_CHANGE_MASK (0x17fff)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment