diff options
author | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2009-07-03 16:08:32 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2009-09-15 12:01:40 -0700 |
commit | 35c1b4629183ef4d234b5f92728be2d9526a9a21 (patch) | |
tree | 9c613aea83017756fc53f208281940d100d5eee1 /drivers/staging/rtl8192su/r8192S_Efuse.c | |
parent | 9f7f00cd28e9f3bc578eb41489f4a75cf17fbdc8 (diff) |
Staging: rtl8192su: remove dead code
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging/rtl8192su/r8192S_Efuse.c')
-rw-r--r-- | drivers/staging/rtl8192su/r8192S_Efuse.c | 84 |
1 files changed, 0 insertions, 84 deletions
diff --git a/drivers/staging/rtl8192su/r8192S_Efuse.c b/drivers/staging/rtl8192su/r8192S_Efuse.c index 85e84a75a492..f0ce6562c23b 100644 --- a/drivers/staging/rtl8192su/r8192S_Efuse.c +++ b/drivers/staging/rtl8192su/r8192S_Efuse.c @@ -188,10 +188,6 @@ static u16 efuse_GetCurrentSize(struct net_device* dev); static u8 efuse_CalculateWordCnts(u8 word_en); -#if 0 -static void -efuse_ResetLoader(struct net_device* dev); -#endif // // API for power on power off!!! // @@ -1020,49 +1016,6 @@ efuse_ReadAllMap(struct net_device* dev, u8 *Efuse) efuse_PowerSwitch(dev, TRUE); ReadEFuse(dev, 0, 128, Efuse); efuse_PowerSwitch(dev, FALSE); -#if 0 - // ==> Prevent efuse read error!!! - RT_TRACE(COMP_INIT, "efuse_ResetLoader\n"); - efuse_ResetLoader(dev); - - // Change Efuse Clock for write action to 40MHZ - write_nic_byte(dev, EFUSE_CLK, 0x03); - - ReadEFuse(dev, 0, 128, Efuse); - - // Change Efuse Clock for write action to 500K - write_nic_byte(dev, EFUSE_CLK, 0x02); -#if 0 // Error !!!!!! - for(offset = 0;offset<16;offset++) // For 8192SE - { - PlatformFillMemory((PVOID)pg_data, 8, 0xff); - efuse_PgPacketRead(pAdapter,offset,pg_data); - - PlatformMoveMemory((PVOID)&Efuse[offset*8], (PVOID)pg_data, 8); - } -#endif - - // - // Error Check and Reset Again!!!! - // - if (Efuse[0] != 0x29 || Efuse[1] != 0x81) - { - // SW autoload fail, we have to read again!!! - if (index ++ < 5) - { - RT_TRACE(COMP_INIT, "EFUSE R FAIL %d\n", index); - efuse_ReadAllMap(dev, Efuse); - // Wait a few time ???? Or need to do some setting ??? - // When we reload driver, efuse will be OK!! - } - } - else - { - index = 0; - } - - //efuse_PowerSwitch(pAdapter, FALSE); -#endif } // efuse_ReadAllMap @@ -1772,43 +1725,6 @@ efuse_CalculateWordCnts(u8 word_en) return word_cnts; } // efuse_CalculateWordCnts - -/*----------------------------------------------------------------------------- - * Function: efuse_ResetLoader - * - * Overview: When read Efuse Fail we must reset loader!!!! - * - * Input: NONE - * - * Output: NONE - * - * Return: NONE - * - * Revised History: - * When Who Remark - * 11/22/2008 MHC Create Version 0. - * - *---------------------------------------------------------------------------*/ -#if 0 -static void efuse_ResetLoader(struct net_device* dev) -{ - u16 tmpU2b; - - // - // 2008/11/22 MH Sometimes, we may read efuse fail, for preventing the condition - // We have to reset loader. - // - tmpU2b = read_nic_word(dev, SYS_FUNC_EN); - write_nic_word(dev, SYS_FUNC_EN, (tmpU2b&~(BIT12))); - //PlatformStallExecution(10000); // How long should we delay!!! - mdelay(10); - write_nic_word(dev, SYS_FUNC_EN, (tmpU2b|BIT12)); - //PlatformStallExecution(10000); // How long should we delay!!! - mdelay(10); - -} // efuse_ResetLoader -#endif - /*----------------------------------------------------------------------------- * Function: EFUSE_ProgramMap * |