Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp2713830imw; Sun, 17 Jul 2022 15:23:51 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vXCgjkSvsBguxSxLsn1rt70JMJxBI9wr77G48g8AMcK/lJ71Ef7fbBGZFIJCefjyejho6D X-Received: by 2002:a17:907:e94:b0:72b:700e:21d9 with SMTP id ho20-20020a1709070e9400b0072b700e21d9mr23407812ejc.665.1658096631206; Sun, 17 Jul 2022 15:23:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658096631; cv=none; d=google.com; s=arc-20160816; b=u6n6Rkfe5GREGLRWddYXRNuDXBXu3Bg61/M2x+8nhY64ZABysFbBMZPOWHr+mjO04F EMxU0ZsFumuSmP8C09dn6hDRVwX2OAxqJRZ6TFlbazsemQuLDPv1qKWfL+1DwwmFCWmT gdBSRWOqPnJ41g4q+xERgkM/ATjrLnp9n/5OH8BgJ/LSbmwI59WQwu/JiPJ+gHQ4hHeg n63OY9np6N3st/HbyBiKwcmB0gRv9/o/2LO8ElkC9iSjPjczG/3/zzRpZnrcVa4sUZVj vvMMXBl6VQ3o8nbeUkrz3qhGxBu69GTzaQDV22IhPISw6Hmd1xpN7FCbIJOVmYGBKAmc Jdpg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:to:from:date:dkim-signature; bh=RWNQE77fh9ZO8FyPScCRUXIEK6xi6nY3gZ/2KBXr1no=; b=X/swKHIJR/a+zIT7ir9nlNeZWVZbghFd0TG4Kf5gmiIkduIBowNrV4VNwC6FgWvOWH RxJf/7yl5D+ZGPFFLltDyjLMVKsqhm8VgFFv93KS8J1W4FzubjxUY6SYgWJAM6vA2tb1 w12MysaqzW/ufI54xehemIXjSVDvODSeipGci9Vr9VAZZ/m9hloV8VeCXextHwCsftlC RL0PyktTzC9rYruQiUbfg6mA+XHXopiDlcDxs7Ie2BEeZ1OZ/wMbTR4bYybgylctR66G Z86xvQ0t5Jk4MtdsuGg7RxsFl+9sFWN55FsJXcj5UjlC7F2Nvot2ACvAtwwMV6IZtlqK LtoQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=R9TG6huq; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id p22-20020a17090635d600b006fec3023067si11935447ejb.343.2022.07.17.15.23.26; Sun, 17 Jul 2022 15:23:51 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=R9TG6huq; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232508AbiGQWUy (ORCPT + 99 others); Sun, 17 Jul 2022 18:20:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43314 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232017AbiGQWUn (ORCPT ); Sun, 17 Jul 2022 18:20:43 -0400 Received: from mail-ed1-x52a.google.com (mail-ed1-x52a.google.com [IPv6:2a00:1450:4864:20::52a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5A99312754 for ; Sun, 17 Jul 2022 15:20:37 -0700 (PDT) Received: by mail-ed1-x52a.google.com with SMTP id x91so13101273ede.1 for ; Sun, 17 Jul 2022 15:20:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=date:from:to:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=RWNQE77fh9ZO8FyPScCRUXIEK6xi6nY3gZ/2KBXr1no=; b=R9TG6huq1rSfwYmKo7BqWKnUxusQWrr5J/h+2zhgjGWtpnuR/HZ7U5l6l0xBIIWwNd JKGhlJzZs3Dtv71V7bDZ0+nqERZmPsw9EcTxYblyLDIlMfBtvasP/HPTFbnSxgSnD0BP k+y/VU+USR0GncQgEBgAawkeoEWaHUJwnIHswFCXD+02hQal3575PNC2daldOGJ0yKBM xxFKsl4/tHbo8IHrq0pCJChumk0iIoMjh+sgAmFqZC++aXLtl1hozWbC/SWfPXTO6NDg N2vhGsZKu63mMOWc5X6vBcFqBnU0MT8MESIYbUEUGqKRdXgyBhJsejWkj9Q3VrXTF0Va 6qag== 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:references :mime-version:content-disposition:in-reply-to; bh=RWNQE77fh9ZO8FyPScCRUXIEK6xi6nY3gZ/2KBXr1no=; b=xoKhZb5/nZHG/aFflOM1UGRvfPq17+qnuBovGKi+3EOOqjA970iNe3Usd5L1pFZy1v MG58+CFvmsYH+v7dR2dsAUs/VRQsUVjGeGsxT3v6VSbhYtD8KFMwFntCBx1sObl4LsYN FoZWeYi4d2AESm1dx5SgMKShEzLY3AxZ1wGfqQyvmFiO3vMLSCmb2NrSbNl34jVKxzup DSA1ICmE+Qt3P8RsxUTn3UzFhpmEL4euMllA2Af5n6xaIkUZvHIImDcDcbTX2G4NTTT7 XP14dIKu4h1KIThf/fOYxYCXo/2lcV+A+8Jm9sj3u87raTWKYTYMPP6E1dD2j8wJeqLw QOcw== X-Gm-Message-State: AJIora/C1seohdUOfdtHbnphP2ume11vXsRxZnWB7DjhUq3l+J0MGkIE vo/Nx+wgEbuneuim48jGQBM= X-Received: by 2002:a05:6402:2812:b0:43a:9041:d5db with SMTP id h18-20020a056402281200b0043a9041d5dbmr33168956ede.208.1658096435979; Sun, 17 Jul 2022 15:20:35 -0700 (PDT) Received: from matrix-ESPRIMO-P710 (p54a07b82.dip0.t-ipconnect.de. [84.160.123.130]) by smtp.gmail.com with ESMTPSA id g1-20020a17090604c100b0072afb6d4d6fsm4883034eja.171.2022.07.17.15.20.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 17 Jul 2022 15:20:35 -0700 (PDT) Date: Mon, 18 Jul 2022 00:20:33 +0200 From: Philipp Hortmann To: Forest Bond , Greg Kroah-Hartman , linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org Subject: [PATCH 7/7] staging: vt6655: Replace MACvTransmitAC0 with function vt6655_mac_dma_ctl Message-ID: <1e475fbda07a69b7b3cf53fd18bd0390e87ebfe2.1658094708.git.philipp.g.hortmann@gmail.com> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org checkpatch.pl does not accept multiline macros. Signed-off-by: Philipp Hortmann --- drivers/staging/vt6655/device_main.c | 2 +- drivers/staging/vt6655/mac.h | 10 ---------- 2 files changed, 1 insertion(+), 11 deletions(-) diff --git a/drivers/staging/vt6655/device_main.c b/drivers/staging/vt6655/device_main.c index 898e06958203..b2f3174f80df 100644 --- a/drivers/staging/vt6655/device_main.c +++ b/drivers/staging/vt6655/device_main.c @@ -1231,7 +1231,7 @@ static int vnt_tx_packet(struct vnt_private *priv, struct sk_buff *skb) wmb(); /* second memory barrier */ if (head_td->td_info->flags & TD_FLAGS_NETIF_SKB) - MACvTransmitAC0(priv->port_offset); + vt6655_mac_dma_ctl(priv->port_offset, MAC_REG_AC0DMACTL); else vt6655_mac_dma_ctl(priv->port_offset, MAC_REG_TXDMACTL0); diff --git a/drivers/staging/vt6655/mac.h b/drivers/staging/vt6655/mac.h index 1e57663ff066..e2ef8c6ef7b7 100644 --- a/drivers/staging/vt6655/mac.h +++ b/drivers/staging/vt6655/mac.h @@ -537,16 +537,6 @@ /*--------------------- Export Macros ------------------------------*/ -#define MACvTransmitAC0(iobase) \ -do { \ - unsigned long reg_value; \ - reg_value = ioread32(iobase + MAC_REG_AC0DMACTL); \ - if (reg_value & DMACTL_RUN) \ - iowrite32(DMACTL_WAKE, iobase + MAC_REG_AC0DMACTL); \ - else \ - iowrite32(DMACTL_RUN, iobase + MAC_REG_AC0DMACTL); \ -} while (0) - #define MACvClearStckDS(iobase) \ do { \ unsigned char byOrgValue; \ -- 2.37.1