linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 2/2] rtl8192de: Recognize 92D E-CUT version.
@ 2012-04-02 14:25 Forest Bond
  2012-04-02 16:09 ` Larry Finger
  0 siblings, 1 reply; 2+ messages in thread
From: Forest Bond @ 2012-04-02 14:25 UTC (permalink / raw)
  To: linux-wireless; +Cc: Larry Finger, Chaoming Li

[-- Attachment #1: Type: text/plain, Size: 1299 bytes --]

From: Forest Bond <forest.bond@rapidrollout.com>

The chip version constant (0xCC33) was taken from version 0001.0105.2011
of the GPL vendor driver.  Note that this driver version also ships a
firmware update, but I am unsure if it is required for E-CUT chips to
function properly.

A nearby spelling error was also corrected.

Signed-off-by: Forest Bond <forest.bond@rapidrollout.com>
---
 drivers/net/wireless/rtlwifi/rtl8192de/hw.c |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/drivers/net/wireless/rtlwifi/rtl8192de/hw.c b/drivers/net/wireless/rtlwifi/rtl8192de/hw.c
index 509f5af..b338d52 100644
--- a/drivers/net/wireless/rtlwifi/rtl8192de/hw.c
+++ b/drivers/net/wireless/rtlwifi/rtl8192de/hw.c
@@ -1743,9 +1743,13 @@ static void _rtl92de_efuse_update_chip_version(struct ieee80211_hw *hw)
 		chipver |= CHIP_92D_D_CUT;
 		RT_TRACE(rtlpriv, COMP_INIT, DBG_LOUD, "D-CUT!!!\n");
 		break;
+	case 0xCC33:
+		chipver |= CHIP_92D_E_CUT;
+		RT_TRACE(rtlpriv, COMP_INIT, DBG_LOUD, "E-CUT!!!\n");
+		break;
 	default:
 		chipver |= CHIP_92D_D_CUT;
-		RT_TRACE(rtlpriv, COMP_INIT, DBG_EMERG, "Unkown CUT!\n");
+		RT_TRACE(rtlpriv, COMP_INIT, DBG_EMERG, "Unknown CUT!\n");
 		break;
 	}
 	rtlpriv->rtlhal.version = chipver;
-- 
1.7.0.4

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

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

* Re: [PATCH 2/2] rtl8192de: Recognize 92D E-CUT version.
  2012-04-02 14:25 [PATCH 2/2] rtl8192de: Recognize 92D E-CUT version Forest Bond
@ 2012-04-02 16:09 ` Larry Finger
  0 siblings, 0 replies; 2+ messages in thread
From: Larry Finger @ 2012-04-02 16:09 UTC (permalink / raw)
  To: Forest Bond; +Cc: linux-wireless, Chaoming Li, Jingjun Wu

On 04/02/2012 09:25 AM, Forest Bond wrote:
> From: Forest Bond<forest.bond@rapidrollout.com>
>
> The chip version constant (0xCC33) was taken from version 0001.0105.2011
> of the GPL vendor driver.  Note that this driver version also ships a
> firmware update, but I am unsure if it is required for E-CUT chips to
> function properly.

There is also a new version of the RTL8192SE firmware in that driver. Too bad 
that Realtek doesn't communicate these changes with me, I will test and submit 
the updated firmware if the changes make a difference.

>
> A nearby spelling error was also corrected.
>
> Signed-off-by: Forest Bond<forest.bond@rapidrollout.com>
> ---
>   drivers/net/wireless/rtlwifi/rtl8192de/hw.c |    6 +++++-
>   1 files changed, 5 insertions(+), 1 deletions(-)
>
> diff --git a/drivers/net/wireless/rtlwifi/rtl8192de/hw.c b/drivers/net/wireless/rtlwifi/rtl8192de/hw.c
> index 509f5af..b338d52 100644
> --- a/drivers/net/wireless/rtlwifi/rtl8192de/hw.c
> +++ b/drivers/net/wireless/rtlwifi/rtl8192de/hw.c
> @@ -1743,9 +1743,13 @@ static void _rtl92de_efuse_update_chip_version(struct ieee80211_hw *hw)
>   		chipver |= CHIP_92D_D_CUT;
>   		RT_TRACE(rtlpriv, COMP_INIT, DBG_LOUD, "D-CUT!!!\n");
>   		break;
> +	case 0xCC33:
> +		chipver |= CHIP_92D_E_CUT;
> +		RT_TRACE(rtlpriv, COMP_INIT, DBG_LOUD, "E-CUT!!!\n");
> +		break;

This comment is a note to myself, not a criticism of your patch. These magic 
numbers need to be replaced by defined constants.

>   	default:
>   		chipver |= CHIP_92D_D_CUT;
> -		RT_TRACE(rtlpriv, COMP_INIT, DBG_EMERG, "Unkown CUT!\n");
> +		RT_TRACE(rtlpriv, COMP_INIT, DBG_EMERG, "Unknown CUT!\n");
>   		break;
>   	}
>   	rtlpriv->rtlhal.version = chipver;

Thanks,

Larry

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

end of thread, other threads:[~2012-04-02 16:09 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-04-02 14:25 [PATCH 2/2] rtl8192de: Recognize 92D E-CUT version Forest Bond
2012-04-02 16:09 ` Larry Finger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).