Lines Matching full:port
26 * concurrent access to the same port.
68 struct tty_port port; member
92 static int sdio_uart_add_port(struct sdio_uart_port *port) in sdio_uart_add_port() argument
96 kref_init(&port->kref); in sdio_uart_add_port()
97 mutex_init(&port->func_lock); in sdio_uart_add_port()
98 spin_lock_init(&port->write_lock); in sdio_uart_add_port()
99 if (kfifo_alloc(&port->xmit_fifo, FIFO_SIZE, GFP_KERNEL)) in sdio_uart_add_port()
105 port->index = index; in sdio_uart_add_port()
106 sdio_uart_table[index] = port; in sdio_uart_add_port()
118 struct sdio_uart_port *port; in sdio_uart_port_get() local
124 port = sdio_uart_table[index]; in sdio_uart_port_get()
125 if (port) in sdio_uart_port_get()
126 kref_get(&port->kref); in sdio_uart_port_get()
129 return port; in sdio_uart_port_get()
134 struct sdio_uart_port *port = in sdio_uart_port_destroy() local
136 kfifo_free(&port->xmit_fifo); in sdio_uart_port_destroy()
137 kfree(port); in sdio_uart_port_destroy()
140 static void sdio_uart_port_put(struct sdio_uart_port *port) in sdio_uart_port_put() argument
142 kref_put(&port->kref, sdio_uart_port_destroy); in sdio_uart_port_put()
145 static void sdio_uart_port_remove(struct sdio_uart_port *port) in sdio_uart_port_remove() argument
150 BUG_ON(sdio_uart_table[port->index] != port); in sdio_uart_port_remove()
153 sdio_uart_table[port->index] = NULL; in sdio_uart_port_remove()
157 * We're killing a port that potentially still is in use by in sdio_uart_port_remove()
160 * give up on that port ASAP. in sdio_uart_port_remove()
163 mutex_lock(&port->port.mutex); in sdio_uart_port_remove()
164 mutex_lock(&port->func_lock); in sdio_uart_port_remove()
165 func = port->func; in sdio_uart_port_remove()
167 port->func = NULL; in sdio_uart_port_remove()
168 mutex_unlock(&port->func_lock); in sdio_uart_port_remove()
169 tty = tty_port_tty_get(&port->port); in sdio_uart_port_remove()
175 mutex_unlock(&port->port.mutex); in sdio_uart_port_remove()
180 sdio_uart_port_put(port); in sdio_uart_port_remove()
183 static int sdio_uart_claim_func(struct sdio_uart_port *port) in sdio_uart_claim_func() argument
185 mutex_lock(&port->func_lock); in sdio_uart_claim_func()
186 if (unlikely(!port->func)) { in sdio_uart_claim_func()
187 mutex_unlock(&port->func_lock); in sdio_uart_claim_func()
190 if (likely(port->in_sdio_uart_irq != current)) in sdio_uart_claim_func()
191 sdio_claim_host(port->func); in sdio_uart_claim_func()
192 mutex_unlock(&port->func_lock); in sdio_uart_claim_func()
196 static inline void sdio_uart_release_func(struct sdio_uart_port *port) in sdio_uart_release_func() argument
198 if (likely(port->in_sdio_uart_irq != current)) in sdio_uart_release_func()
199 sdio_release_host(port->func); in sdio_uart_release_func()
202 static inline unsigned int sdio_in(struct sdio_uart_port *port, int offset) in sdio_in() argument
205 c = sdio_readb(port->func, port->regs_offset + offset, NULL); in sdio_in()
209 static inline void sdio_out(struct sdio_uart_port *port, int offset, int value) in sdio_out() argument
211 sdio_writeb(port->func, value, port->regs_offset + offset, NULL); in sdio_out()
214 static unsigned int sdio_uart_get_mctrl(struct sdio_uart_port *port) in sdio_uart_get_mctrl() argument
221 status = sdio_in(port, UART_MSR); in sdio_uart_get_mctrl()
235 static void sdio_uart_write_mctrl(struct sdio_uart_port *port, in sdio_uart_write_mctrl() argument
251 sdio_out(port, UART_MCR, mcr); in sdio_uart_write_mctrl()
254 static inline void sdio_uart_update_mctrl(struct sdio_uart_port *port, in sdio_uart_update_mctrl() argument
259 old = port->mctrl; in sdio_uart_update_mctrl()
260 port->mctrl = (old & ~clear) | set; in sdio_uart_update_mctrl()
261 if (old != port->mctrl) in sdio_uart_update_mctrl()
262 sdio_uart_write_mctrl(port, port->mctrl); in sdio_uart_update_mctrl()
265 #define sdio_uart_set_mctrl(port, x) sdio_uart_update_mctrl(port, x, 0) argument
266 #define sdio_uart_clear_mctrl(port, x) sdio_uart_update_mctrl(port, 0, x) argument
268 static void sdio_uart_change_speed(struct sdio_uart_port *port, in sdio_uart_change_speed() argument
302 if (baud <= port->uartclk) in sdio_uart_change_speed()
315 quot = (2 * port->uartclk + baud) / (2 * baud); in sdio_uart_change_speed()
322 port->read_status_mask = UART_LSR_OE | UART_LSR_THRE | UART_LSR_DR; in sdio_uart_change_speed()
324 port->read_status_mask |= UART_LSR_FE | UART_LSR_PE; in sdio_uart_change_speed()
326 port->read_status_mask |= UART_LSR_BI; in sdio_uart_change_speed()
331 port->ignore_status_mask = 0; in sdio_uart_change_speed()
333 port->ignore_status_mask |= UART_LSR_PE | UART_LSR_FE; in sdio_uart_change_speed()
335 port->ignore_status_mask |= UART_LSR_BI; in sdio_uart_change_speed()
341 port->ignore_status_mask |= UART_LSR_OE; in sdio_uart_change_speed()
348 port->ignore_status_mask |= UART_LSR_DR; in sdio_uart_change_speed()
353 port->ier &= ~UART_IER_MSI; in sdio_uart_change_speed()
355 port->ier |= UART_IER_MSI; in sdio_uart_change_speed()
357 port->lcr = cval; in sdio_uart_change_speed()
359 sdio_out(port, UART_IER, port->ier); in sdio_uart_change_speed()
360 sdio_out(port, UART_LCR, cval | UART_LCR_DLAB); in sdio_uart_change_speed()
361 sdio_out(port, UART_DLL, quot & 0xff); in sdio_uart_change_speed()
362 sdio_out(port, UART_DLM, quot >> 8); in sdio_uart_change_speed()
363 sdio_out(port, UART_LCR, cval); in sdio_uart_change_speed()
364 sdio_out(port, UART_FCR, fcr); in sdio_uart_change_speed()
366 sdio_uart_write_mctrl(port, port->mctrl); in sdio_uart_change_speed()
369 static void sdio_uart_start_tx(struct sdio_uart_port *port) in sdio_uart_start_tx() argument
371 if (!(port->ier & UART_IER_THRI)) { in sdio_uart_start_tx()
372 port->ier |= UART_IER_THRI; in sdio_uart_start_tx()
373 sdio_out(port, UART_IER, port->ier); in sdio_uart_start_tx()
377 static void sdio_uart_stop_tx(struct sdio_uart_port *port) in sdio_uart_stop_tx() argument
379 if (port->ier & UART_IER_THRI) { in sdio_uart_stop_tx()
380 port->ier &= ~UART_IER_THRI; in sdio_uart_stop_tx()
381 sdio_out(port, UART_IER, port->ier); in sdio_uart_stop_tx()
385 static void sdio_uart_stop_rx(struct sdio_uart_port *port) in sdio_uart_stop_rx() argument
387 port->ier &= ~UART_IER_RLSI; in sdio_uart_stop_rx()
388 port->read_status_mask &= ~UART_LSR_DR; in sdio_uart_stop_rx()
389 sdio_out(port, UART_IER, port->ier); in sdio_uart_stop_rx()
392 static void sdio_uart_receive_chars(struct sdio_uart_port *port, in sdio_uart_receive_chars() argument
395 struct tty_struct *tty = tty_port_tty_get(&port->port); in sdio_uart_receive_chars()
400 ch = sdio_in(port, UART_RX); in sdio_uart_receive_chars()
402 port->icount.rx++; in sdio_uart_receive_chars()
411 port->icount.brk++; in sdio_uart_receive_chars()
413 port->icount.parity++; in sdio_uart_receive_chars()
415 port->icount.frame++; in sdio_uart_receive_chars()
417 port->icount.overrun++; in sdio_uart_receive_chars()
422 *status &= port->read_status_mask; in sdio_uart_receive_chars()
431 if ((*status & port->ignore_status_mask & ~UART_LSR_OE) == 0) in sdio_uart_receive_chars()
439 if (*status & ~port->ignore_status_mask & UART_LSR_OE) in sdio_uart_receive_chars()
443 *status = sdio_in(port, UART_LSR); in sdio_uart_receive_chars()
451 static void sdio_uart_transmit_chars(struct sdio_uart_port *port) in sdio_uart_transmit_chars() argument
453 struct kfifo *xmit = &port->xmit_fifo; in sdio_uart_transmit_chars()
459 if (port->x_char) { in sdio_uart_transmit_chars()
460 sdio_out(port, UART_TX, port->x_char); in sdio_uart_transmit_chars()
461 port->icount.tx++; in sdio_uart_transmit_chars()
462 port->x_char = 0; in sdio_uart_transmit_chars()
466 tty = tty_port_tty_get(&port->port); in sdio_uart_transmit_chars()
470 sdio_uart_stop_tx(port); in sdio_uart_transmit_chars()
475 len = kfifo_out_locked(xmit, iobuf, 16, &port->write_lock); in sdio_uart_transmit_chars()
477 sdio_out(port, UART_TX, iobuf[count]); in sdio_uart_transmit_chars()
478 port->icount.tx++; in sdio_uart_transmit_chars()
485 sdio_uart_stop_tx(port); in sdio_uart_transmit_chars()
490 static void sdio_uart_check_modem_status(struct sdio_uart_port *port) in sdio_uart_check_modem_status() argument
495 status = sdio_in(port, UART_MSR); in sdio_uart_check_modem_status()
501 port->icount.rng++; in sdio_uart_check_modem_status()
503 port->icount.dsr++; in sdio_uart_check_modem_status()
505 port->icount.dcd++; in sdio_uart_check_modem_status()
508 wake_up_interruptible(&port->port.open_wait); in sdio_uart_check_modem_status()
511 tty = tty_port_tty_get(&port->port); in sdio_uart_check_modem_status()
519 port->icount.cts++; in sdio_uart_check_modem_status()
520 tty = tty_port_tty_get(&port->port); in sdio_uart_check_modem_status()
526 sdio_uart_start_tx(port); in sdio_uart_check_modem_status()
532 sdio_uart_stop_tx(port); in sdio_uart_check_modem_status()
541 * This handles the interrupt from one port.
545 struct sdio_uart_port *port = sdio_get_drvdata(func); in sdio_uart_irq() local
556 if (unlikely(port->in_sdio_uart_irq == current)) in sdio_uart_irq()
559 iir = sdio_in(port, UART_IIR); in sdio_uart_irq()
563 port->in_sdio_uart_irq = current; in sdio_uart_irq()
564 lsr = sdio_in(port, UART_LSR); in sdio_uart_irq()
566 sdio_uart_receive_chars(port, &lsr); in sdio_uart_irq()
567 sdio_uart_check_modem_status(port); in sdio_uart_irq()
569 sdio_uart_transmit_chars(port); in sdio_uart_irq()
570 port->in_sdio_uart_irq = NULL; in sdio_uart_irq()
575 struct sdio_uart_port *port = in uart_carrier_raised() local
576 container_of(tport, struct sdio_uart_port, port); in uart_carrier_raised()
577 unsigned int ret = sdio_uart_claim_func(port); in uart_carrier_raised()
580 ret = sdio_uart_get_mctrl(port); in uart_carrier_raised()
581 sdio_uart_release_func(port); in uart_carrier_raised()
588 * uart_dtr_rts - port helper to set uart signals
589 * @tport: tty port to be updated
592 * Called by the tty port helpers when the modem signals need to be
598 struct sdio_uart_port *port = in uart_dtr_rts() local
599 container_of(tport, struct sdio_uart_port, port); in uart_dtr_rts()
600 int ret = sdio_uart_claim_func(port); in uart_dtr_rts()
604 sdio_uart_clear_mctrl(port, TIOCM_DTR | TIOCM_RTS); in uart_dtr_rts()
606 sdio_uart_set_mctrl(port, TIOCM_DTR | TIOCM_RTS); in uart_dtr_rts()
607 sdio_uart_release_func(port); in uart_dtr_rts()
612 * @tport: tty port to activate
613 * @tty: tty bound to this port
615 * Activate a tty port. The port locking guarantees us this will be
621 * If we successfully start up the port we take an extra kref as we
627 struct sdio_uart_port *port = in sdio_uart_activate() local
628 container_of(tport, struct sdio_uart_port, port); in sdio_uart_activate()
633 * once we have successfully opened the port. in sdio_uart_activate()
637 kfifo_reset(&port->xmit_fifo); in sdio_uart_activate()
639 ret = sdio_uart_claim_func(port); in sdio_uart_activate()
642 ret = sdio_enable_func(port->func); in sdio_uart_activate()
645 ret = sdio_claim_irq(port->func, sdio_uart_irq); in sdio_uart_activate()
653 sdio_out(port, UART_FCR, UART_FCR_ENABLE_FIFO); in sdio_uart_activate()
654 sdio_out(port, UART_FCR, UART_FCR_ENABLE_FIFO | in sdio_uart_activate()
656 sdio_out(port, UART_FCR, 0); in sdio_uart_activate()
661 (void) sdio_in(port, UART_LSR); in sdio_uart_activate()
662 (void) sdio_in(port, UART_RX); in sdio_uart_activate()
663 (void) sdio_in(port, UART_IIR); in sdio_uart_activate()
664 (void) sdio_in(port, UART_MSR); in sdio_uart_activate()
669 sdio_out(port, UART_LCR, UART_LCR_WLEN8); in sdio_uart_activate()
671 port->ier = UART_IER_RLSI|UART_IER_RDI|UART_IER_RTOIE|UART_IER_UUE; in sdio_uart_activate()
672 port->mctrl = TIOCM_OUT2; in sdio_uart_activate()
674 sdio_uart_change_speed(port, tty->termios, NULL); in sdio_uart_activate()
677 sdio_uart_set_mctrl(port, TIOCM_RTS | TIOCM_DTR); in sdio_uart_activate()
680 if (!(sdio_uart_get_mctrl(port) & TIOCM_CTS)) in sdio_uart_activate()
686 sdio_uart_irq(port->func); in sdio_uart_activate()
688 sdio_uart_release_func(port); in sdio_uart_activate()
692 sdio_disable_func(port->func); in sdio_uart_activate()
694 sdio_uart_release_func(port); in sdio_uart_activate()
700 * @tport: tty port to shut down
702 * Deactivate a tty port. The port locking guarantees us this will be
710 struct sdio_uart_port *port = in sdio_uart_shutdown() local
711 container_of(tport, struct sdio_uart_port, port); in sdio_uart_shutdown()
714 ret = sdio_uart_claim_func(port); in sdio_uart_shutdown()
718 sdio_uart_stop_rx(port); in sdio_uart_shutdown()
720 /* Disable interrupts from this port */ in sdio_uart_shutdown()
721 sdio_release_irq(port->func); in sdio_uart_shutdown()
722 port->ier = 0; in sdio_uart_shutdown()
723 sdio_out(port, UART_IER, 0); in sdio_uart_shutdown()
725 sdio_uart_clear_mctrl(port, TIOCM_OUT2); in sdio_uart_shutdown()
728 port->lcr &= ~UART_LCR_SBC; in sdio_uart_shutdown()
729 sdio_out(port, UART_LCR, port->lcr); in sdio_uart_shutdown()
730 sdio_out(port, UART_FCR, UART_FCR_ENABLE_FIFO | in sdio_uart_shutdown()
733 sdio_out(port, UART_FCR, 0); in sdio_uart_shutdown()
735 sdio_disable_func(port->func); in sdio_uart_shutdown()
737 sdio_uart_release_func(port); in sdio_uart_shutdown()
752 struct sdio_uart_port *port = sdio_uart_port_get(idx); in sdio_uart_install() local
759 tty->driver_data = port; in sdio_uart_install()
762 sdio_uart_port_put(port); in sdio_uart_install()
771 * We cannot destroy the tty->driver_data port kref until this point
776 struct sdio_uart_port *port = tty->driver_data; in sdio_uart_cleanup() local
778 sdio_uart_port_put(port); in sdio_uart_cleanup()
787 struct sdio_uart_port *port = tty->driver_data; in sdio_uart_open() local
788 return tty_port_open(&port->port, tty, filp); in sdio_uart_open()
793 struct sdio_uart_port *port = tty->driver_data; in sdio_uart_close() local
794 tty_port_close(&port->port, tty, filp); in sdio_uart_close()
799 struct sdio_uart_port *port = tty->driver_data; in sdio_uart_hangup() local
800 tty_port_hangup(&port->port); in sdio_uart_hangup()
806 struct sdio_uart_port *port = tty->driver_data; in sdio_uart_write() local
809 if (!port->func) in sdio_uart_write()
812 ret = kfifo_in_locked(&port->xmit_fifo, buf, count, &port->write_lock); in sdio_uart_write()
813 if (!(port->ier & UART_IER_THRI)) { in sdio_uart_write()
814 int err = sdio_uart_claim_func(port); in sdio_uart_write()
816 sdio_uart_start_tx(port); in sdio_uart_write()
817 sdio_uart_irq(port->func); in sdio_uart_write()
818 sdio_uart_release_func(port); in sdio_uart_write()
828 struct sdio_uart_port *port = tty->driver_data; in sdio_uart_write_room() local
829 return FIFO_SIZE - kfifo_len(&port->xmit_fifo); in sdio_uart_write_room()
834 struct sdio_uart_port *port = tty->driver_data; in sdio_uart_chars_in_buffer() local
835 return kfifo_len(&port->xmit_fifo); in sdio_uart_chars_in_buffer()
840 struct sdio_uart_port *port = tty->driver_data; in sdio_uart_send_xchar() local
842 port->x_char = ch; in sdio_uart_send_xchar()
843 if (ch && !(port->ier & UART_IER_THRI)) { in sdio_uart_send_xchar()
844 if (sdio_uart_claim_func(port) != 0) in sdio_uart_send_xchar()
846 sdio_uart_start_tx(port); in sdio_uart_send_xchar()
847 sdio_uart_irq(port->func); in sdio_uart_send_xchar()
848 sdio_uart_release_func(port); in sdio_uart_send_xchar()
854 struct sdio_uart_port *port = tty->driver_data; in sdio_uart_throttle() local
859 if (sdio_uart_claim_func(port) != 0) in sdio_uart_throttle()
863 port->x_char = STOP_CHAR(tty); in sdio_uart_throttle()
864 sdio_uart_start_tx(port); in sdio_uart_throttle()
868 sdio_uart_clear_mctrl(port, TIOCM_RTS); in sdio_uart_throttle()
870 sdio_uart_irq(port->func); in sdio_uart_throttle()
871 sdio_uart_release_func(port); in sdio_uart_throttle()
876 struct sdio_uart_port *port = tty->driver_data; in sdio_uart_unthrottle() local
881 if (sdio_uart_claim_func(port) != 0) in sdio_uart_unthrottle()
885 if (port->x_char) { in sdio_uart_unthrottle()
886 port->x_char = 0; in sdio_uart_unthrottle()
888 port->x_char = START_CHAR(tty); in sdio_uart_unthrottle()
889 sdio_uart_start_tx(port); in sdio_uart_unthrottle()
894 sdio_uart_set_mctrl(port, TIOCM_RTS); in sdio_uart_unthrottle()
896 sdio_uart_irq(port->func); in sdio_uart_unthrottle()
897 sdio_uart_release_func(port); in sdio_uart_unthrottle()
903 struct sdio_uart_port *port = tty->driver_data; in sdio_uart_set_termios() local
906 if (sdio_uart_claim_func(port) != 0) in sdio_uart_set_termios()
909 sdio_uart_change_speed(port, tty->termios, old_termios); in sdio_uart_set_termios()
913 sdio_uart_clear_mctrl(port, TIOCM_RTS | TIOCM_DTR); in sdio_uart_set_termios()
920 sdio_uart_set_mctrl(port, mask); in sdio_uart_set_termios()
926 sdio_uart_start_tx(port); in sdio_uart_set_termios()
931 if (!(sdio_uart_get_mctrl(port) & TIOCM_CTS)) { in sdio_uart_set_termios()
933 sdio_uart_stop_tx(port); in sdio_uart_set_termios()
937 sdio_uart_release_func(port); in sdio_uart_set_termios()
942 struct sdio_uart_port *port = tty->driver_data; in sdio_uart_break_ctl() local
945 result = sdio_uart_claim_func(port); in sdio_uart_break_ctl()
950 port->lcr |= UART_LCR_SBC; in sdio_uart_break_ctl()
952 port->lcr &= ~UART_LCR_SBC; in sdio_uart_break_ctl()
953 sdio_out(port, UART_LCR, port->lcr); in sdio_uart_break_ctl()
955 sdio_uart_release_func(port); in sdio_uart_break_ctl()
961 struct sdio_uart_port *port = tty->driver_data; in sdio_uart_tiocmget() local
964 result = sdio_uart_claim_func(port); in sdio_uart_tiocmget()
966 result = port->mctrl | sdio_uart_get_mctrl(port); in sdio_uart_tiocmget()
967 sdio_uart_release_func(port); in sdio_uart_tiocmget()
976 struct sdio_uart_port *port = tty->driver_data; in sdio_uart_tiocmset() local
979 result = sdio_uart_claim_func(port); in sdio_uart_tiocmset()
981 sdio_uart_update_mctrl(port, set, clear); in sdio_uart_tiocmset()
982 sdio_uart_release_func(port); in sdio_uart_tiocmset()
995 struct sdio_uart_port *port = sdio_uart_port_get(i); in sdio_uart_proc_show() local
996 if (port) { in sdio_uart_proc_show()
1000 port->icount.tx, port->icount.rx); in sdio_uart_proc_show()
1001 if (port->icount.frame) in sdio_uart_proc_show()
1003 port->icount.frame); in sdio_uart_proc_show()
1004 if (port->icount.parity) in sdio_uart_proc_show()
1006 port->icount.parity); in sdio_uart_proc_show()
1007 if (port->icount.brk) in sdio_uart_proc_show()
1009 port->icount.brk); in sdio_uart_proc_show()
1010 if (port->icount.overrun) in sdio_uart_proc_show()
1012 port->icount.overrun); in sdio_uart_proc_show()
1013 if (port->icount.cts) in sdio_uart_proc_show()
1015 port->icount.cts); in sdio_uart_proc_show()
1016 if (port->icount.dsr) in sdio_uart_proc_show()
1018 port->icount.dsr); in sdio_uart_proc_show()
1019 if (port->icount.rng) in sdio_uart_proc_show()
1021 port->icount.rng); in sdio_uart_proc_show()
1022 if (port->icount.dcd) in sdio_uart_proc_show()
1024 port->icount.dcd); in sdio_uart_proc_show()
1026 sdio_uart_port_put(port); in sdio_uart_proc_show()
1077 struct sdio_uart_port *port; in sdio_uart_probe() local
1080 port = kzalloc(sizeof(struct sdio_uart_port), GFP_KERNEL); in sdio_uart_probe()
1081 if (!port) in sdio_uart_probe()
1087 kfree(port); in sdio_uart_probe()
1107 kfree(port); in sdio_uart_probe()
1112 port->regs_offset = (tpl->data[4] << 0) | in sdio_uart_probe()
1116 sdio_func_id(func), port->regs_offset); in sdio_uart_probe()
1117 port->uartclk = tpl->data[7] * 115200; in sdio_uart_probe()
1118 if (port->uartclk == 0) in sdio_uart_probe()
1119 port->uartclk = 115200; in sdio_uart_probe()
1121 sdio_func_id(func), port->uartclk, in sdio_uart_probe()
1124 kfree(port); in sdio_uart_probe()
1128 port->func = func; in sdio_uart_probe()
1129 sdio_set_drvdata(func, port); in sdio_uart_probe()
1130 tty_port_init(&port->port); in sdio_uart_probe()
1131 port->port.ops = &sdio_uart_port_ops; in sdio_uart_probe()
1133 ret = sdio_uart_add_port(port); in sdio_uart_probe()
1135 kfree(port); in sdio_uart_probe()
1139 port->index, &func->dev); in sdio_uart_probe()
1141 sdio_uart_port_remove(port); in sdio_uart_probe()
1151 struct sdio_uart_port *port = sdio_get_drvdata(func); in sdio_uart_remove() local
1153 tty_unregister_device(sdio_uart_tty_driver, port->index); in sdio_uart_remove()
1154 sdio_uart_port_remove(port); in sdio_uart_remove()