Re: [PATCH v10 3/3] Bluetooth: hci_uart: Support firmware download for Marvell

From: One Thousand Gnomes
Date: Thu May 05 2016 - 11:22:51 EST


> +/* Send ACK/NAK to the device */
> +static void mrvl_send_ack(struct hci_uart *hu, unsigned char ack)
> +{
> + struct tty_struct *tty = hu->tty;
> +
> + tty->ops->write(tty, &ack, sizeof(ack));
> +}

You don't know if the device has a write method, and it should be locked.
This should go via your ldisc not directly.

Alan