From patchwork Sun Mar 6 12:57:07 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Malcolm Priestley X-Patchwork-Id: 8513321 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 0C3CFC0553 for ; Sun, 6 Mar 2016 12:57:47 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 979E9201C8 for ; Sun, 6 Mar 2016 12:57:44 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id BA08320172 for ; Sun, 6 Mar 2016 12:57:43 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751618AbcCFM5n (ORCPT ); Sun, 6 Mar 2016 07:57:43 -0500 Received: from mail-wm0-f68.google.com ([74.125.82.68]:35829 "EHLO mail-wm0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751544AbcCFM5e (ORCPT ); Sun, 6 Mar 2016 07:57:34 -0500 Received: by mail-wm0-f68.google.com with SMTP id 1so6277449wmg.2 for ; Sun, 06 Mar 2016 04:57:33 -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=w57ywTjGvvYnHsUNedmPwjXQr7kIGzGXkMC1vxu7AMk=; b=HZgU9iiKETiPCJOvERM+EDn5BxUTxVdgI5yNa/zySAlmPH3rgtrRpbMAhCrHMuPanh NgzIo+dyCTgWqNdUbvophELtQVYpUXSMxymcq6k+797un7BhSYRsMdLMjW+ClBPpJiAt qMTeoIc3H6JsIerR9fzLX+R6Vs1LARrvlMvkuO5bXErNFQezX796BEhfnr3fannRXMbl paZ6R8PAS31F++XHUJmY3xJOv32KYvGVKPgASGdKiFhsjIrtSBQmjBkdpwGe8a7x7vzP CCB9QOJomZp4wgeJMiqq3qCT+lGKdqYVCFES66SSSIIjtbPFQwta1FIZWSMNsfPxVg83 l9fQ== 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=w57ywTjGvvYnHsUNedmPwjXQr7kIGzGXkMC1vxu7AMk=; b=T+N4BfRu3WbWTYkwh+KMKPTvX38VKuTAlilrbRPbPmbJ6BnhEfJHa/GxZJnJWoJ1qa NYkzdb1PEecbZV64P9eLoI4KDIZZ5CyVqZH6B2twwDYOzlwK+CqwPobXmmz7HDAV+nES 2FYbInpqwoJ/nDBlwE8s45rMDAT7uzj5jMb34ZPXHCmqaK6aMNIN+IBL2lfWg+wuoWtF 9nUTVMytJOFP7+IebksOZXj4b8Vx8wAhKcekGe+UeTIsYP0gLlxNEblRsyva1YK4oCyD LtFT00BgWV7iWfv2APfwZcCa8SDMn2fZf0gIZ+V8GYLiTB61Sfs7FO36a1rm0e5VYgpA 6Q5A== X-Gm-Message-State: AD7BkJIb4NL03INPYFaMdknfkFLvC5pzV52qomoO8eBU/VnrT+2PnhEIaacUCC2j3/FxtA== X-Received: by 10.28.22.74 with SMTP id 71mr7689408wmw.47.1457269052292; Sun, 06 Mar 2016 04:57:32 -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.31 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 06 Mar 2016 04:57:31 -0800 (PST) From: Malcolm Priestley To: gregkh@linuxfoundation.org Cc: linux-wireless@vger.kernel.org, Malcolm Priestley Subject: [PATCH 08/13] staging: vt6655: MACvSetLoopbackMode replace byOrgValue with ioread8 Date: Sun, 6 Mar 2016 12:57:07 +0000 Message-Id: <1457269032-2681-8-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 VNSvInPortB and nesting inside iowrite8. Signed-off-by: Malcolm Priestley --- drivers/staging/vt6655/mac.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/drivers/staging/vt6655/mac.c b/drivers/staging/vt6655/mac.c index 6499709..ece2bf0 100644 --- a/drivers/staging/vt6655/mac.c +++ b/drivers/staging/vt6655/mac.c @@ -184,14 +184,11 @@ void MACvSetLongRetryLimit(struct vnt_private *priv, unsigned char byRetryLimit) void MACvSetLoopbackMode(struct vnt_private *priv, unsigned char byLoopbackMode) { void __iomem *io_base = priv->PortOffset; - unsigned char byOrgValue; byLoopbackMode <<= 6; /* set TCR */ - VNSvInPortB(io_base + MAC_REG_TEST, &byOrgValue); - byOrgValue = byOrgValue & 0x3F; - byOrgValue = byOrgValue | byLoopbackMode; - iowrite8(byOrgValue, io_base + MAC_REG_TEST); + iowrite8((ioread8(io_base + MAC_REG_TEST) & 0x3f) | byLoopbackMode, + io_base + MAC_REG_TEST); } /*