serial: sh-sci: Handle port memory region reservations.
authorPaul Mundt <lethal@linux-sh.org>
Thu, 20 Jan 2011 12:24:03 +0000 (21:24 +0900)
committerPaul Mundt <lethal@linux-sh.org>
Thu, 20 Jan 2011 12:24:03 +0000 (21:24 +0900)
commite2651647080930a1846196c3b79f4de662100388
tree1016690d4c940f0d7715537800adb381f5368ddc
parente8183a6c6238a192fba32ac47d75fd076ca487a6
serial: sh-sci: Handle port memory region reservations.

At the moment the request/release_port ops are no-ops with the port
remapping case tied in to the config_port op. This moves the remap logic
in to the request_port, balances it with unmapping in the port release,
and finally takes care of the mem region reservations.

All existing users are of the port autoconf variety, so we follow the
example of other drivers that wrap in to the port request by way of the
config op in the UART_CONFIG_TYPE case.

This is the first step towards fixing up conflicts with multiple users
of the same ports, as currently happens between sh-sci and spi_sh_sci.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
drivers/serial/sh-sci.c