From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-ed1-f54.google.com (mail-ed1-f54.google.com [209.85.208.54]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B48AB7E for ; Tue, 26 Apr 2022 20:02:17 +0000 (UTC) Received: by mail-ed1-f54.google.com with SMTP id d6so18595366ede.8 for ; Tue, 26 Apr 2022 13:02:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=date:from:to:subject:message-id:mime-version:content-disposition; bh=nI0EZj2A55ofUBsRwqZw5nL4hPw6vp7tBJKIxUDbZ3w=; b=RYNO4UQo1gghXi7ShsFOWpoa2AgEuj+nhRC1vI+N4cGR0/o9ywyYsig+APShHwvwQx fNbzXc1c2mB0SZR0DmpeKtqQAZbcDqCt1pTsLcjEt0CqNuRsu/rOcA0H6xV/UtuAERBY T8HPcI4hxSjHeaqv6t7EA6iuESishozpcqhv79MS3DQfoT0jLqgwBvhzwM5WmHsXQ0bE ScvUrWisH2mKiBxSWuK76RTvLfIimILLYQ4ilu9pwGVhoU/FuzPfLHrFX998L/8IFGU+ MEtbF+0J7veR182tIj6wtsJfgKYzehfJo2L85aC5lTzmM81d+NxMJEc/zCj5LN2my6CV L5aQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:subject:message-id:mime-version :content-disposition; bh=nI0EZj2A55ofUBsRwqZw5nL4hPw6vp7tBJKIxUDbZ3w=; b=l5aWCSLuaT+u73XNg7kzroaNV5TuVdMhDu376Y9QXqZ1YdFVc7DOVIQ03s+z4lXLGw gOURZzy1raeqgwBPHfVHR+xW9mr1wNojqZRIpek9WBYqwIXVtnqBo9Bk9VWqi/xOvMlh kjlq+DXP0I80C5PBexeH4GkgGrk7bVnp6TMu7IC0lhFmejQnGxQKkkFRv1RDC8EuRwHX mowa+Z0zUeVamChYoW8JrwnJbAEPDFisCPmk3h0OIySgELkuKiQ2QXt0tcusPROG5a42 +vQsj+lLk4c1jAauwgHGV3vY9BvPv/PlbKhuMQWzUe0M9+V/TTwDAt1W/zDpnsJH1w37 HPng== X-Gm-Message-State: AOAM530zCIQ8ZtPiDNc51oEIcRbgqYJixdLEl0prxbo78eS2AeVG/oct agDO/Ebntb7/rP4tQLXXz/0= X-Google-Smtp-Source: ABdhPJzJM/8HXY9cSwertk5JmTXSE0G9XOGiRqJHu98TuhrKCx+8rivQE93w87ub8bgrrf5qtcv6QA== X-Received: by 2002:aa7:d393:0:b0:425:a8f8:663a with SMTP id x19-20020aa7d393000000b00425a8f8663amr26229099edq.323.1651003336028; Tue, 26 Apr 2022 13:02:16 -0700 (PDT) Received: from matrix-ESPRIMO-P710 (p54a074e9.dip0.t-ipconnect.de. [84.160.116.233]) by smtp.gmail.com with ESMTPSA id y18-20020a1709063a9200b006f022c00fa6sm5287742ejd.165.2022.04.26.13.02.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Apr 2022 13:02:15 -0700 (PDT) Date: Tue, 26 Apr 2022 22:02:13 +0200 From: Philipp Hortmann To: Forest Bond , Greg Kroah-Hartman , linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org Subject: [PATCH 0/3] staging: vt6655: Replace macro VNSvInPortD with ioread32() Message-ID: Precedence: bulk X-Mailing-List: linux-staging@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Replace macro VNSvInPortD with ioread32. Avoid cast of the return value as much as possible. The name of macro and the arguments use CamelCase which is not accepted by checkpatch.pl This patch series is new but patches have been send before. Review changelog on each patch. Tested with vt6655 on mini PCI Module Transferred this patch over wlan connection of vt6655 Used this code for testing of fuction: CARDbGetCurrentTSF in patch "staging: vt6655: Replace VNSvInPortD with ioread32": VNSvInPortD(iobase + MAC_REG_TSFCNTR, (u32 *)pqwCurrTSF); VNSvInPortD(iobase + MAC_REG_TSFCNTR + 4, (u32 *)pqwCurrTSF + 1); dev_info(&priv->pcid->dev, "CARDbGetCurrentTSF *pqwCurrTSF: %llx", *pqwCurrTSF); low = ioread32(iobase + MAC_REG_TSFCNTR); high = ioread32(iobase + MAC_REG_TSFCNTR + 4); dev_info(&priv->pcid->dev, "CARDbGetCurrentTSF temp_ph: %llx", low + ((u64)high << 32)); output: [ +0.000083] vt6655 0000:01:05.0: CARDbGetCurrentTSF *pqwCurrTSF: 116e83 [ +0.000008] vt6655 0000:01:05.0: CARDbGetCurrentTSF temp_ph: 116e83 [ +0.000009] vt6655 0000:01:05.0: CARDbGetCurrentTSF *pqwCurrTSF: 753d80 [ +0.000005] vt6655 0000:01:05.0: CARDbGetCurrentTSF temp_ph: 753d80 [ +0.000010] vt6655 0000:01:05.0: CARDbGetCurrentTSF *pqwCurrTSF: 753d8f [ +0.000004] vt6655 0000:01:05.0: CARDbGetCurrentTSF temp_ph: 753d8f Philipp Hortmann (3): staging: vt6655: Replace MACvReadMIBCounter with VNSvInPortD staging: vt6655: Replace MACvReadISR with VNSvInPortD staging: vt6655: Replace VNSvInPortD with ioread32 drivers/staging/vt6655/card.c | 6 ++++-- drivers/staging/vt6655/device_main.c | 6 +++--- drivers/staging/vt6655/mac.h | 24 +++++++++--------------- drivers/staging/vt6655/rf.c | 2 +- drivers/staging/vt6655/upc.h | 3 --- 5 files changed, 17 insertions(+), 24 deletions(-) -- 2.25.1