RE: [PATCH] DFU Driver for Atheros bluetooth chipset AR3011

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Vikram,

> Signed-off-by: Vikram Kandukuri <Vikram.Kandukuri@xxxxxxxxxxx>

so first of all, you should learn how to write you employers name.

> Signed-off-by: Alicke Xu <sxu@xxxxxxxxxxx>
> Reviewed-by: Luis R. Rodriguez <lrodriguez@xxxxxxxxxxx>
> 
> ---
>  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


--
To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux