Lines Matching full:port
22 * concurrent access to the same port.
64 struct tty_port port; member
86 static int sdio_uart_add_port(struct sdio_uart_port *port) in sdio_uart_add_port() argument
90 mutex_init(&port->func_lock); in sdio_uart_add_port()
91 spin_lock_init(&port->write_lock); in sdio_uart_add_port()
92 if (kfifo_alloc(&port->xmit_fifo, FIFO_SIZE, GFP_KERNEL)) in sdio_uart_add_port()
98 port->index = index; in sdio_uart_add_port()
99 sdio_uart_table[index] = port; in sdio_uart_add_port()
111 struct sdio_uart_port *port; in sdio_uart_port_get() local
117 port = sdio_uart_table[index]; in sdio_uart_port_get()
118 if (port) in sdio_uart_port_get()
119 tty_port_get(&port->port); in sdio_uart_port_get()
122 return port; in sdio_uart_port_get()
125 static void sdio_uart_port_put(struct sdio_uart_port *port) in sdio_uart_port_put() argument
127 tty_port_put(&port->port); in sdio_uart_port_put()
130 static void sdio_uart_port_remove(struct sdio_uart_port *port) in sdio_uart_port_remove() argument
135 sdio_uart_table[port->index] = NULL; in sdio_uart_port_remove()
139 * We're killing a port that potentially still is in use by in sdio_uart_port_remove()
142 * give up on that port ASAP. in sdio_uart_port_remove()
145 mutex_lock(&port->port.mutex); in sdio_uart_port_remove()
146 mutex_lock(&port->func_lock); in sdio_uart_port_remove()
147 func = port->func; in sdio_uart_port_remove()
149 port->func = NULL; in sdio_uart_port_remove()
150 mutex_unlock(&port->func_lock); in sdio_uart_port_remove()
152 tty_port_tty_hangup(&port->port, false); in sdio_uart_port_remove()
153 mutex_unlock(&port->port.mutex); in sdio_uart_port_remove()
158 sdio_uart_port_put(port); in sdio_uart_port_remove()
161 static int sdio_uart_claim_func(struct sdio_uart_port *port) in sdio_uart_claim_func() argument
163 mutex_lock(&port->func_lock); in sdio_uart_claim_func()
164 if (unlikely(!port->func)) { in sdio_uart_claim_func()
165 mutex_unlock(&port->func_lock); in sdio_uart_claim_func()
168 if (likely(port->in_sdio_uart_irq != current)) in sdio_uart_claim_func()
169 sdio_claim_host(port->func); in sdio_uart_claim_func()
170 mutex_unlock(&port->func_lock); in sdio_uart_claim_func()
174 static inline void sdio_uart_release_func(struct sdio_uart_port *port) in sdio_uart_release_func() argument
176 if (likely(port->in_sdio_uart_irq != current)) in sdio_uart_release_func()
177 sdio_release_host(port->func); in sdio_uart_release_func()
180 static inline unsigned int sdio_in(struct sdio_uart_port *port, int offset) in sdio_in() argument
183 c = sdio_readb(port->func, port->regs_offset + offset, NULL); in sdio_in()
187 static inline void sdio_out(struct sdio_uart_port *port, int offset, int value) in sdio_out() argument
189 sdio_writeb(port->func, value, port->regs_offset + offset, NULL); in sdio_out()
192 static unsigned int sdio_uart_get_mctrl(struct sdio_uart_port *port) in sdio_uart_get_mctrl() argument
199 status = sdio_in(port, UART_MSR); in sdio_uart_get_mctrl()
213 static void sdio_uart_write_mctrl(struct sdio_uart_port *port, in sdio_uart_write_mctrl() argument
229 sdio_out(port, UART_MCR, mcr); in sdio_uart_write_mctrl()
232 static inline void sdio_uart_update_mctrl(struct sdio_uart_port *port, in sdio_uart_update_mctrl() argument
237 old = port->mctrl; in sdio_uart_update_mctrl()
238 port->mctrl = (old & ~clear) | set; in sdio_uart_update_mctrl()
239 if (old != port->mctrl) in sdio_uart_update_mctrl()
240 sdio_uart_write_mctrl(port, port->mctrl); in sdio_uart_update_mctrl()
243 #define sdio_uart_set_mctrl(port, x) sdio_uart_update_mctrl(port, x, 0) argument
244 #define sdio_uart_clear_mctrl(port, x) sdio_uart_update_mctrl(port, 0, x) argument
246 static void sdio_uart_change_speed(struct sdio_uart_port *port, in sdio_uart_change_speed() argument
280 if (baud <= port->uartclk) in sdio_uart_change_speed()
293 quot = (2 * port->uartclk + baud) / (2 * baud); in sdio_uart_change_speed()
300 port->read_status_mask = UART_LSR_OE | UART_LSR_THRE | UART_LSR_DR; in sdio_uart_change_speed()
302 port->read_status_mask |= UART_LSR_FE | UART_LSR_PE; in sdio_uart_change_speed()
304 port->read_status_mask |= UART_LSR_BI; in sdio_uart_change_speed()
309 port->ignore_status_mask = 0; in sdio_uart_change_speed()
311 port->ignore_status_mask |= UART_LSR_PE | UART_LSR_FE; in sdio_uart_change_speed()
313 port->ignore_status_mask |= UART_LSR_BI; in sdio_uart_change_speed()
319 port->ignore_status_mask |= UART_LSR_OE; in sdio_uart_change_speed()
326 port->ignore_status_mask |= UART_LSR_DR; in sdio_uart_change_speed()
331 port->ier &= ~UART_IER_MSI; in sdio_uart_change_speed()
333 port->ier |= UART_IER_MSI; in sdio_uart_change_speed()
335 port->lcr = cval; in sdio_uart_change_speed()
337 sdio_out(port, UART_IER, port->ier); in sdio_uart_change_speed()
338 sdio_out(port, UART_LCR, cval | UART_LCR_DLAB); in sdio_uart_change_speed()
339 sdio_out(port, UART_DLL, quot & 0xff); in sdio_uart_change_speed()
340 sdio_out(port, UART_DLM, quot >> 8); in sdio_uart_change_speed()
341 sdio_out(port, UART_LCR, cval); in sdio_uart_change_speed()
342 sdio_out(port, UART_FCR, fcr); in sdio_uart_change_speed()
344 sdio_uart_write_mctrl(port, port->mctrl); in sdio_uart_change_speed()
347 static void sdio_uart_start_tx(struct sdio_uart_port *port) in sdio_uart_start_tx() argument
349 if (!(port->ier & UART_IER_THRI)) { in sdio_uart_start_tx()
350 port->ier |= UART_IER_THRI; in sdio_uart_start_tx()
351 sdio_out(port, UART_IER, port->ier); in sdio_uart_start_tx()
355 static void sdio_uart_stop_tx(struct sdio_uart_port *port) in sdio_uart_stop_tx() argument
357 if (port->ier & UART_IER_THRI) { in sdio_uart_stop_tx()
358 port->ier &= ~UART_IER_THRI; in sdio_uart_stop_tx()
359 sdio_out(port, UART_IER, port->ier); in sdio_uart_stop_tx()
363 static void sdio_uart_stop_rx(struct sdio_uart_port *port) in sdio_uart_stop_rx() argument
365 port->ier &= ~UART_IER_RLSI; in sdio_uart_stop_rx()
366 port->read_status_mask &= ~UART_LSR_DR; in sdio_uart_stop_rx()
367 sdio_out(port, UART_IER, port->ier); in sdio_uart_stop_rx()
370 static void sdio_uart_receive_chars(struct sdio_uart_port *port, in sdio_uart_receive_chars() argument
377 ch = sdio_in(port, UART_RX); in sdio_uart_receive_chars()
379 port->icount.rx++; in sdio_uart_receive_chars()
388 port->icount.brk++; in sdio_uart_receive_chars()
390 port->icount.parity++; in sdio_uart_receive_chars()
392 port->icount.frame++; in sdio_uart_receive_chars()
394 port->icount.overrun++; in sdio_uart_receive_chars()
399 *status &= port->read_status_mask; in sdio_uart_receive_chars()
408 if ((*status & port->ignore_status_mask & ~UART_LSR_OE) == 0) in sdio_uart_receive_chars()
409 tty_insert_flip_char(&port->port, ch, flag); in sdio_uart_receive_chars()
415 if (*status & ~port->ignore_status_mask & UART_LSR_OE) in sdio_uart_receive_chars()
416 tty_insert_flip_char(&port->port, 0, TTY_OVERRUN); in sdio_uart_receive_chars()
418 *status = sdio_in(port, UART_LSR); in sdio_uart_receive_chars()
421 tty_flip_buffer_push(&port->port); in sdio_uart_receive_chars()
424 static void sdio_uart_transmit_chars(struct sdio_uart_port *port) in sdio_uart_transmit_chars() argument
426 struct kfifo *xmit = &port->xmit_fifo; in sdio_uart_transmit_chars()
432 if (port->x_char) { in sdio_uart_transmit_chars()
433 sdio_out(port, UART_TX, port->x_char); in sdio_uart_transmit_chars()
434 port->icount.tx++; in sdio_uart_transmit_chars()
435 port->x_char = 0; in sdio_uart_transmit_chars()
439 tty = tty_port_tty_get(&port->port); in sdio_uart_transmit_chars()
443 sdio_uart_stop_tx(port); in sdio_uart_transmit_chars()
448 len = kfifo_out_locked(xmit, iobuf, 16, &port->write_lock); in sdio_uart_transmit_chars()
450 sdio_out(port, UART_TX, iobuf[count]); in sdio_uart_transmit_chars()
451 port->icount.tx++; in sdio_uart_transmit_chars()
458 sdio_uart_stop_tx(port); in sdio_uart_transmit_chars()
463 static void sdio_uart_check_modem_status(struct sdio_uart_port *port) in sdio_uart_check_modem_status() argument
468 status = sdio_in(port, UART_MSR); in sdio_uart_check_modem_status()
474 port->icount.rng++; in sdio_uart_check_modem_status()
476 port->icount.dsr++; in sdio_uart_check_modem_status()
478 port->icount.dcd++; in sdio_uart_check_modem_status()
481 wake_up_interruptible(&port->port.open_wait); in sdio_uart_check_modem_status()
484 tty_port_tty_hangup(&port->port, false); in sdio_uart_check_modem_status()
488 port->icount.cts++; in sdio_uart_check_modem_status()
489 tty = tty_port_tty_get(&port->port); in sdio_uart_check_modem_status()
495 sdio_uart_start_tx(port); in sdio_uart_check_modem_status()
501 sdio_uart_stop_tx(port); in sdio_uart_check_modem_status()
510 * This handles the interrupt from one port.
514 struct sdio_uart_port *port = sdio_get_drvdata(func); in sdio_uart_irq() local
525 if (unlikely(port->in_sdio_uart_irq == current)) in sdio_uart_irq()
528 iir = sdio_in(port, UART_IIR); in sdio_uart_irq()
532 port->in_sdio_uart_irq = current; in sdio_uart_irq()
533 lsr = sdio_in(port, UART_LSR); in sdio_uart_irq()
535 sdio_uart_receive_chars(port, &lsr); in sdio_uart_irq()
536 sdio_uart_check_modem_status(port); in sdio_uart_irq()
538 sdio_uart_transmit_chars(port); in sdio_uart_irq()
539 port->in_sdio_uart_irq = NULL; in sdio_uart_irq()
544 struct sdio_uart_port *port = in uart_carrier_raised() local
545 container_of(tport, struct sdio_uart_port, port); in uart_carrier_raised()
546 unsigned int ret = sdio_uart_claim_func(port); in uart_carrier_raised()
549 ret = sdio_uart_get_mctrl(port); in uart_carrier_raised()
550 sdio_uart_release_func(port); in uart_carrier_raised()
557 * uart_dtr_rts - port helper to set uart signals
558 * @tport: tty port to be updated
561 * Called by the tty port helpers when the modem signals need to be
567 struct sdio_uart_port *port = in uart_dtr_rts() local
568 container_of(tport, struct sdio_uart_port, port); in uart_dtr_rts()
569 int ret = sdio_uart_claim_func(port); in uart_dtr_rts()
573 sdio_uart_clear_mctrl(port, TIOCM_DTR | TIOCM_RTS); in uart_dtr_rts()
575 sdio_uart_set_mctrl(port, TIOCM_DTR | TIOCM_RTS); in uart_dtr_rts()
576 sdio_uart_release_func(port); in uart_dtr_rts()
581 * @tport: tty port to activate
582 * @tty: tty bound to this port
584 * Activate a tty port. The port locking guarantees us this will be
590 * If we successfully start up the port we take an extra kref as we
596 struct sdio_uart_port *port = in sdio_uart_activate() local
597 container_of(tport, struct sdio_uart_port, port); in sdio_uart_activate()
602 * once we have successfully opened the port. in sdio_uart_activate()
606 kfifo_reset(&port->xmit_fifo); in sdio_uart_activate()
608 ret = sdio_uart_claim_func(port); in sdio_uart_activate()
611 ret = sdio_enable_func(port->func); in sdio_uart_activate()
614 ret = sdio_claim_irq(port->func, sdio_uart_irq); in sdio_uart_activate()
622 sdio_out(port, UART_FCR, UART_FCR_ENABLE_FIFO); in sdio_uart_activate()
623 sdio_out(port, UART_FCR, UART_FCR_ENABLE_FIFO | in sdio_uart_activate()
625 sdio_out(port, UART_FCR, 0); in sdio_uart_activate()
630 (void) sdio_in(port, UART_LSR); in sdio_uart_activate()
631 (void) sdio_in(port, UART_RX); in sdio_uart_activate()
632 (void) sdio_in(port, UART_IIR); in sdio_uart_activate()
633 (void) sdio_in(port, UART_MSR); in sdio_uart_activate()
638 sdio_out(port, UART_LCR, UART_LCR_WLEN8); in sdio_uart_activate()
640 port->ier = UART_IER_RLSI|UART_IER_RDI|UART_IER_RTOIE|UART_IER_UUE; in sdio_uart_activate()
641 port->mctrl = TIOCM_OUT2; in sdio_uart_activate()
643 sdio_uart_change_speed(port, &tty->termios, NULL); in sdio_uart_activate()
646 sdio_uart_set_mctrl(port, TIOCM_RTS | TIOCM_DTR); in sdio_uart_activate()
649 if (!(sdio_uart_get_mctrl(port) & TIOCM_CTS)) in sdio_uart_activate()
655 sdio_uart_irq(port->func); in sdio_uart_activate()
657 sdio_uart_release_func(port); in sdio_uart_activate()
661 sdio_disable_func(port->func); in sdio_uart_activate()
663 sdio_uart_release_func(port); in sdio_uart_activate()
669 * @tport: tty port to shut down
671 * Deactivate a tty port. The port locking guarantees us this will be
679 struct sdio_uart_port *port = in sdio_uart_shutdown() local
680 container_of(tport, struct sdio_uart_port, port); in sdio_uart_shutdown()
683 ret = sdio_uart_claim_func(port); in sdio_uart_shutdown()
687 sdio_uart_stop_rx(port); in sdio_uart_shutdown()
689 /* Disable interrupts from this port */ in sdio_uart_shutdown()
690 sdio_release_irq(port->func); in sdio_uart_shutdown()
691 port->ier = 0; in sdio_uart_shutdown()
692 sdio_out(port, UART_IER, 0); in sdio_uart_shutdown()
694 sdio_uart_clear_mctrl(port, TIOCM_OUT2); in sdio_uart_shutdown()
697 port->lcr &= ~UART_LCR_SBC; in sdio_uart_shutdown()
698 sdio_out(port, UART_LCR, port->lcr); in sdio_uart_shutdown()
699 sdio_out(port, UART_FCR, UART_FCR_ENABLE_FIFO | in sdio_uart_shutdown()
702 sdio_out(port, UART_FCR, 0); in sdio_uart_shutdown()
704 sdio_disable_func(port->func); in sdio_uart_shutdown()
706 sdio_uart_release_func(port); in sdio_uart_shutdown()
711 struct sdio_uart_port *port = in sdio_uart_port_destroy() local
712 container_of(tport, struct sdio_uart_port, port); in sdio_uart_port_destroy()
713 kfifo_free(&port->xmit_fifo); in sdio_uart_port_destroy()
714 kfree(port); in sdio_uart_port_destroy()
729 struct sdio_uart_port *port = sdio_uart_port_get(idx); in sdio_uart_install() local
734 tty->driver_data = port; in sdio_uart_install()
736 sdio_uart_port_put(port); in sdio_uart_install()
745 * We cannot destroy the tty->driver_data port kref until this point
750 struct sdio_uart_port *port = tty->driver_data; in sdio_uart_cleanup() local
752 sdio_uart_port_put(port); in sdio_uart_cleanup()
761 struct sdio_uart_port *port = tty->driver_data; in sdio_uart_open() local
762 return tty_port_open(&port->port, tty, filp); in sdio_uart_open()
767 struct sdio_uart_port *port = tty->driver_data; in sdio_uart_close() local
768 tty_port_close(&port->port, tty, filp); in sdio_uart_close()
773 struct sdio_uart_port *port = tty->driver_data; in sdio_uart_hangup() local
774 tty_port_hangup(&port->port); in sdio_uart_hangup()
780 struct sdio_uart_port *port = tty->driver_data; in sdio_uart_write() local
783 if (!port->func) in sdio_uart_write()
786 ret = kfifo_in_locked(&port->xmit_fifo, buf, count, &port->write_lock); in sdio_uart_write()
787 if (!(port->ier & UART_IER_THRI)) { in sdio_uart_write()
788 int err = sdio_uart_claim_func(port); in sdio_uart_write()
790 sdio_uart_start_tx(port); in sdio_uart_write()
791 sdio_uart_irq(port->func); in sdio_uart_write()
792 sdio_uart_release_func(port); in sdio_uart_write()
802 struct sdio_uart_port *port = tty->driver_data; in sdio_uart_write_room() local
803 return FIFO_SIZE - kfifo_len(&port->xmit_fifo); in sdio_uart_write_room()
808 struct sdio_uart_port *port = tty->driver_data; in sdio_uart_chars_in_buffer() local
809 return kfifo_len(&port->xmit_fifo); in sdio_uart_chars_in_buffer()
814 struct sdio_uart_port *port = tty->driver_data; in sdio_uart_send_xchar() local
816 port->x_char = ch; in sdio_uart_send_xchar()
817 if (ch && !(port->ier & UART_IER_THRI)) { in sdio_uart_send_xchar()
818 if (sdio_uart_claim_func(port) != 0) in sdio_uart_send_xchar()
820 sdio_uart_start_tx(port); in sdio_uart_send_xchar()
821 sdio_uart_irq(port->func); in sdio_uart_send_xchar()
822 sdio_uart_release_func(port); in sdio_uart_send_xchar()
828 struct sdio_uart_port *port = tty->driver_data; in sdio_uart_throttle() local
833 if (sdio_uart_claim_func(port) != 0) in sdio_uart_throttle()
837 port->x_char = STOP_CHAR(tty); in sdio_uart_throttle()
838 sdio_uart_start_tx(port); in sdio_uart_throttle()
842 sdio_uart_clear_mctrl(port, TIOCM_RTS); in sdio_uart_throttle()
844 sdio_uart_irq(port->func); in sdio_uart_throttle()
845 sdio_uart_release_func(port); in sdio_uart_throttle()
850 struct sdio_uart_port *port = tty->driver_data; in sdio_uart_unthrottle() local
855 if (sdio_uart_claim_func(port) != 0) in sdio_uart_unthrottle()
859 if (port->x_char) { in sdio_uart_unthrottle()
860 port->x_char = 0; in sdio_uart_unthrottle()
862 port->x_char = START_CHAR(tty); in sdio_uart_unthrottle()
863 sdio_uart_start_tx(port); in sdio_uart_unthrottle()
868 sdio_uart_set_mctrl(port, TIOCM_RTS); in sdio_uart_unthrottle()
870 sdio_uart_irq(port->func); in sdio_uart_unthrottle()
871 sdio_uart_release_func(port); in sdio_uart_unthrottle()
877 struct sdio_uart_port *port = tty->driver_data; in sdio_uart_set_termios() local
880 if (sdio_uart_claim_func(port) != 0) in sdio_uart_set_termios()
883 sdio_uart_change_speed(port, &tty->termios, old_termios); in sdio_uart_set_termios()
887 sdio_uart_clear_mctrl(port, TIOCM_RTS | TIOCM_DTR); in sdio_uart_set_termios()
894 sdio_uart_set_mctrl(port, mask); in sdio_uart_set_termios()
900 sdio_uart_start_tx(port); in sdio_uart_set_termios()
905 if (!(sdio_uart_get_mctrl(port) & TIOCM_CTS)) { in sdio_uart_set_termios()
907 sdio_uart_stop_tx(port); in sdio_uart_set_termios()
911 sdio_uart_release_func(port); in sdio_uart_set_termios()
916 struct sdio_uart_port *port = tty->driver_data; in sdio_uart_break_ctl() local
919 result = sdio_uart_claim_func(port); in sdio_uart_break_ctl()
924 port->lcr |= UART_LCR_SBC; in sdio_uart_break_ctl()
926 port->lcr &= ~UART_LCR_SBC; in sdio_uart_break_ctl()
927 sdio_out(port, UART_LCR, port->lcr); in sdio_uart_break_ctl()
929 sdio_uart_release_func(port); in sdio_uart_break_ctl()
935 struct sdio_uart_port *port = tty->driver_data; in sdio_uart_tiocmget() local
938 result = sdio_uart_claim_func(port); in sdio_uart_tiocmget()
940 result = port->mctrl | sdio_uart_get_mctrl(port); in sdio_uart_tiocmget()
941 sdio_uart_release_func(port); in sdio_uart_tiocmget()
950 struct sdio_uart_port *port = tty->driver_data; in sdio_uart_tiocmset() local
953 result = sdio_uart_claim_func(port); in sdio_uart_tiocmset()
955 sdio_uart_update_mctrl(port, set, clear); in sdio_uart_tiocmset()
956 sdio_uart_release_func(port); in sdio_uart_tiocmset()
969 struct sdio_uart_port *port = sdio_uart_port_get(i); in sdio_uart_proc_show() local
970 if (port) { in sdio_uart_proc_show()
974 port->icount.tx, port->icount.rx); in sdio_uart_proc_show()
975 if (port->icount.frame) in sdio_uart_proc_show()
977 port->icount.frame); in sdio_uart_proc_show()
978 if (port->icount.parity) in sdio_uart_proc_show()
980 port->icount.parity); in sdio_uart_proc_show()
981 if (port->icount.brk) in sdio_uart_proc_show()
983 port->icount.brk); in sdio_uart_proc_show()
984 if (port->icount.overrun) in sdio_uart_proc_show()
986 port->icount.overrun); in sdio_uart_proc_show()
987 if (port->icount.cts) in sdio_uart_proc_show()
989 port->icount.cts); in sdio_uart_proc_show()
990 if (port->icount.dsr) in sdio_uart_proc_show()
992 port->icount.dsr); in sdio_uart_proc_show()
993 if (port->icount.rng) in sdio_uart_proc_show()
995 port->icount.rng); in sdio_uart_proc_show()
996 if (port->icount.dcd) in sdio_uart_proc_show()
998 port->icount.dcd); in sdio_uart_proc_show()
1000 sdio_uart_port_put(port); in sdio_uart_proc_show()
1039 struct sdio_uart_port *port; in sdio_uart_probe() local
1042 port = kzalloc(sizeof(struct sdio_uart_port), GFP_KERNEL); in sdio_uart_probe()
1043 if (!port) in sdio_uart_probe()
1049 kfree(port); in sdio_uart_probe()
1068 kfree(port); in sdio_uart_probe()
1073 port->regs_offset = (tpl->data[4] << 0) | in sdio_uart_probe()
1077 sdio_func_id(func), port->regs_offset); in sdio_uart_probe()
1078 port->uartclk = tpl->data[7] * 115200; in sdio_uart_probe()
1079 if (port->uartclk == 0) in sdio_uart_probe()
1080 port->uartclk = 115200; in sdio_uart_probe()
1082 sdio_func_id(func), port->uartclk, in sdio_uart_probe()
1085 kfree(port); in sdio_uart_probe()
1089 port->func = func; in sdio_uart_probe()
1090 sdio_set_drvdata(func, port); in sdio_uart_probe()
1091 tty_port_init(&port->port); in sdio_uart_probe()
1092 port->port.ops = &sdio_uart_port_ops; in sdio_uart_probe()
1094 ret = sdio_uart_add_port(port); in sdio_uart_probe()
1096 kfree(port); in sdio_uart_probe()
1099 dev = tty_port_register_device(&port->port, in sdio_uart_probe()
1100 sdio_uart_tty_driver, port->index, &func->dev); in sdio_uart_probe()
1102 sdio_uart_port_remove(port); in sdio_uart_probe()
1112 struct sdio_uart_port *port = sdio_get_drvdata(func); in sdio_uart_remove() local
1114 tty_unregister_device(sdio_uart_tty_driver, port->index); in sdio_uart_remove()
1115 sdio_uart_port_remove(port); in sdio_uart_remove()