From: Marcel Holtmann <marcel@holtmann.org>
To: Vikram Kandukuri <Vikram.Kandukuri@Atheros.com>
Cc: "linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
"linux-bluetooth@vger.kernel.org"
<linux-bluetooth@vger.kernel.org>,
Luis Rodriguez <Luis.Rodriguez@Atheros.com>
Subject: RE: [PATCH] DFU Driver for Atheros bluetooth chipset AR3011
Date: Thu, 03 Dec 2009 18:42:06 +0100 [thread overview]
Message-ID: <1259862126.30413.2.camel@localhost.localdomain> (raw)
In-Reply-To: <44EE5C37ADC36343B0625A05DD408C485069714222@CHEXMB-01.global.atheros.com>
Hi Vikram,
> Signed-off-by: Vikram Kandukuri <Vikram.Kandukuri@atheors.com>
so first of all, you should learn how to write you employers name.
> Signed-off-by: Alicke Xu <sxu@atheros.com>
> Reviewed-by: Luis R. Rodriguez <lrodriguez@atheros.com>
>
> ---
> drivers/bluetooth/Kconfig | 12 +++
> drivers/bluetooth/Makefile | 1 +
> drivers/bluetooth/ath3k.c | 191 ++++++++++++++++++++++++++++++++++++++++++++
> 3 files changed, 204 insertions(+), 0 deletions(-)
> create mode 100644 drivers/bluetooth/ath3k.c
>
> diff --git a/drivers/bluetooth/Kconfig b/drivers/bluetooth/Kconfig
> index 652367a..89f079e 100644
> --- a/drivers/bluetooth/Kconfig
> +++ b/drivers/bluetooth/Kconfig
> @@ -195,5 +195,17 @@ config BT_MRVL_SDIO
> Say Y here to compile support for Marvell BT-over-SDIO driver
> into the kernel or say M to compile it as module.
>
> +config BT_ATH3K
> + tristate "Atheros firmware download driver"
> + depends on BT_HCIBTUSB
> + select FW_LOADER
> + help
> + Bluetooth firmware download driver.
> + This driver loads the firmware into the Atheros bluetooth
> + chipset.
> +
> + Say Y here to compile support for "Atheros AR30XX firmware download driver"
> + into the kernel or say M to compile it as module (ath3k).
> +
> endmenu
>
> diff --git a/drivers/bluetooth/Makefile b/drivers/bluetooth/Makefile
> index b3f57d2..6fcdeb7 100644
> --- a/drivers/bluetooth/Makefile
> +++ b/drivers/bluetooth/Makefile
> @@ -15,6 +15,7 @@ obj-$(CONFIG_BT_HCIBTUART) += btuart_cs.o
> obj-$(CONFIG_BT_HCIBTUSB) += btusb.o
> obj-$(CONFIG_BT_HCIBTSDIO) += btsdio.o
>
> +obj-$(CONFIG_BT_ATH3K) += ath3k.o
> obj-$(CONFIG_BT_MRVL) += btmrvl.o
> obj-$(CONFIG_BT_MRVL_SDIO) += btmrvl_sdio.o
The Makefile and Kconfig changes don't apply at all. No idea how you
screwed that up, but you did.
> +MODULE_DEVICE_TABLE(usb, ath3k_table);
> +
> +#define USB_REQ_DFU_DNLOAD 1
> +#define FIRST_20BYTE 20
The FIRST_20BYTE is not used. So remove it.
> +#define BULK_SIZE 4096
> +
> +#define ATHBT_IN_EP(data) (0x81)
> +#define ATHBT_OUT_EP(data) (0x02)
This is not used either and wrong on so many levels. Remove it.
> +struct ath3k_data {
> + struct usb_device *udev;
> + u8 *fw_data;
> + u32 fw_size;
> + u32 fw_sent;
> +};
> +
And from here on. Please use tabs and not spaces. Did you actually run
checkpatch.pl on this patch?
Regards
Marcel
next prev parent reply other threads:[~2009-12-03 17:42 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-11-24 10:10 [PATCH] DFU Driver for Atheros bluetooth chipset AR3011 Kandukuri Vikram
2009-12-01 11:44 ` Vikram Kandukuri
2009-12-03 17:42 ` Marcel Holtmann [this message]
2009-12-30 23:01 ` Luis R. Rodriguez
-- strict thread matches above, loose matches on Subject: below --
2010-01-06 13:34 Kandukuri Vikram
2010-01-06 20:57 ` Marcel Holtmann
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1259862126.30413.2.camel@localhost.localdomain \
--to=marcel@holtmann.org \
--cc=Luis.Rodriguez@Atheros.com \
--cc=Vikram.Kandukuri@Atheros.com \
--cc=linux-bluetooth@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox