From patchwork Thu May 21 19:44:21 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?q?Michael_B=C3=BCsch?= X-Patchwork-Id: 6459411 X-Patchwork-Delegate: kvalo@adurom.com Return-Path: X-Original-To: patchwork-linux-wireless@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id B5C2F9F318 for ; Thu, 21 May 2015 20:20:40 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 955B42051A for ; Thu, 21 May 2015 20:20:39 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 6904D20503 for ; Thu, 21 May 2015 20:20:38 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755974AbbEUUUg (ORCPT ); Thu, 21 May 2015 16:20:36 -0400 Received: from bues.ch ([80.190.117.144]:34347 "EHLO bues.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755314AbbEUUUf (ORCPT ); Thu, 21 May 2015 16:20:35 -0400 X-Greylist: delayed 2053 seconds by postgrey-1.27 at vger.kernel.org; Thu, 21 May 2015 16:20:35 EDT Received: by bues.ch with esmtpsa (Exim 4.80) (envelope-from ) id 1YvWQ5-0000ZJ-52; Thu, 21 May 2015 21:46:17 +0200 Date: Thu, 21 May 2015 21:44:21 +0200 From: Michael =?UTF-8?B?QsO8c2No?= To: Larry Finger , Chaoming Li Cc: linux-wireless@vger.kernel.org Subject: [PATCH] rtlwifi: Fix EFUSE_ANA8M map value Message-ID: <20150521214421.15983b0a@milhouse> X-Mailer: Claws Mail 3.11.1 (GTK+ 2.24.25; x86_64-pc-linux-gnu) MIME-Version: 1.0 Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, T_RP_MATCHES_RCVD, T_TVD_MIME_EPI, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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 --- 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,