All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Staging: rtl8712: Change double device ID back to original value
@ 2012-02-27 10:29 Martin Krause
  2012-02-27 15:58 ` Larry Finger
  0 siblings, 1 reply; 4+ messages in thread
From: Martin Krause @ 2012-02-27 10:29 UTC (permalink / raw)
  To: linville; +Cc: linux-wireless, Larry.Finger

In the rtl8712 staging driver the 0bda:8172 usb device id exists two times.
It seems that this was an error when integrating the original Realtek
driver into the kernel. This patch changes the double device id back to the
value used in the last Realtek driver
(rtl8712_8188_8191_8192SU_usb_linux_v2.6.6.0.20110401).

Signed-off-by: Martin Krause <martin.krause@tqs.de>
---
I tested this patch on a powerpc board (p2020 based) with a WIFIHU Radicom 
wireless module with a RTL8191SU chip on it (usb device id 0bda:8192).

 drivers/staging/rtl8712/usb_intf.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/staging/rtl8712/usb_intf.c b/drivers/staging/rtl8712/usb_intf.c
index 9bade18..bb247ce 100644
--- a/drivers/staging/rtl8712/usb_intf.c
+++ b/drivers/staging/rtl8712/usb_intf.c
@@ -104,7 +104,7 @@ static struct usb_device_id rtl871x_usb_id_tbl[] = {
 
 /* RTL8191SU */
 	/* Realtek */
-	{USB_DEVICE(0x0BDA, 0x8172)},
+	{USB_DEVICE(0x0BDA, 0x8192)},
 	/* Amigo */
 	{USB_DEVICE(0x0EB0, 0x9061)},
 	/* ASUS/EKB */


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

* Re: [PATCH] Staging: rtl8712: Change double device ID back to original value
  2012-02-27 10:29 [PATCH] Staging: rtl8712: Change double device ID back to original value Martin Krause
@ 2012-02-27 15:58 ` Larry Finger
  2012-02-27 17:14   ` AW: " Martin Krause
  2012-03-02  8:57   ` Martin Krause
  0 siblings, 2 replies; 4+ messages in thread
From: Larry Finger @ 2012-02-27 15:58 UTC (permalink / raw)
  To: Martin Krause; +Cc: linux-wireless, John Linville

On 02/27/2012 04:29 AM, Martin Krause wrote:
> In the rtl8712 staging driver the 0bda:8172 usb device id exists two times.
> It seems that this was an error when integrating the original Realtek
> driver into the kernel. This patch changes the double device id back to the
> value used in the last Realtek driver
> (rtl8712_8188_8191_8192SU_usb_linux_v2.6.6.0.20110401).
>
> Signed-off-by: Martin Krause<martin.krause@tqs.de>
> ---
> I tested this patch on a powerpc board (p2020 based) with a WIFIHU Radicom
> wireless module with a RTL8191SU chip on it (usb device id 0bda:8192).
>
>   drivers/staging/rtl8712/usb_intf.c |    2 +-
>   1 files changed, 1 insertions(+), 1 deletions(-)

Your patch does two things. One is the deletion of a duplicate USB ID, and the 
other is the addition of a new one. I would prefer that any patch do one or the 
other, but not both. Note, there are two sets of duplicate IDs in the table for 
the driver - the one you note in the RTL8191SU section, and another for 
0bda:8174 in the section that covers the RTL8192SU.

I think you are deleting the wrong 0bda:8172 with this patch. The 0bda code is 
for Realtek, thus the one in the Asus section is the one to remove.

Does your chip really have an RTL8191SU label? The USB database says that ID 
0bda:8192 is for the RTL8192SU. I would like to correct the database if it is wrong.

All patches to a staging driver go through the staging tree, not wireless. Send 
them to Greg Kroah-Hartman (gregkh@linuxfoundation.org) rather than John 
Linville. A Cc to linux-wireless is OK, but you should also reference the driver 
development list (devel@driverdev.osuosl.org).

Larry

>
> diff --git a/drivers/staging/rtl8712/usb_intf.c b/drivers/staging/rtl8712/usb_intf.c
> index 9bade18..bb247ce 100644
> --- a/drivers/staging/rtl8712/usb_intf.c
> +++ b/drivers/staging/rtl8712/usb_intf.c
> @@ -104,7 +104,7 @@ static struct usb_device_id rtl871x_usb_id_tbl[] = {
>
>   /* RTL8191SU */
>   	/* Realtek */
> -	{USB_DEVICE(0x0BDA, 0x8172)},
> +	{USB_DEVICE(0x0BDA, 0x8192)},
>   	/* Amigo */
>   	{USB_DEVICE(0x0EB0, 0x9061)},
>   	/* ASUS/EKB */
>
>


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

* AW: [PATCH] Staging: rtl8712: Change double device ID back to original value
  2012-02-27 15:58 ` Larry Finger
@ 2012-02-27 17:14   ` Martin Krause
  2012-03-02  8:57   ` Martin Krause
  1 sibling, 0 replies; 4+ messages in thread
From: Martin Krause @ 2012-02-27 17:14 UTC (permalink / raw)
  To: Larry Finger; +Cc: linux-wireless, John Linville

Hi Larry,

thank you for your quick response!
Comments see below.

Larry Finger wrote on :
> On 02/27/2012 04:29 AM, Martin Krause wrote:
>> In the rtl8712 staging driver the 0bda:8172 usb device id exists two
>> times. It seems that this was an error when integrating the original
>> Realtek driver into the kernel. This patch changes the double device
>> id back to the value used in the last Realtek driver
>> (rtl8712_8188_8191_8192SU_usb_linux_v2.6.6.0.20110401).
>> 
>> Signed-off-by: Martin Krause<martin.krause@tqs.de>
>> ---
>> I tested this patch on a powerpc board (p2020 based) with a WIFIHU
>> Radicom wireless module with a RTL8191SU chip on it (usb device id
>> 0bda:8192). 
>> 
>>   drivers/staging/rtl8712/usb_intf.c |    2 +-
>>   1 files changed, 1 insertions(+), 1 deletions(-)
> 
> Your patch does two things. One is the deletion of a
> duplicate USB ID, and the
> other is the addition of a new one. I would prefer that any
> patch do one or the
> other, but not both. Note, there are two sets of duplicate
> IDs in the table for
> the driver - the one you note in the RTL8191SU section, and another
> for 0bda:8174 in the section that covers the RTL8192SU.
> 
> I think you are deleting the wrong 0bda:8172 with this patch.
> The 0bda code is
> for Realtek, thus the one in the Asus section is the one to remove.

OK (I don't thought very hard about this I fear ...).

> Does your chip really have an RTL8191SU label? The USB
> database says that ID
> 0bda:8192 is for the RTL8192SU. I would like to correct the database
> if it is wrong.

The chip is covered by a metallic shielding. So I wrote an email to 
Radicom to confirm this. I will forward you the answer.

> All patches to a staging driver go through the staging tree,
> not wireless. Send
> them to Greg Kroah-Hartman (gregkh@linuxfoundation.org)
> rather than John
> Linville. A Cc to linux-wireless is OK, but you should also reference
> the driver development list (devel@driverdev.osuosl.org).

OK, thanks for the hint!

Regards,
Martin

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

* AW: [PATCH] Staging: rtl8712: Change double device ID back to original value
  2012-02-27 15:58 ` Larry Finger
  2012-02-27 17:14   ` AW: " Martin Krause
@ 2012-03-02  8:57   ` Martin Krause
  1 sibling, 0 replies; 4+ messages in thread
From: Martin Krause @ 2012-03-02  8:57 UTC (permalink / raw)
  To: Larry Finger; +Cc: linux-wireless, John Linville

Hi Larry,

Larry Finger wrote on :
> On 02/27/2012 04:29 AM, Martin Krause wrote:
>> In the rtl8712 staging driver the 0bda:8172 usb device id exists two
>> times. It seems that this was an error when integrating the original
>> Realtek driver into the kernel. This patch changes the double device
>> id back to the value used in the last Realtek driver
>> (rtl8712_8188_8191_8192SU_usb_linux_v2.6.6.0.20110401).
>> 
>> Signed-off-by: Martin Krause<martin.krause@tqs.de>
>> ---
>> I tested this patch on a powerpc board (p2020 based) with a WIFIHU
>> Radicom wireless module with a RTL8191SU chip on it (usb device id
>> 0bda:8192). 
>> 
>>   drivers/staging/rtl8712/usb_intf.c |    2 +-
>>   1 files changed, 1 insertions(+), 1 deletions(-)
> 
> Your patch does two things. One is the deletion of a
> duplicate USB ID, and the
> other is the addition of a new one. I would prefer that any
> patch do one or the
> other, but not both. Note, there are two sets of duplicate
> IDs in the table for
> the driver - the one you note in the RTL8191SU section, and another
> for 0bda:8174 in the section that covers the RTL8192SU.
> 
> I think you are deleting the wrong 0bda:8172 with this patch.
> The 0bda code is
> for Realtek, thus the one in the Asus section is the one to remove.
> 
> Does your chip really have an RTL8191SU label? The USB
> database says that ID
> 0bda:8192 is for the RTL8192SU. I would like to correct the database
> if it is wrong.

>From the Radicom engineers I get the following answer:

"Our WiFiHU is using RTL8191SU and USB ID is 0BDA/8192".

It seems the USB database is wrong, so. And this might be also an
explanation why this USB ID is used in the rtl8192su staging driver
(file drivers\staging\rtl8192u\r8192U_core.c). I compiled this driver
during my tests with the embedded Radicum WIFIHU wireless module
and it accepts this USB id (0bda:8192), but it did not work with
it. In contrast, the rtl8712 staging driver is working with this
moudule if adding this USB ID to it (as done in my patch).

Regards,
Martin

>> diff --git a/drivers/staging/rtl8712/usb_intf.c
> b/drivers/staging/rtl8712/usb_intf.c
>> index 9bade18..bb247ce 100644
>> --- a/drivers/staging/rtl8712/usb_intf.c
>> +++ b/drivers/staging/rtl8712/usb_intf.c
>> @@ -104,7 +104,7 @@ static struct usb_device_id rtl871x_usb_id_tbl[]
>> = { 
>> 
>>   /* RTL8191SU */
>>   	/* Realtek */
>> -	{USB_DEVICE(0x0BDA, 0x8172)},
>> +	{USB_DEVICE(0x0BDA, 0x8192)},
>>   	/* Amigo */
>>   	{USB_DEVICE(0x0EB0, 0x9061)},
>>   	/* ASUS/EKB */

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

end of thread, other threads:[~2012-03-02  8:58 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-02-27 10:29 [PATCH] Staging: rtl8712: Change double device ID back to original value Martin Krause
2012-02-27 15:58 ` Larry Finger
2012-02-27 17:14   ` AW: " Martin Krause
2012-03-02  8:57   ` Martin Krause

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.