From patchwork Sun Jan 18 05:10:54 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andy Green X-Patchwork-Id: 5652871 X-Patchwork-Delegate: kvalo@adurom.com Return-Path: X-Original-To: patchwork-linux-wireless@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id B5CC0C058D for ; Sun, 18 Jan 2015 05:11:11 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id E25AF2037E for ; Sun, 18 Jan 2015 05:11:10 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 1697A2035B for ; Sun, 18 Jan 2015 05:11:10 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751903AbbARFLD (ORCPT ); Sun, 18 Jan 2015 00:11:03 -0500 Received: from mail-pa0-f44.google.com ([209.85.220.44]:51765 "EHLO mail-pa0-f44.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751577AbbARFLA (ORCPT ); Sun, 18 Jan 2015 00:11:00 -0500 Received: by mail-pa0-f44.google.com with SMTP id et14so32085841pad.3; Sat, 17 Jan 2015 21:10:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20120113; h=sender:subject:from:to:cc:date:message-id:in-reply-to:references :user-agent:mime-version:content-type:content-transfer-encoding; bh=KcsJeSnsnEMg5yd7FTz/gBCeXczcZCAJoOOvwpf1pPc=; b=PTpmkfyi6We476s3ux/Ur5y4N8BBMOW5Ktn4DdFEUnzFosKguQTauMCEjY+bpaON2o cKbzzk7DIiBewggTtl6MXfyEZiPm9ahbI9WbwVWaRuhevzcR/TAwh3WsZT1CFJAYcLW4 AJQwp/vH0UH+nyoUa6/lOasWPuizthe49keoTAw7Jy4KJt/+JTcOj8teuYJsW5hedNGV VJm8pmRDZsuY2smYEv5thfOYxb2pfoOARImh4ZXnNz+eCYfQl5F6gctqJGXcgMfRWMPY um+lcAOaSVn+U7eU62iNO2+DcBbS3JGlJW01PSo2PhmRxdCDr748JZMnXdUVBoGO9LEx cPqA== X-Received: by 10.70.15.196 with SMTP id z4mr25579735pdc.20.1421557859882; Sat, 17 Jan 2015 21:10:59 -0800 (PST) Received: from warmcat.com (114-36-241-182.dynamic.hinet.net. [114.36.241.182]) by mx.google.com with ESMTPSA id c6sm6547922pdp.60.2015.01.17.21.10.58 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 17 Jan 2015 21:10:58 -0800 (PST) Subject: [PATCH 3/7] net: wireless: wcn36xx: use 3680 dxe regs for 3620 From: Andy Green To: Kalle Valo , Eugene Krasnikov Cc: wcn36xx@lists.infradead.org, linux-wireless@vger.kernel.org, netdev@vger.kernel.org Date: Sun, 18 Jan 2015 13:10:54 +0800 Message-ID: <20150118051054.31866.79113.stgit@114-36-241-182.dynamic.hinet.net> In-Reply-To: <20150118050741.31866.36490.stgit@114-36-241-182.dynamic.hinet.net> References: <20150118050741.31866.36490.stgit@114-36-241-182.dynamic.hinet.net> User-Agent: StGit/0.17-dirty 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.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID,T_RP_MATCHES_RCVD,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 Between 3620, 3660 and 3680, only 3660 has a different dxe register Signed-off-by: Andy Green --- drivers/net/wireless/ath/wcn36xx/dxe.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- To unsubscribe from this list: send the line "unsubscribe linux-wireless" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/drivers/net/wireless/ath/wcn36xx/dxe.c b/drivers/net/wireless/ath/wcn36xx/dxe.c index 73f12f1..334f265 100644 --- a/drivers/net/wireless/ath/wcn36xx/dxe.c +++ b/drivers/net/wireless/ath/wcn36xx/dxe.c @@ -46,7 +46,7 @@ static void wcn36xx_dxe_write_register(struct wcn36xx *wcn, int addr, int data) #define wcn36xx_dxe_write_register_x(wcn, reg, reg_data) \ do { \ - if (wcn->chip_version == WCN36XX_CHIP_3680) \ + if (wcn->chip_version != WCN36XX_CHIP_3660) \ wcn36xx_dxe_write_register(wcn, reg ## _3680, reg_data); \ else \ wcn36xx_dxe_write_register(wcn, reg ## _3660, reg_data); \