From patchwork Tue May 5 22:40:20 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Okash Khawaja X-Patchwork-Id: 6344661 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 D368EBEEE1 for ; Tue, 5 May 2015 22:40:49 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 0D59D20166 for ; Tue, 5 May 2015 22:40:49 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 2EDF62015E for ; Tue, 5 May 2015 22:40:48 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965509AbbEEWk2 (ORCPT ); Tue, 5 May 2015 18:40:28 -0400 Received: from mail-wg0-f44.google.com ([74.125.82.44]:32954 "EHLO mail-wg0-f44.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751611AbbEEWkY (ORCPT ); Tue, 5 May 2015 18:40:24 -0400 Received: by wgin8 with SMTP id n8so198596259wgi.0; Tue, 05 May 2015 15:40:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:cc:subject:message-id:mime-version:content-type :content-disposition:user-agent; bh=/nNSh/rVna1Xrc3be+lRaYCs1Bpc1O653bHVkGKZLRY=; b=vYvpLgF0kAVRHZ8hp4Qvp09swONbTdF7yRuRf00T3KGxEYMhpXWy7oqZb+HdGVqFOd dCocgPmZArYFiC+mHVm1b3ZX6vX9ONOKXJRefGaFlHLv4Rq7PYedlk7MPDffcoMFHaJQ D8vQiOWaqy9/2YrdQ/HDMeg5UsV96Q6665JqbZgwvt2H1ItTSSs9X7mHcUKYAEVFsLEd 28yDk9UicW16UCa4QE9DcyPUUSgUzcBh5UwAUdbhfuyMHvBHIWbHITSEGIij5deT+20J gFMH+pyt1v3Lnjwb19PbrJ6LBNbCpUqmZlBJ+TL1i8wUrRlK1K/GTpZ7Z9tU6rtPiUSK fhUw== X-Received: by 10.180.105.233 with SMTP id gp9mr8343940wib.83.1430865623305; Tue, 05 May 2015 15:40:23 -0700 (PDT) Received: from bytefire-computer ([90.199.116.241]) by mx.google.com with ESMTPSA id ao4sm27643112wjc.14.2015.05.05.15.40.21 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 05 May 2015 15:40:22 -0700 (PDT) Date: Tue, 5 May 2015 23:40:20 +0100 From: Okash Khawaja To: joe@perches.com Cc: kvalo@codeaurora.org, linux-wireless@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 2/2] adm8211: fix the possible pci cache line sizes inside switch-case Message-ID: <20150505224020.GA3805@bytefire-computer> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) 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_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, 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 The PCI cache line size value was being compared against decimal values prefixed with 0x. Fixed the literals to use the correct hex values. Signed-off-by: Okash Khawaja --- drivers/net/wireless/adm8211.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/wireless/adm8211.c b/drivers/net/wireless/adm8211.c index 058fb4b..76c908f 100644 --- a/drivers/net/wireless/adm8211.c +++ b/drivers/net/wireless/adm8211.c @@ -1101,10 +1101,10 @@ static void adm8211_hw_init(struct ieee80211_hw *dev) case 0x8: reg |= (0x1 << 14); break; - case 0x16: + case 0x10: reg |= (0x2 << 14); break; - case 0x32: + case 0x20: reg |= (0x3 << 14); break; default: