Skip to content

Commit 7043078

Browse files
dhowellstorvalds
authored andcommitted
MN10300: Handle removal of struct uart_info
Commit ebd2c8f removed struct uart_info and commit bdc04e3 further moved delta_msr_wait. Fix up the MN10300 on-chip serial port drivers to comply with this. Signed-off-by: David Howells <dhowells@redhat.com> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent a707709 commit 7043078

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

arch/mn10300/kernel/asm-offsets.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ void foo(void)
8585
OFFSET(__rx_buffer, mn10300_serial_port, rx_buffer);
8686
OFFSET(__rx_inp, mn10300_serial_port, rx_inp);
8787
OFFSET(__rx_outp, mn10300_serial_port, rx_outp);
88-
OFFSET(__tx_info_buffer, mn10300_serial_port, uart.info);
88+
OFFSET(__uart_state, mn10300_serial_port, uart.state);
8989
OFFSET(__tx_xchar, mn10300_serial_port, tx_xchar);
9090
OFFSET(__tx_break, mn10300_serial_port, tx_break);
9191
OFFSET(__intr_flags, mn10300_serial_port, intr_flags);

arch/mn10300/kernel/mn10300-serial-low.S

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ ENTRY(mn10300_serial_vdma_tx_handler)
130130
or d2,d2
131131
bne mnsc_vdma_tx_xchar
132132

133-
mov (__tx_info_buffer,a3),a2 # get the uart_info struct for Tx
133+
mov (__uart_state,a3),a2 # see if the TTY Tx queue has anything in it
134134
mov (__xmit_tail,a2),d3
135135
mov (__xmit_head,a2),d2
136136
cmp d3,d2

arch/mn10300/kernel/mn10300-serial.c

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -391,7 +391,7 @@ static int mask_test_and_clear(volatile u8 *ptr, u8 mask)
391391
static void mn10300_serial_receive_interrupt(struct mn10300_serial_port *port)
392392
{
393393
struct uart_icount *icount = &port->uart.icount;
394-
struct tty_struct *tty = port->uart.info->port.tty;
394+
struct tty_struct *tty = port->uart.state->port.tty;
395395
unsigned ix;
396396
int count;
397397
u8 st, ch, push, status, overrun;
@@ -566,16 +566,16 @@ static void mn10300_serial_transmit_interrupt(struct mn10300_serial_port *port)
566566
{
567567
_enter("%s", port->name);
568568

569-
if (!port->uart.info || !port->uart.info->port.tty) {
569+
if (!port->uart.state || !port->uart.state->port.tty) {
570570
mn10300_serial_dis_tx_intr(port);
571571
return;
572572
}
573573

574574
if (uart_tx_stopped(&port->uart) ||
575-
uart_circ_empty(&port->uart.info->xmit))
575+
uart_circ_empty(&port->uart.state->xmit))
576576
mn10300_serial_dis_tx_intr(port);
577577

578-
if (uart_circ_chars_pending(&port->uart.info->xmit) < WAKEUP_CHARS)
578+
if (uart_circ_chars_pending(&port->uart.state->xmit) < WAKEUP_CHARS)
579579
uart_write_wakeup(&port->uart);
580580
}
581581

@@ -596,7 +596,7 @@ static void mn10300_serial_cts_changed(struct mn10300_serial_port *port, u8 st)
596596
*port->_control = ctr;
597597

598598
uart_handle_cts_change(&port->uart, st & SC2STR_CTS);
599-
wake_up_interruptible(&port->uart.info->delta_msr_wait);
599+
wake_up_interruptible(&port->uart.state->port.delta_msr_wait);
600600
}
601601

602602
/*
@@ -705,8 +705,8 @@ static void mn10300_serial_start_tx(struct uart_port *_port)
705705

706706
_enter("%s{%lu}",
707707
port->name,
708-
CIRC_CNT(&port->uart.info->xmit.head,
709-
&port->uart.info->xmit.tail,
708+
CIRC_CNT(&port->uart.state->xmit.head,
709+
&port->uart.state->xmit.tail,
710710
UART_XMIT_SIZE));
711711

712712
/* kick the virtual DMA controller */

0 commit comments

Comments
 (0)