Lines Matching full:port
22 * concurrent access to the same port.
65 struct tty_port port; member
87 static int sdio_uart_add_port(struct sdio_uart_port *port) in sdio_uart_add_port() argument
91 mutex_init(&port->func_lock); in sdio_uart_add_port()
92 spin_lock_init(&port->write_lock); in sdio_uart_add_port()
93 if (kfifo_alloc(&port->xmit_fifo, FIFO_SIZE, GFP_KERNEL)) in sdio_uart_add_port()
99 port->index = index; in sdio_uart_add_port()
100 sdio_uart_table[index] = port; in sdio_uart_add_port()
112 struct sdio_uart_port *port; in sdio_uart_port_get() local
118 port = sdio_uart_table[index]; in sdio_uart_port_get()
119 if (port) in sdio_uart_port_get()
120 tty_port_get(&port->port); in sdio_uart_port_get()
123 return port; in sdio_uart_port_get()
126 static void sdio_uart_port_put(struct sdio_uart_port *port) in sdio_uart_port_put() argument
128 tty_port_put(&port->port); in sdio_uart_port_put()
131 static void sdio_uart_port_remove(struct sdio_uart_port *port) in sdio_uart_port_remove() argument
136 sdio_uart_table[port->index] = NULL; in sdio_uart_port_remove()
140 * We're killing a port that potentially still is in use by in sdio_uart_port_remove()
143 * give up on that port ASAP. in sdio_uart_port_remove()
146 mutex_lock(&port->port.mutex); in sdio_uart_port_remove()
147 mutex_lock(&port->func_lock); in sdio_uart_port_remove()
148 func = port->func; in sdio_uart_port_remove()
150 port->func = NULL; in sdio_uart_port_remove()
151 mutex_unlock(&port->func_lock); in sdio_uart_port_remove()
153 tty_port_tty_hangup(&port->port, false); in sdio_uart_port_remove()
154 mutex_unlock(&port->port.mutex); in sdio_uart_port_remove()
159 sdio_uart_port_put(port); in sdio_uart_port_remove()
162 static int sdio_uart_claim_func(struct sdio_uart_port *port) in sdio_uart_claim_func() argument
164 mutex_lock(&port->func_lock); in sdio_uart_claim_func()
165 if (unlikely(!port->func)) { in sdio_uart_claim_func()
166 mutex_unlock(&port->func_lock); in sdio_uart_claim_func()
169 if (likely(port->in_sdio_uart_irq != current)) in sdio_uart_claim_func()
170 sdio_claim_host(port->func); in sdio_uart_claim_func()
171 mutex_unlock(&port->func_lock); in sdio_uart_claim_func()
175 static inline void sdio_uart_release_func(struct sdio_uart_port *port) in sdio_uart_release_func() argument
177 if (likely(port->in_sdio_uart_irq != current)) in sdio_uart_release_func()
178 sdio_release_host(port->func); in sdio_uart_release_func()
181 static inline unsigned int sdio_in(struct sdio_uart_port *port, int offset) in sdio_in() argument
184 c = sdio_readb(port->func, port->regs_offset + offset, NULL); in sdio_in()
188 static inline void sdio_out(struct sdio_uart_port *port, int offset, int value) in sdio_out() argument
190 sdio_writeb(port->func, value, port->regs_offset + offset, NULL); in sdio_out()
193 static unsigned int sdio_uart_get_mctrl(struct sdio_uart_port *port) in sdio_uart_get_mctrl() argument
200 status = sdio_in(port, UART_MSR); in sdio_uart_get_mctrl()
214 static void sdio_uart_write_mctrl(struct sdio_uart_port *port, in sdio_uart_write_mctrl() argument
230 sdio_out(port, UART_MCR, mcr); in sdio_uart_write_mctrl()
233 static inline void sdio_uart_update_mctrl(struct sdio_uart_port *port, in sdio_uart_update_mctrl() argument
238 old = port->mctrl; in sdio_uart_update_mctrl()
239 port->mctrl = (old & ~clear) | set; in sdio_uart_update_mctrl()
240 if (old != port->mctrl) in sdio_uart_update_mctrl()
241 sdio_uart_write_mctrl(port, port->mctrl); in sdio_uart_update_mctrl()
244 #define sdio_uart_set_mctrl(port, x) sdio_uart_update_mctrl(port, x, 0) argument
245 #define sdio_uart_clear_mctrl(port, x) sdio_uart_update_mctrl(port, 0, x) argument
247 static void sdio_uart_change_speed(struct sdio_uart_port *port, in sdio_uart_change_speed() argument
267 if (baud <= port->uartclk) in sdio_uart_change_speed()
280 quot = (2 * port->uartclk + baud) / (2 * baud); in sdio_uart_change_speed()
287 port->read_status_mask = UART_LSR_OE | UART_LSR_THRE | UART_LSR_DR; in sdio_uart_change_speed()
289 port->read_status_mask |= UART_LSR_FE | UART_LSR_PE; in sdio_uart_change_speed()
291 port->read_status_mask |= UART_LSR_BI; in sdio_uart_change_speed()
296 port->ignore_status_mask = 0; in sdio_uart_change_speed()
298 port->ignore_status_mask |= UART_LSR_PE | UART_LSR_FE; in sdio_uart_change_speed()
300 port->ignore_status_mask |= UART_LSR_BI; in sdio_uart_change_speed()
306 port->ignore_status_mask |= UART_LSR_OE; in sdio_uart_change_speed()
313 port->ignore_status_mask |= UART_LSR_DR; in sdio_uart_change_speed()
318 port->ier &= ~UART_IER_MSI; in sdio_uart_change_speed()
320 port->ier |= UART_IER_MSI; in sdio_uart_change_speed()
322 port->lcr = cval; in sdio_uart_change_speed()
324 sdio_out(port, UART_IER, port->ier); in sdio_uart_change_speed()
325 sdio_out(port, UART_LCR, cval | UART_LCR_DLAB); in sdio_uart_change_speed()
326 sdio_out(port, UART_DLL, quot & 0xff); in sdio_uart_change_speed()
327 sdio_out(port, UART_DLM, quot >> 8); in sdio_uart_change_speed()
328 sdio_out(port, UART_LCR, cval); in sdio_uart_change_speed()
329 sdio_out(port, UART_FCR, fcr); in sdio_uart_change_speed()
331 sdio_uart_write_mctrl(port, port->mctrl); in sdio_uart_change_speed()
334 static void sdio_uart_start_tx(struct sdio_uart_port *port) in sdio_uart_start_tx() argument
336 if (!(port->ier & UART_IER_THRI)) { in sdio_uart_start_tx()
337 port->ier |= UART_IER_THRI; in sdio_uart_start_tx()
338 sdio_out(port, UART_IER, port->ier); in sdio_uart_start_tx()
342 static void sdio_uart_stop_tx(struct sdio_uart_port *port) in sdio_uart_stop_tx() argument
344 if (port->ier & UART_IER_THRI) { in sdio_uart_stop_tx()
345 port->ier &= ~UART_IER_THRI; in sdio_uart_stop_tx()
346 sdio_out(port, UART_IER, port->ier); in sdio_uart_stop_tx()
350 static void sdio_uart_stop_rx(struct sdio_uart_port *port) in sdio_uart_stop_rx() argument
352 port->ier &= ~UART_IER_RLSI; in sdio_uart_stop_rx()
353 port->read_status_mask &= ~UART_LSR_DR; in sdio_uart_stop_rx()
354 sdio_out(port, UART_IER, port->ier); in sdio_uart_stop_rx()
357 static void sdio_uart_receive_chars(struct sdio_uart_port *port, in sdio_uart_receive_chars() argument
364 ch = sdio_in(port, UART_RX); in sdio_uart_receive_chars()
366 port->icount.rx++; in sdio_uart_receive_chars()
375 port->icount.brk++; in sdio_uart_receive_chars()
377 port->icount.parity++; in sdio_uart_receive_chars()
379 port->icount.frame++; in sdio_uart_receive_chars()
381 port->icount.overrun++; in sdio_uart_receive_chars()
386 *status &= port->read_status_mask; in sdio_uart_receive_chars()
395 if ((*status & port->ignore_status_mask & ~UART_LSR_OE) == 0) in sdio_uart_receive_chars()
396 tty_insert_flip_char(&port->port, ch, flag); in sdio_uart_receive_chars()
402 if (*status & ~port->ignore_status_mask & UART_LSR_OE) in sdio_uart_receive_chars()
403 tty_insert_flip_char(&port->port, 0, TTY_OVERRUN); in sdio_uart_receive_chars()
405 *status = sdio_in(port, UART_LSR); in sdio_uart_receive_chars()
408 tty_flip_buffer_push(&port->port); in sdio_uart_receive_chars()
411 static void sdio_uart_transmit_chars(struct sdio_uart_port *port) in sdio_uart_transmit_chars() argument
413 struct kfifo *xmit = &port->xmit_fifo; in sdio_uart_transmit_chars()
419 if (port->x_char) { in sdio_uart_transmit_chars()
420 sdio_out(port, UART_TX, port->x_char); in sdio_uart_transmit_chars()
421 port->icount.tx++; in sdio_uart_transmit_chars()
422 port->x_char = 0; in sdio_uart_transmit_chars()
426 tty = tty_port_tty_get(&port->port); in sdio_uart_transmit_chars()
430 sdio_uart_stop_tx(port); in sdio_uart_transmit_chars()
435 len = kfifo_out_locked(xmit, iobuf, 16, &port->write_lock); in sdio_uart_transmit_chars()
437 sdio_out(port, UART_TX, iobuf[count]); in sdio_uart_transmit_chars()
438 port->icount.tx++; in sdio_uart_transmit_chars()
445 sdio_uart_stop_tx(port); in sdio_uart_transmit_chars()
450 static void sdio_uart_check_modem_status(struct sdio_uart_port *port) in sdio_uart_check_modem_status() argument
455 status = sdio_in(port, UART_MSR); in sdio_uart_check_modem_status()
461 port->icount.rng++; in sdio_uart_check_modem_status()
463 port->icount.dsr++; in sdio_uart_check_modem_status()
465 port->icount.dcd++; in sdio_uart_check_modem_status()
468 wake_up_interruptible(&port->port.open_wait); in sdio_uart_check_modem_status()
471 tty_port_tty_hangup(&port->port, false); in sdio_uart_check_modem_status()
475 port->icount.cts++; in sdio_uart_check_modem_status()
476 tty = tty_port_tty_get(&port->port); in sdio_uart_check_modem_status()
482 sdio_uart_start_tx(port); in sdio_uart_check_modem_status()
488 sdio_uart_stop_tx(port); in sdio_uart_check_modem_status()
497 * This handles the interrupt from one port.
501 struct sdio_uart_port *port = sdio_get_drvdata(func); in sdio_uart_irq() local
512 if (unlikely(port->in_sdio_uart_irq == current)) in sdio_uart_irq()
515 iir = sdio_in(port, UART_IIR); in sdio_uart_irq()
519 port->in_sdio_uart_irq = current; in sdio_uart_irq()
520 lsr = sdio_in(port, UART_LSR); in sdio_uart_irq()
522 sdio_uart_receive_chars(port, &lsr); in sdio_uart_irq()
523 sdio_uart_check_modem_status(port); in sdio_uart_irq()
525 sdio_uart_transmit_chars(port); in sdio_uart_irq()
526 port->in_sdio_uart_irq = NULL; in sdio_uart_irq()
531 struct sdio_uart_port *port = in uart_carrier_raised() local
532 container_of(tport, struct sdio_uart_port, port); in uart_carrier_raised()
533 unsigned int ret = sdio_uart_claim_func(port); in uart_carrier_raised()
536 ret = sdio_uart_get_mctrl(port); in uart_carrier_raised()
537 sdio_uart_release_func(port); in uart_carrier_raised()
544 * uart_dtr_rts - port helper to set uart signals
545 * @tport: tty port to be updated
548 * Called by the tty port helpers when the modem signals need to be
554 struct sdio_uart_port *port = in uart_dtr_rts() local
555 container_of(tport, struct sdio_uart_port, port); in uart_dtr_rts()
556 int ret = sdio_uart_claim_func(port); in uart_dtr_rts()
560 sdio_uart_clear_mctrl(port, TIOCM_DTR | TIOCM_RTS); in uart_dtr_rts()
562 sdio_uart_set_mctrl(port, TIOCM_DTR | TIOCM_RTS); in uart_dtr_rts()
563 sdio_uart_release_func(port); in uart_dtr_rts()
568 * @tport: tty port to activate
569 * @tty: tty bound to this port
571 * Activate a tty port. The port locking guarantees us this will be
577 * If we successfully start up the port we take an extra kref as we
583 struct sdio_uart_port *port = in sdio_uart_activate() local
584 container_of(tport, struct sdio_uart_port, port); in sdio_uart_activate()
589 * once we have successfully opened the port. in sdio_uart_activate()
593 kfifo_reset(&port->xmit_fifo); in sdio_uart_activate()
595 ret = sdio_uart_claim_func(port); in sdio_uart_activate()
598 ret = sdio_enable_func(port->func); in sdio_uart_activate()
601 ret = sdio_claim_irq(port->func, sdio_uart_irq); in sdio_uart_activate()
609 sdio_out(port, UART_FCR, UART_FCR_ENABLE_FIFO); in sdio_uart_activate()
610 sdio_out(port, UART_FCR, UART_FCR_ENABLE_FIFO | in sdio_uart_activate()
612 sdio_out(port, UART_FCR, 0); in sdio_uart_activate()
617 (void) sdio_in(port, UART_LSR); in sdio_uart_activate()
618 (void) sdio_in(port, UART_RX); in sdio_uart_activate()
619 (void) sdio_in(port, UART_IIR); in sdio_uart_activate()
620 (void) sdio_in(port, UART_MSR); in sdio_uart_activate()
625 sdio_out(port, UART_LCR, UART_LCR_WLEN8); in sdio_uart_activate()
627 port->ier = UART_IER_RLSI|UART_IER_RDI|UART_IER_RTOIE|UART_IER_UUE; in sdio_uart_activate()
628 port->mctrl = TIOCM_OUT2; in sdio_uart_activate()
630 sdio_uart_change_speed(port, &tty->termios, NULL); in sdio_uart_activate()
633 sdio_uart_set_mctrl(port, TIOCM_RTS | TIOCM_DTR); in sdio_uart_activate()
636 if (!(sdio_uart_get_mctrl(port) & TIOCM_CTS)) in sdio_uart_activate()
642 sdio_uart_irq(port->func); in sdio_uart_activate()
644 sdio_uart_release_func(port); in sdio_uart_activate()
648 sdio_disable_func(port->func); in sdio_uart_activate()
650 sdio_uart_release_func(port); in sdio_uart_activate()
656 * @tport: tty port to shut down
658 * Deactivate a tty port. The port locking guarantees us this will be
666 struct sdio_uart_port *port = in sdio_uart_shutdown() local
667 container_of(tport, struct sdio_uart_port, port); in sdio_uart_shutdown()
670 ret = sdio_uart_claim_func(port); in sdio_uart_shutdown()
674 sdio_uart_stop_rx(port); in sdio_uart_shutdown()
676 /* Disable interrupts from this port */ in sdio_uart_shutdown()
677 sdio_release_irq(port->func); in sdio_uart_shutdown()
678 port->ier = 0; in sdio_uart_shutdown()
679 sdio_out(port, UART_IER, 0); in sdio_uart_shutdown()
681 sdio_uart_clear_mctrl(port, TIOCM_OUT2); in sdio_uart_shutdown()
684 port->lcr &= ~UART_LCR_SBC; in sdio_uart_shutdown()
685 sdio_out(port, UART_LCR, port->lcr); in sdio_uart_shutdown()
686 sdio_out(port, UART_FCR, UART_FCR_ENABLE_FIFO | in sdio_uart_shutdown()
689 sdio_out(port, UART_FCR, 0); in sdio_uart_shutdown()
691 sdio_disable_func(port->func); in sdio_uart_shutdown()
693 sdio_uart_release_func(port); in sdio_uart_shutdown()
698 struct sdio_uart_port *port = in sdio_uart_port_destroy() local
699 container_of(tport, struct sdio_uart_port, port); in sdio_uart_port_destroy()
700 kfifo_free(&port->xmit_fifo); in sdio_uart_port_destroy()
701 kfree(port); in sdio_uart_port_destroy()
716 struct sdio_uart_port *port = sdio_uart_port_get(idx); in sdio_uart_install() local
721 tty->driver_data = port; in sdio_uart_install()
723 sdio_uart_port_put(port); in sdio_uart_install()
732 * We cannot destroy the tty->driver_data port kref until this point
737 struct sdio_uart_port *port = tty->driver_data; in sdio_uart_cleanup() local
739 sdio_uart_port_put(port); in sdio_uart_cleanup()
748 struct sdio_uart_port *port = tty->driver_data; in sdio_uart_open() local
749 return tty_port_open(&port->port, tty, filp); in sdio_uart_open()
754 struct sdio_uart_port *port = tty->driver_data; in sdio_uart_close() local
755 tty_port_close(&port->port, tty, filp); in sdio_uart_close()
760 struct sdio_uart_port *port = tty->driver_data; in sdio_uart_hangup() local
761 tty_port_hangup(&port->port); in sdio_uart_hangup()
767 struct sdio_uart_port *port = tty->driver_data; in sdio_uart_write() local
770 if (!port->func) in sdio_uart_write()
773 ret = kfifo_in_locked(&port->xmit_fifo, buf, count, &port->write_lock); in sdio_uart_write()
774 if (!(port->ier & UART_IER_THRI)) { in sdio_uart_write()
775 int err = sdio_uart_claim_func(port); in sdio_uart_write()
777 sdio_uart_start_tx(port); in sdio_uart_write()
778 sdio_uart_irq(port->func); in sdio_uart_write()
779 sdio_uart_release_func(port); in sdio_uart_write()
789 struct sdio_uart_port *port = tty->driver_data; in sdio_uart_write_room() local
790 return FIFO_SIZE - kfifo_len(&port->xmit_fifo); in sdio_uart_write_room()
795 struct sdio_uart_port *port = tty->driver_data; in sdio_uart_chars_in_buffer() local
796 return kfifo_len(&port->xmit_fifo); in sdio_uart_chars_in_buffer()
801 struct sdio_uart_port *port = tty->driver_data; in sdio_uart_send_xchar() local
803 port->x_char = ch; in sdio_uart_send_xchar()
804 if (ch && !(port->ier & UART_IER_THRI)) { in sdio_uart_send_xchar()
805 if (sdio_uart_claim_func(port) != 0) in sdio_uart_send_xchar()
807 sdio_uart_start_tx(port); in sdio_uart_send_xchar()
808 sdio_uart_irq(port->func); in sdio_uart_send_xchar()
809 sdio_uart_release_func(port); in sdio_uart_send_xchar()
815 struct sdio_uart_port *port = tty->driver_data; in sdio_uart_throttle() local
820 if (sdio_uart_claim_func(port) != 0) in sdio_uart_throttle()
824 port->x_char = STOP_CHAR(tty); in sdio_uart_throttle()
825 sdio_uart_start_tx(port); in sdio_uart_throttle()
829 sdio_uart_clear_mctrl(port, TIOCM_RTS); in sdio_uart_throttle()
831 sdio_uart_irq(port->func); in sdio_uart_throttle()
832 sdio_uart_release_func(port); in sdio_uart_throttle()
837 struct sdio_uart_port *port = tty->driver_data; in sdio_uart_unthrottle() local
842 if (sdio_uart_claim_func(port) != 0) in sdio_uart_unthrottle()
846 if (port->x_char) { in sdio_uart_unthrottle()
847 port->x_char = 0; in sdio_uart_unthrottle()
849 port->x_char = START_CHAR(tty); in sdio_uart_unthrottle()
850 sdio_uart_start_tx(port); in sdio_uart_unthrottle()
855 sdio_uart_set_mctrl(port, TIOCM_RTS); in sdio_uart_unthrottle()
857 sdio_uart_irq(port->func); in sdio_uart_unthrottle()
858 sdio_uart_release_func(port); in sdio_uart_unthrottle()
864 struct sdio_uart_port *port = tty->driver_data; in sdio_uart_set_termios() local
867 if (sdio_uart_claim_func(port) != 0) in sdio_uart_set_termios()
870 sdio_uart_change_speed(port, &tty->termios, old_termios); in sdio_uart_set_termios()
874 sdio_uart_clear_mctrl(port, TIOCM_RTS | TIOCM_DTR); in sdio_uart_set_termios()
881 sdio_uart_set_mctrl(port, mask); in sdio_uart_set_termios()
887 sdio_uart_start_tx(port); in sdio_uart_set_termios()
892 if (!(sdio_uart_get_mctrl(port) & TIOCM_CTS)) { in sdio_uart_set_termios()
894 sdio_uart_stop_tx(port); in sdio_uart_set_termios()
898 sdio_uart_release_func(port); in sdio_uart_set_termios()
903 struct sdio_uart_port *port = tty->driver_data; in sdio_uart_break_ctl() local
906 result = sdio_uart_claim_func(port); in sdio_uart_break_ctl()
911 port->lcr |= UART_LCR_SBC; in sdio_uart_break_ctl()
913 port->lcr &= ~UART_LCR_SBC; in sdio_uart_break_ctl()
914 sdio_out(port, UART_LCR, port->lcr); in sdio_uart_break_ctl()
916 sdio_uart_release_func(port); in sdio_uart_break_ctl()
922 struct sdio_uart_port *port = tty->driver_data; in sdio_uart_tiocmget() local
925 result = sdio_uart_claim_func(port); in sdio_uart_tiocmget()
927 result = port->mctrl | sdio_uart_get_mctrl(port); in sdio_uart_tiocmget()
928 sdio_uart_release_func(port); in sdio_uart_tiocmget()
937 struct sdio_uart_port *port = tty->driver_data; in sdio_uart_tiocmset() local
940 result = sdio_uart_claim_func(port); in sdio_uart_tiocmset()
942 sdio_uart_update_mctrl(port, set, clear); in sdio_uart_tiocmset()
943 sdio_uart_release_func(port); in sdio_uart_tiocmset()
956 struct sdio_uart_port *port = sdio_uart_port_get(i); in sdio_uart_proc_show() local
957 if (port) { in sdio_uart_proc_show()
961 port->icount.tx, port->icount.rx); in sdio_uart_proc_show()
962 if (port->icount.frame) in sdio_uart_proc_show()
964 port->icount.frame); in sdio_uart_proc_show()
965 if (port->icount.parity) in sdio_uart_proc_show()
967 port->icount.parity); in sdio_uart_proc_show()
968 if (port->icount.brk) in sdio_uart_proc_show()
970 port->icount.brk); in sdio_uart_proc_show()
971 if (port->icount.overrun) in sdio_uart_proc_show()
973 port->icount.overrun); in sdio_uart_proc_show()
974 if (port->icount.cts) in sdio_uart_proc_show()
976 port->icount.cts); in sdio_uart_proc_show()
977 if (port->icount.dsr) in sdio_uart_proc_show()
979 port->icount.dsr); in sdio_uart_proc_show()
980 if (port->icount.rng) in sdio_uart_proc_show()
982 port->icount.rng); in sdio_uart_proc_show()
983 if (port->icount.dcd) in sdio_uart_proc_show()
985 port->icount.dcd); in sdio_uart_proc_show()
987 sdio_uart_port_put(port); in sdio_uart_proc_show()
1026 struct sdio_uart_port *port; in sdio_uart_probe() local
1029 port = kzalloc(sizeof(struct sdio_uart_port), GFP_KERNEL); in sdio_uart_probe()
1030 if (!port) in sdio_uart_probe()
1036 kfree(port); in sdio_uart_probe()
1055 kfree(port); in sdio_uart_probe()
1060 port->regs_offset = (tpl->data[4] << 0) | in sdio_uart_probe()
1064 sdio_func_id(func), port->regs_offset); in sdio_uart_probe()
1065 port->uartclk = tpl->data[7] * 115200; in sdio_uart_probe()
1066 if (port->uartclk == 0) in sdio_uart_probe()
1067 port->uartclk = 115200; in sdio_uart_probe()
1069 sdio_func_id(func), port->uartclk, in sdio_uart_probe()
1072 kfree(port); in sdio_uart_probe()
1076 port->func = func; in sdio_uart_probe()
1077 sdio_set_drvdata(func, port); in sdio_uart_probe()
1078 tty_port_init(&port->port); in sdio_uart_probe()
1079 port->port.ops = &sdio_uart_port_ops; in sdio_uart_probe()
1081 ret = sdio_uart_add_port(port); in sdio_uart_probe()
1083 kfree(port); in sdio_uart_probe()
1086 dev = tty_port_register_device(&port->port, in sdio_uart_probe()
1087 sdio_uart_tty_driver, port->index, &func->dev); in sdio_uart_probe()
1089 sdio_uart_port_remove(port); in sdio_uart_probe()
1099 struct sdio_uart_port *port = sdio_get_drvdata(func); in sdio_uart_remove() local
1101 tty_unregister_device(sdio_uart_tty_driver, port->index); in sdio_uart_remove()
1102 sdio_uart_port_remove(port); in sdio_uart_remove()