From patchwork Sun Mar 6 12:57:06 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Malcolm Priestley X-Patchwork-Id: 8513311 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 7D9B79F46A for ; Sun, 6 Mar 2016 12:57:43 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 98AE520172 for ; Sun, 6 Mar 2016 12:57:42 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id C055D2017E for ; Sun, 6 Mar 2016 12:57:41 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751607AbcCFM5l (ORCPT ); Sun, 6 Mar 2016 07:57:41 -0500 Received: from mail-wm0-f65.google.com ([74.125.82.65]:36746 "EHLO mail-wm0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751535AbcCFM5c (ORCPT ); Sun, 6 Mar 2016 07:57:32 -0500 Received: by mail-wm0-f65.google.com with SMTP id l68so6277001wml.3 for ; Sun, 06 Mar 2016 04:57:31 -0800 (PST) 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=b5PcuV9X+t6O2BhsP7JN3polqsX5DhokLUzVzYtTkM0=; b=nujdAaKkKPNN4ftBBFZx/hQtpqTaeq1+3J7plxHtifkmneYZtmwGYTOHJC6XpPfkGk 4y7eRdv7HH8uQg2F85WKTVYnpkgTkIOem3606UVAuvQZZmQZpl2FaYuqPirXqMSAr0Rr LZJpb3EVWqYE4QHB/zEX6mFlorfjOWwBvs5KAoBDtikpT/K1cUEfX4R/61YUTbgQ7nSd VBhYHYI4izTy6MAl1lKApEvMQJ0Z9FlJQ3nJucSyNqZqEAQvJxLVRNvIQtTNEyDOYId1 v65E7QRxFlP/tbZghyIKRHHMWttVPu7xS1VyGhGTrRHy9vI5xFZQVISagBcZw7bUqAGc DPIg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=b5PcuV9X+t6O2BhsP7JN3polqsX5DhokLUzVzYtTkM0=; b=QZ7h1LYE1ldmddqP3+0bUdjfWvq+N+QGl88h486xG2R6OyMsxJGCfCoFQBMbQQWZT5 HCpaJGoz3NPaAn1tWkR8uGdwz2aKFNp+OY5sQor8bKClByuw325nqNPPrWpZS98MUXxV 9GD7Kx4N0OD/qBe+7Km7TqSIJIwZqRX7yhvCpI3EEY0PySmy8NN2+Rhz/qQ/obI8lhRa WPf3UCet1CK6qr5GUmOE/dY0Jx84rFv59fdT69Ym4LUrorsL7kDntofU8MLz9AsuR5nQ EXslS20PcDQIZlS/T0oKG9NqMDopehorzWYN0PIW/gUWJjIZSoQx3m6nqAp6qdyMuAGL /rQw== X-Gm-Message-State: AD7BkJLkgF1cuk/MTF0+VtJsoUL3FVPJWHFcNlgVBWDD9lEdwqMpel/P0Z6A/QKBml6BmA== X-Received: by 10.28.91.83 with SMTP id p80mr8420105wmb.48.1457269051276; Sun, 06 Mar 2016 04:57:31 -0800 (PST) Received: from tipsey.3.home (188.30.137.64.threembb.co.uk. [188.30.137.64]) by smtp.gmail.com with ESMTPSA id n10sm12839950wjf.28.2016.03.06.04.57.30 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 06 Mar 2016 04:57:30 -0800 (PST) From: Malcolm Priestley To: gregkh@linuxfoundation.org Cc: linux-wireless@vger.kernel.org, Malcolm Priestley Subject: [PATCH 07/13] staging: vt6655: MACbPSWakeup replace VNSvInPortB byOrgValue with ioread8 Date: Sun, 6 Mar 2016 12:57:06 +0000 Message-Id: <1457269032-2681-7-git-send-email-tvboxspy@gmail.com> X-Mailer: git-send-email 2.7.0 In-Reply-To: <1457269032-2681-1-git-send-email-tvboxspy@gmail.com> References: <1457269032-2681-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, RP_MATCHES_RCVD, T_DKIM_INVALID, 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 removing byOrgValue variable. Signed-off-by: Malcolm Priestley --- drivers/staging/vt6655/mac.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/staging/vt6655/mac.c b/drivers/staging/vt6655/mac.c index a1be5a7..6499709 100644 --- a/drivers/staging/vt6655/mac.c +++ b/drivers/staging/vt6655/mac.c @@ -765,7 +765,6 @@ void MACvSetMISCFifo(struct vnt_private *priv, unsigned short wOffset, bool MACbPSWakeup(struct vnt_private *priv) { void __iomem *io_base = priv->PortOffset; - unsigned char byOrgValue; unsigned int ww; /* Read PSCTL */ if (MACbIsRegBitsOff(priv, MAC_REG_PSCTL, PSCTL_PS)) @@ -776,8 +775,7 @@ bool MACbPSWakeup(struct vnt_private *priv) /* Check if SyncFlushOK */ for (ww = 0; ww < W_MAX_TIMEOUT; ww++) { - VNSvInPortB(io_base + MAC_REG_PSCTL, &byOrgValue); - if (byOrgValue & PSCTL_WAKEDONE) + if (ioread8(io_base + MAC_REG_PSCTL) & PSCTL_WAKEDONE) break; } if (ww == W_MAX_TIMEOUT) {