From patchwork Sun May 31 09:35:25 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Malcolm Priestley X-Patchwork-Id: 6515541 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 BD00FC0433 for ; Sun, 31 May 2015 09:36:17 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id E2FB520489 for ; Sun, 31 May 2015 09:36:16 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 17B07204D1 for ; Sun, 31 May 2015 09:36:16 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758179AbbEaJgK (ORCPT ); Sun, 31 May 2015 05:36:10 -0400 Received: from mail-wi0-f181.google.com ([209.85.212.181]:38525 "EHLO mail-wi0-f181.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758138AbbEaJgF (ORCPT ); Sun, 31 May 2015 05:36:05 -0400 Received: by wizo1 with SMTP id o1so70812118wiz.1 for ; Sun, 31 May 2015 02:36:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=ScwuyT1IqHT4FVHzMCunXvr4+L8wDl0LYB3/USpWqfg=; b=OoiMbfjrZDUZVrXlg8bMF8cXq2orAm9VxqdxF5e160H7BbuFwKtXAGD6tbjRs9R0g2 tTTClgwOLQEnjqOEQIgR1XQaZWLesyH+LYCezCmit1mM5ABiXMd07pHx+68I1cvWHJ4v EJRx322D8Moy1hhvP951X3MKiSTCldKE7l5XjeJa+j9T7NcQaflICAxw7VsTkB1RSpmM GBdLmTiQL+IZa5zL70FaUqlNe6Hz8yKRzhf95GHyIeonoJIWaeqXhyXGQKYnCTAdAM0t jDn61MRr/NZ0AGwcGQJTSWu2eMXTUv/5njDSG3KAfdpv++V2lp501UK4+c256idF6i+X nYWw== X-Received: by 10.180.205.168 with SMTP id lh8mr11277981wic.24.1433064964568; Sun, 31 May 2015 02:36:04 -0700 (PDT) Received: from tipsey.3.home (188.31.131.59.threembb.co.uk. [188.31.131.59]) by mx.google.com with ESMTPSA id t17sm11193426wij.1.2015.05.31.02.36.03 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 31 May 2015 02:36:03 -0700 (PDT) From: Malcolm Priestley To: gregkh@linuxfoundation.org Cc: linux-wireless@vger.kernel.org, Malcolm Priestley Subject: [PATCH 6/9] staging: vt6655: vnt_interrupt_process remove page 0 select Date: Sun, 31 May 2015 10:35:25 +0100 Message-Id: <1433064928-2139-6-git-send-email-tvboxspy@gmail.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1433064928-2139-1-git-send-email-tvboxspy@gmail.com> References: <1433064928-2139-1-git-send-email-tvboxspy@gmail.com> 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 Page 1 is fully proctected by lock there is no need to check for it. Page 0 is selected at other times. Remove byOrgPageSel and its calls from function. Signed-off-by: Malcolm Priestley --- drivers/staging/vt6655/device_main.c | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/drivers/staging/vt6655/device_main.c b/drivers/staging/vt6655/device_main.c index d5f090f..2262a61 100644 --- a/drivers/staging/vt6655/device_main.c +++ b/drivers/staging/vt6655/device_main.c @@ -1056,7 +1056,6 @@ static void vnt_interrupt_process(struct vnt_private *pDevice) struct ieee80211_low_level_stats *low_stats = &pDevice->low_stats; int max_count = 0; u32 mib_counter; - unsigned char byOrgPageSel = 0; unsigned long flags; MACvReadISR(pDevice->PortOffset, &pDevice->dwIsr); @@ -1073,13 +1072,6 @@ static void vnt_interrupt_process(struct vnt_private *pDevice) spin_lock_irqsave(&pDevice->lock, flags); - /* Make sure current page is 0 */ - VNSvInPortB(pDevice->PortOffset + MAC_REG_PAGE1SEL, &byOrgPageSel); - if (byOrgPageSel == 1) - MACvSelectPage0(pDevice->PortOffset); - else - byOrgPageSel = 0; - /* Read low level stats */ MACvReadMIBCounter(pDevice->PortOffset, &mib_counter); @@ -1164,9 +1156,6 @@ static void vnt_interrupt_process(struct vnt_private *pDevice) break; } - if (byOrgPageSel == 1) - MACvSelectPage1(pDevice->PortOffset); - spin_unlock_irqrestore(&pDevice->lock, flags); MACvIntEnable(pDevice->PortOffset, IMR_MASK_VALUE);