From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757612AbcEEPWu (ORCPT ); Thu, 5 May 2016 11:22:50 -0400 Received: from lxorguk.ukuu.org.uk ([81.2.110.251]:44918 "EHLO lxorguk.ukuu.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753503AbcEEPWs (ORCPT ); Thu, 5 May 2016 11:22:48 -0400 Date: Thu, 5 May 2016 16:22:38 +0100 From: One Thousand Gnomes To: Amitkumar Karwar Cc: , , Ganapathi Bhat Subject: Re: [PATCH v10 3/3] Bluetooth: hci_uart: Support firmware download for Marvell Message-ID: <20160505162238.44f7ed6d@lxorguk.ukuu.org.uk> In-Reply-To: <1462460902-25439-3-git-send-email-akarwar@marvell.com> References: <1462460902-25439-1-git-send-email-akarwar@marvell.com> <1462460902-25439-3-git-send-email-akarwar@marvell.com> Organization: Intel Corporation X-Mailer: Claws Mail 3.13.2 (GTK+ 2.24.30; x86_64-redhat-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > +/* 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