All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Bluetooth: Ath3k keeps same PID/VID after downloading the patch and radio table
@ 2011-06-27  8:27 Li, Steven
  2011-06-29  0:51 ` Marcel Holtmann
  0 siblings, 1 reply; 7+ messages in thread
From: Li, Steven @ 2011-06-27  8:27 UTC (permalink / raw)
  To: linux-bluetooth@vger.kernel.org


The new Ath3k needs to download patch and radio table,
and it keeps same PID/VID even after downloading the patch and radio table.
This patch is to use the bcdDevice (Device Release Number) to judge whether the
chip has been patched or not. The init bcdDevice value of the chip is 0x0001,
this value increases after patch and radio table downloading.

Signed-off-by: Steven.Li <yongli@qca.qualcomm.com>
---
 drivers/bluetooth/ath3k.c |    3 +++
 drivers/bluetooth/btusb.c |    9 ++++++++-
 2 files changed, 11 insertions(+), 1 deletions(-)

diff --git a/drivers/bluetooth/ath3k.c b/drivers/bluetooth/ath3k.c
index 6bacef3..7ae1098 100644
--- a/drivers/bluetooth/ath3k.c
+++ b/drivers/bluetooth/ath3k.c
@@ -375,6 +375,9 @@ static int ath3k_probe(struct usb_interface *intf,
 
 	/* load patch and sysconfig files for AR3012 */
 	if (id->driver_info & BTUSB_ATH3012) {
+		if(le16_to_cpu(udev->descriptor.bcdDevice) > 0x0001)
+			return -ENODEV;
+
 		ret = ath3k_load_patch(udev);
 		if (ret < 0) {
 			BT_ERR("Loading patch file failed");
diff --git a/drivers/bluetooth/btusb.c b/drivers/bluetooth/btusb.c
index c2de895..9d01e25 100644
--- a/drivers/bluetooth/btusb.c
+++ b/drivers/bluetooth/btusb.c
@@ -54,6 +54,7 @@ static struct usb_driver btusb_driver;
 #define BTUSB_BCM92035		0x10
 #define BTUSB_BROKEN_ISOC	0x20
 #define BTUSB_WRONG_SCO_MTU	0x40
+#define BTUSB_ATH3012		0x80
 
 static struct usb_device_id btusb_table[] = {
 	/* Generic Bluetooth USB device */
@@ -110,7 +111,7 @@ static struct usb_device_id blacklist_table[] = {
 	{ USB_DEVICE(0x03f0, 0x311d), .driver_info = BTUSB_IGNORE },
 
 	/* Atheros 3012 with sflash firmware */
-	{ USB_DEVICE(0x0cf3, 0x3004), .driver_info = BTUSB_IGNORE },
+	{ USB_DEVICE(0x0cf3, 0x3004), .driver_info = BTUSB_ATH3012 },
 
 	/* Atheros AR5BBU12 with sflash firmware */
 	{ USB_DEVICE(0x0489, 0xe02c), .driver_info = BTUSB_IGNORE },
@@ -914,6 +915,12 @@ static int btusb_probe(struct usb_interface *intf,
 	if (ignore_sniffer && id->driver_info & BTUSB_SNIFFER)
 		return -ENODEV;
 
+	if (id->driver_info & BTUSB_ATH3012) {
+		struct usb_device *udev = interface_to_usbdev(intf);
+		if(le16_to_cpu(udev->descriptor.bcdDevice) <= 0x0001)
+			return -ENODEV;
+	}
+
 	data = kzalloc(sizeof(*data), GFP_KERNEL);
 	if (!data)
 		return -ENOMEM;
-- 
1.7.1

^ permalink raw reply related	[flat|nested] 7+ messages in thread

* Re: [PATCH] Bluetooth: Ath3k keeps same PID/VID after downloading the patch and radio table
  2011-06-27  8:27 [PATCH] Bluetooth: Ath3k keeps same PID/VID after downloading the patch and radio table Li, Steven
@ 2011-06-29  0:51 ` Marcel Holtmann
  2011-06-29  3:51   ` Li, Steven
  0 siblings, 1 reply; 7+ messages in thread
From: Marcel Holtmann @ 2011-06-29  0:51 UTC (permalink / raw)
  To: Li, Steven; +Cc: linux-bluetooth@vger.kernel.org

Hi Steven,

> The new Ath3k needs to download patch and radio table,
> and it keeps same PID/VID even after downloading the patch and radio table.
> This patch is to use the bcdDevice (Device Release Number) to judge whether the
> chip has been patched or not. The init bcdDevice value of the chip is 0x0001,
> this value increases after patch and radio table downloading.
> 
> Signed-off-by: Steven.Li <yongli@qca.qualcomm.com>
> ---
>  drivers/bluetooth/ath3k.c |    3 +++
>  drivers/bluetooth/btusb.c |    9 ++++++++-
>  2 files changed, 11 insertions(+), 1 deletions(-)
> 
> diff --git a/drivers/bluetooth/ath3k.c b/drivers/bluetooth/ath3k.c
> index 6bacef3..7ae1098 100644
> --- a/drivers/bluetooth/ath3k.c
> +++ b/drivers/bluetooth/ath3k.c
> @@ -375,6 +375,9 @@ static int ath3k_probe(struct usb_interface *intf,
>  
>  	/* load patch and sysconfig files for AR3012 */
>  	if (id->driver_info & BTUSB_ATH3012) {
> +		if(le16_to_cpu(udev->descriptor.bcdDevice) > 0x0001)
> +			return -ENODEV;
> +

please fix the coding style. It is if[space](.

Also you might wanna put a comment on top of this bcdDevice check and
mention what it actually does.

>  		ret = ath3k_load_patch(udev);
>  		if (ret < 0) {
>  			BT_ERR("Loading patch file failed");
> diff --git a/drivers/bluetooth/btusb.c b/drivers/bluetooth/btusb.c
> index c2de895..9d01e25 100644
> --- a/drivers/bluetooth/btusb.c
> +++ b/drivers/bluetooth/btusb.c
> @@ -54,6 +54,7 @@ static struct usb_driver btusb_driver;
>  #define BTUSB_BCM92035		0x10
>  #define BTUSB_BROKEN_ISOC	0x20
>  #define BTUSB_WRONG_SCO_MTU	0x40
> +#define BTUSB_ATH3012		0x80
>  
>  static struct usb_device_id btusb_table[] = {
>  	/* Generic Bluetooth USB device */
> @@ -110,7 +111,7 @@ static struct usb_device_id blacklist_table[] = {
>  	{ USB_DEVICE(0x03f0, 0x311d), .driver_info = BTUSB_IGNORE },
>  
>  	/* Atheros 3012 with sflash firmware */
> -	{ USB_DEVICE(0x0cf3, 0x3004), .driver_info = BTUSB_IGNORE },
> +	{ USB_DEVICE(0x0cf3, 0x3004), .driver_info = BTUSB_ATH3012 },
>  
>  	/* Atheros AR5BBU12 with sflash firmware */
>  	{ USB_DEVICE(0x0489, 0xe02c), .driver_info = BTUSB_IGNORE },
> @@ -914,6 +915,12 @@ static int btusb_probe(struct usb_interface *intf,
>  	if (ignore_sniffer && id->driver_info & BTUSB_SNIFFER)
>  		return -ENODEV;
>  
> +	if (id->driver_info & BTUSB_ATH3012) {
> +		struct usb_device *udev = interface_to_usbdev(intf);
> +		if(le16_to_cpu(udev->descriptor.bcdDevice) <= 0x0001)
> +			return -ENODEV;
> +	}

Coding style fix as well please. I would say something similar in style
to what I have done for the older CSR chips. See workaround above.

And on that note, you could use data->udev to get the usb_device
struct ;)

Regards

Marcel



^ permalink raw reply	[flat|nested] 7+ messages in thread

* RE: [PATCH] Bluetooth: Ath3k keeps same PID/VID after downloading the patch and radio table
  2011-06-29  0:51 ` Marcel Holtmann
@ 2011-06-29  3:51   ` Li, Steven
  2011-06-29  4:31     ` Gustavo F. Padovan
  0 siblings, 1 reply; 7+ messages in thread
From: Li, Steven @ 2011-06-29  3:51 UTC (permalink / raw)
  To: Marcel Holtmann; +Cc: linux-bluetooth@vger.kernel.org

SGkgTWFyY2VsOg0KDQo+IHBsZWFzZSBmaXggdGhlIGNvZGluZyBzdHlsZS4gSXQgaXMgaWZbc3Bh
Y2VdKC4NCk9rYXksIEkgc2VlLg0KDQo+IEkgd291bGQgc2F5IHNvbWV0aGluZyBzaW1pbGFyIGlu
IHN0eWxlDQo+IHRvIHdoYXQgSSBoYXZlIGRvbmUgZm9yIHRoZSBvbGRlciBDU1IgY2hpcHMuIFNl
ZSB3b3JrYXJvdW5kIGFib3ZlLg0KPiBBbmQgb24gdGhhdCBub3RlLCB5b3UgY291bGQgdXNlIGRh
dGEtPnVkZXYgdG8gZ2V0IHRoZSB1c2JfZGV2aWNlDQo+IHN0cnVjdCA7KQ0KQXMgdG8gdGhpcyBw
b2ludCwgIHNpbmNlIG5vdyB3ZSBhcmUgbm90IHVzaW5nIHRoZSBidHVzYiB0byBkb3dubG9hZCB0
aGUgcGF0Y2ggYW5kIHJhZGlvIHRhYmxlLA0KIEkgdGhpbmsgd2UgZG8gbm90IG5lZWQgdG8gYWxs
b2MgdGhlIGRhdGEgc3RydWN0IGFuZCB1c2UgZGF0YS0+dWRldiBiZWZvcmUgdGhlIHdvcmthcm91
bmQuICANClNvIEknbGwgc3RpbGwga2VlcCBpdCB3YXMuICBIb3cgZG8geW91IHRoaW5rIGl0ID8N
Cg0KDQpUaGFuayB5b3UgdmVyeSBtdWNoICEN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ZGVy
IENTUiBjaGlwcy4gU2VlIHdvcmthcm91bmQgYWJvdmUuDQo+IA0KPiBBbmQgb24gdGhhdCBub3Rl
LCB5b3UgY291bGQgdXNlIGRhdGEtPnVkZXYgdG8gZ2V0IHRoZSB1c2JfZGV2aWNlDQo+IHN0cnVj
dCA7KQ0KPiANCj4gUmVnYXJkcw0KPiANCj4gTWFyY2VsDQo+IA0KDQo=

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH] Bluetooth: Ath3k keeps same PID/VID after downloading the patch and radio table
  2011-06-29  3:51   ` Li, Steven
@ 2011-06-29  4:31     ` Gustavo F. Padovan
  2011-06-29  6:14       ` Li, Steven
  0 siblings, 1 reply; 7+ messages in thread
From: Gustavo F. Padovan @ 2011-06-29  4:31 UTC (permalink / raw)
  To: Li, Steven; +Cc: Marcel Holtmann, linux-bluetooth@vger.kernel.org

Hi Steven,

Please stop messy top postings like this one. It's not allowed on this mailing
list. Thanks.

* Li, Steven <yongli@qca.qualcomm.com> [2011-06-29 03:51:03 +0000]:

> Hi Marcel:
> 
> > please fix the coding style. It is if[space](.
> Okay, I see.
> 
> > I would say something similar in style
> > to what I have done for the older CSR chips. See workaround above.
> > And on that note, you could use data->udev to get the usb_device
> > struct ;)
> As to this point,  since now we are not using the btusb to download the patch and radio table,
>  I think we do not need to alloc the data struct and use data->udev before the workaround.  
> So I'll still keep it was.  How do you think it ?

No, there is no extra allocation. data->udev is already there. Just use it as
Marcel said.

	Gustavo

^ permalink raw reply	[flat|nested] 7+ messages in thread

* RE: [PATCH] Bluetooth: Ath3k keeps same PID/VID after downloading the patch and radio table
  2011-06-29  4:31     ` Gustavo F. Padovan
@ 2011-06-29  6:14       ` Li, Steven
  2011-06-29  6:31         ` Gustavo F. Padovan
  0 siblings, 1 reply; 7+ messages in thread
From: Li, Steven @ 2011-06-29  6:14 UTC (permalink / raw)
  To: Gustavo F. Padovan; +Cc: Marcel Holtmann, linux-bluetooth@vger.kernel.org


Hi Padovan:

> -----Original Message-----
> From: Gustavo F. Padovan [mailto:pao@profusion.mobi] On Behalf Of
> Gustavo F. Padovan
> Sent: Wednesday, June 29, 2011 12:32 PM
> To: Li, Steven
> Cc: Marcel Holtmann; linux-bluetooth@vger.kernel.org
> Subject: Re: [PATCH] Bluetooth: Ath3k keeps same PID/VID after
> downloading the patch and radio table
> 
> Hi Steven,
> 
> Please stop messy top postings like this one. It's not allowed on this mailing
> list. Thanks.
> 
> * Li, Steven <yongli@qca.qualcomm.com> [2011-06-29 03:51:03 +0000]:
> 
> > Hi Marcel:
> >
> > > please fix the coding style. It is if[space](.
> > Okay, I see.
> >
> > > I would say something similar in style
> > > to what I have done for the older CSR chips. See workaround above.
> > > And on that note, you could use data->udev to get the usb_device
> > > struct ;)
> > As to this point,  since now we are not using the btusb to download the
> patch and radio table,
> >  I think we do not need to alloc the data struct and use data->udev before
> the workaround.
> > So I'll still keep it was.  How do you think it ?
> 
> No, there is no extra allocation. data->udev is already there. Just use it as
> Marcel said.

There is somehow different with  the older CSR chips.
We need to return -NODEV directly if the bcd version of the 3012 chip is lower or equal to 0x0001,
And I think in such "return -NODEV" case, we totally do not need to alloc the btusb_data.

Thanks,
Best Regards,
Steven,



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH] Bluetooth: Ath3k keeps same PID/VID after downloading the patch and radio table
  2011-06-29  6:14       ` Li, Steven
@ 2011-06-29  6:31         ` Gustavo F. Padovan
  2011-06-29  7:19           ` Li, Steven
  0 siblings, 1 reply; 7+ messages in thread
From: Gustavo F. Padovan @ 2011-06-29  6:31 UTC (permalink / raw)
  To: Li, Steven; +Cc: Marcel Holtmann, linux-bluetooth@vger.kernel.org

* Li, Steven <yongli@qca.qualcomm.com> [2011-06-29 06:14:34 +0000]:

> 
> Hi Padovan:
> 
> > -----Original Message-----
> > From: Gustavo F. Padovan [mailto:pao@profusion.mobi] On Behalf Of
> > Gustavo F. Padovan
> > Sent: Wednesday, June 29, 2011 12:32 PM
> > To: Li, Steven
> > Cc: Marcel Holtmann; linux-bluetooth@vger.kernel.org
> > Subject: Re: [PATCH] Bluetooth: Ath3k keeps same PID/VID after
> > downloading the patch and radio table
> > 
> > Hi Steven,
> > 
> > Please stop messy top postings like this one. It's not allowed on this mailing
> > list. Thanks.
> > 
> > * Li, Steven <yongli@qca.qualcomm.com> [2011-06-29 03:51:03 +0000]:
> > 
> > > Hi Marcel:
> > >
> > > > please fix the coding style. It is if[space](.
> > > Okay, I see.
> > >
> > > > I would say something similar in style
> > > > to what I have done for the older CSR chips. See workaround above.
> > > > And on that note, you could use data->udev to get the usb_device
> > > > struct ;)
> > > As to this point,  since now we are not using the btusb to download the
> > patch and radio table,
> > >  I think we do not need to alloc the data struct and use data->udev before
> > the workaround.
> > > So I'll still keep it was.  How do you think it ?
> > 
> > No, there is no extra allocation. data->udev is already there. Just use it as
> > Marcel said.
> 
> There is somehow different with  the older CSR chips.
> We need to return -NODEV directly if the bcd version of the 3012 chip is lower or equal to 0x0001,
> And I think in such "return -NODEV" case, we totally do not need to alloc the btusb_data.

Ah yes, you right, I misread the patch.

	Gustavo

^ permalink raw reply	[flat|nested] 7+ messages in thread

* RE: [PATCH] Bluetooth: Ath3k keeps same PID/VID after downloading the patch and radio table
  2011-06-29  6:31         ` Gustavo F. Padovan
@ 2011-06-29  7:19           ` Li, Steven
  0 siblings, 0 replies; 7+ messages in thread
From: Li, Steven @ 2011-06-29  7:19 UTC (permalink / raw)
  To: Gustavo F. Padovan; +Cc: Marcel Holtmann, linux-bluetooth@vger.kernel.org

Hi Padovan :

> > > > > I would say something similar in style
> > > > > to what I have done for the older CSR chips. See workaround above=
.
> > > > > And on that note, you could use data->udev to get the usb_device
> > > > > struct ;)
> > > > As to this point,  since now we are not using the btusb to download=
 the
> > > patch and radio table,
> > > >  I think we do not need to alloc the data struct and use data->udev
> before
> > > the workaround.
> > > > So I'll still keep it was.  How do you think it ?
> > >
> > > No, there is no extra allocation. data->udev is already there. Just u=
se it as
> > > Marcel said.
> >
> > There is somehow different with  the older CSR chips.
> > We need to return -NODEV directly if the bcd version of the 3012 chip i=
s
> lower or equal to 0x0001,
> > And I think in such "return -NODEV" case, we totally do not need to all=
oc
> the btusb_data.
>=20
> Ah yes, you right, I misread the patch.
>=20

I have re-sent the patch to the mail list.
Btw, I changed the subject of the PATCH to make it be less than 60 characte=
rs.

Thanks, Padovan,
Steven,

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2011-06-29  7:19 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-06-27  8:27 [PATCH] Bluetooth: Ath3k keeps same PID/VID after downloading the patch and radio table Li, Steven
2011-06-29  0:51 ` Marcel Holtmann
2011-06-29  3:51   ` Li, Steven
2011-06-29  4:31     ` Gustavo F. Padovan
2011-06-29  6:14       ` Li, Steven
2011-06-29  6:31         ` Gustavo F. Padovan
2011-06-29  7:19           ` Li, Steven

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.