The map entry EFUSE_ANA8M is supposed to be a bit mask of the SYS_CLK register (see efuse.c) It doesn't make sense to assign the enumeration value EFUSE_ANA8M. Assign the bitmask ANA8M instead. rtl8192se does not have ANA8M, so use 0 as bitmask. Signed-off-by: Michael Buesch <m@xxxxxxx> --- This is RFC, because I don't really know the device. The rtl8192se part of the patch is just a guess, because this driver's reg.h doesn't have an ANA8M define. Index: wireless-drivers-next/drivers/net/wireless/rtlwifi/rtl8192ce/sw.c =================================================================== --- wireless-drivers-next.orig/drivers/net/wireless/rtlwifi/rtl8192ce/sw.c +++ wireless-drivers-next/drivers/net/wireless/rtlwifi/rtl8192ce/sw.c @@ -282,7 +282,7 @@ static struct rtl_hal_cfg rtl92ce_hal_cf .maps[EFUSE_PWC_EV12V] = PWC_EV12V, .maps[EFUSE_FEN_ELDR] = FEN_ELDR, .maps[EFUSE_LOADER_CLK_EN] = LOADER_CLK_EN, - .maps[EFUSE_ANA8M] = EFUSE_ANA8M, + .maps[EFUSE_ANA8M] = ANA8M, .maps[EFUSE_HWSET_MAX_SIZE] = HWSET_MAX_SIZE, .maps[EFUSE_MAX_SECTION_MAP] = EFUSE_MAX_SECTION, .maps[EFUSE_REAL_CONTENT_SIZE] = EFUSE_REAL_CONTENT_LEN, Index: wireless-drivers-next/drivers/net/wireless/rtlwifi/rtl8192cu/sw.c =================================================================== --- wireless-drivers-next.orig/drivers/net/wireless/rtlwifi/rtl8192cu/sw.c +++ wireless-drivers-next/drivers/net/wireless/rtlwifi/rtl8192cu/sw.c @@ -206,7 +206,7 @@ static struct rtl_hal_cfg rtl92cu_hal_cf .maps[EFUSE_PWC_EV12V] = PWC_EV12V, .maps[EFUSE_FEN_ELDR] = FEN_ELDR, .maps[EFUSE_LOADER_CLK_EN] = LOADER_CLK_EN, - .maps[EFUSE_ANA8M] = EFUSE_ANA8M, + .maps[EFUSE_ANA8M] = ANA8M, .maps[EFUSE_HWSET_MAX_SIZE] = HWSET_MAX_SIZE, .maps[EFUSE_MAX_SECTION_MAP] = EFUSE_MAX_SECTION, .maps[EFUSE_REAL_CONTENT_SIZE] = EFUSE_REAL_CONTENT_LEN, Index: wireless-drivers-next/drivers/net/wireless/rtlwifi/rtl8192se/sw.c =================================================================== --- wireless-drivers-next.orig/drivers/net/wireless/rtlwifi/rtl8192se/sw.c +++ wireless-drivers-next/drivers/net/wireless/rtlwifi/rtl8192se/sw.c @@ -330,7 +330,7 @@ static struct rtl_hal_cfg rtl92se_hal_cf .maps[EFUSE_PWC_EV12V] = 0, /* nouse for 8192se */ .maps[EFUSE_FEN_ELDR] = 0, /* nouse for 8192se */ .maps[EFUSE_LOADER_CLK_EN] = 0,/* nouse for 8192se */ - .maps[EFUSE_ANA8M] = EFUSE_ANA8M, + .maps[EFUSE_ANA8M] = 0, /* nouse for 8192se */ .maps[EFUSE_HWSET_MAX_SIZE] = HWSET_MAX_SIZE_92S, .maps[EFUSE_MAX_SECTION_MAP] = EFUSE_MAX_SECTION, .maps[EFUSE_REAL_CONTENT_SIZE] = EFUSE_REAL_CONTENT_LEN,
Attachment:
pgpyTWRyKxd3E.pgp
Description: OpenPGP digital signature