Return-Path: From: Bing Zhao To: Marcel Holtmann CC: "linux-bluetooth@vger.kernel.org" , Gustavo Padovan , Johan Hedberg , "linux-wireless@vger.kernel.org" , Mike Frysinger , Hyuckjoo Lee , Amitkumar Karwar Date: Tue, 24 Sep 2013 12:54:09 -0700 Subject: RE: [PATCH v5 2/2] Bluetooth: btmrvl: add calibration data download support Message-ID: <477F20668A386D41ADCC57781B1F70430F450779E4@SC-VEXCH1.marvell.com> References: <1379715667-22424-1-git-send-email-bzhao@marvell.com> <1379715667-22424-2-git-send-email-bzhao@marvell.com> <05172D80-CE30-4B7D-A64E-11B8E320EF7F@holtmann.org> <477F20668A386D41ADCC57781B1F70430F44C59423@SC-VEXCH1.marvell.com> <34088279-04B9-49D0-9387-88A602F518EC@holtmann.org> <477F20668A386D41ADCC57781B1F70430F450779BE@SC-VEXCH1.marvell.com> In-Reply-To: Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 List-ID: Hi Marcel, > > We can extend __hci_cmd_sync() function with a new parameter 'type'. > > This way we can pass HCI_VENDOR_PKT into __hci_cmd_sync(), while other = drivers will pass in > HCI_COMMAND_PKT. >=20 > That will actually not work. And I also do not want to do that. The __hci= _cmd_sync() is for real HCI > packets. That means types 0x01 and 0x04 only. They need to adhere to the = HCI flow control mechanism > for commands. I see. >=20 > > Our driver will make HCI_VENDOR_PKT -> MRVL_VENDOR_PKT conversion befor= e downloading the frame to > firmware. And the MRVL_VENDOR_PKT frame from firmware will be replaced wi= th HCI_VENDOR_PKT while > uploading the frame to stack. > > > > Please let us know if this approach works for you or not. >=20 > I think this is best kept inside the driver. However you might consider b= uilding something like > __hci_cmd_sync() that is specific to your driver, but allows for a simila= r flow within ->setup(). Sure, we will consider building a function in the driver to handle this. Thanks, Bing