From patchwork Mon Jul 8 07:25:41 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ilias Apalodimas X-Patchwork-Id: 168604 Delivered-To: patch@linaro.org Received: by 2002:a92:4782:0:0:0:0:0 with SMTP id e2csp6779009ilk; Mon, 8 Jul 2019 00:25:48 -0700 (PDT) X-Google-Smtp-Source: APXvYqwyArvxe4xFIPKd2K5eIauadQQDCKjhuG30L7xRO+V5Xzs7+zI+Brnt65OEblKOOopmL4G0 X-Received: by 2002:a63:2a0f:: with SMTP id q15mr22028658pgq.163.1562570748368; Mon, 08 Jul 2019 00:25:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562570748; cv=none; d=google.com; s=arc-20160816; b=wGPePgxhgjgyl8aBPB0nxJ9BzXw17tbUXJRMxnF2Uusoc9Thd7H55uaw+bSK6IJ2g0 2XhJtTuRMsBgfHCe7YCvvJaNe8fegSk1H/fRzS+nk1sNbbwJJWIFJ5GVjPGSE769gVUT omfmxoaFr5JHHDBI8cjD8B1jgK0BMpzkrjyLEDZiPjLF9b2y3TzWC2FM//OftaWGvUZw KX5V1nO548in3Oxcqjk2G/cRf4Q8NOb1aZzLBuTQ1Y8HFXDRhhxAl6z9O9ei/R8FmfhI vFNUw5YcvuYNR6wsZnBkyjiC+jlk07z/bPB9wFqYpChwkX1zeoNILtUbBnSvTTvy/Nzq zaEw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature; bh=lCaSEeMFnhbVIobyvJo3DfxumLlxHpD765VDSsYl93w=; b=rwu3SC77ON5hrw4JSMM8k24wE+25uNQjOn8pBkauXyXOnSRtI2e+A1Eo6o7QXhSS7R 29x2aDL+u/qNZI03BHgNcoyvcNvfGwGzCncIt0LXj67TQRQqyu6h3afLNA7IeDhcH6T3 xdOV59zc9jGsn0K6m1ThszZN0AHLHKtWxptqZXY3MT35SnHjfnbXIHMxGZ2Fcw1kBxun i0AqqY2jQB3GL06jdnvuFrCTZxOaGRmmm217NGtlXUgiNzDEt2BB4w0dAu+ztWvGSnmA 9mU89e2zavA6crUiGnM1PNx2WRYMKa0uSVwa0kDLaZebYjBj35b82jcYG76X3dCx9xG7 3Olw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=bMUerKkP; spf=pass (google.com: best guess record for domain of netdev-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=netdev-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r3si16348908pjd.105.2019.07.08.00.25.48; Mon, 08 Jul 2019 00:25:48 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of netdev-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=bMUerKkP; spf=pass (google.com: best guess record for domain of netdev-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=netdev-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729426AbfGHHZr (ORCPT + 9 others); Mon, 8 Jul 2019 03:25:47 -0400 Received: from mail-wr1-f66.google.com ([209.85.221.66]:46652 "EHLO mail-wr1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725903AbfGHHZr (ORCPT ); Mon, 8 Jul 2019 03:25:47 -0400 Received: by mail-wr1-f66.google.com with SMTP id z1so11153613wru.13 for ; Mon, 08 Jul 2019 00:25:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=lCaSEeMFnhbVIobyvJo3DfxumLlxHpD765VDSsYl93w=; b=bMUerKkPidvIsaTdoGKiCZ6nso8JTqIny1FjGjNu0sB1MO3e5f+bjJhNdFjN4d++Hu Czd2uessXBtSelE0h1r76htvEn7kUx4IqZQSld5npEeem+IVy0CpSLlNVPyE52sSU7D9 7DZstKMHTppDjUzwIJn7W/vjWYjWW4gQrat/zgJe3PhQ+fDj0a5xXJ1t5YfU5f4BloDM qKgJ/OGRlacVbkU5jFgeTqxJrvBNFSzM02rbmkX5+blMSfu10KCkHCzVLAGaJA0PyOUd +7HN60/fn7L6XXTIUhq3nBO/jZctTgdsiYGphVQ+Uz6PcG8yGFxcJ8/EtzIRMDu44UlF xnvg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=lCaSEeMFnhbVIobyvJo3DfxumLlxHpD765VDSsYl93w=; b=BKPOa/efVzxAzMvr78X9d5SYw4/9O+n+s8yqw2iZdSVrQfnjbJAoz700p/JCsee8lB LMRa7VmHqWVnPcybcEEHFIVd8GeJ/TXXIt5hVEMcfaJhwuCxbUpofkZqdD7AB7etiUqA 7U+gqHMPabg17ounTl47iklUkXzSXrnP/exZQswHyrsdW04sXV5qgHNqmhRZIQ3V/V13 UzovnIDEJqx1E3rV+72UEHWfFAWG3Rd0MndRBVlg3Xg+I2X/OGgbB/jNYoEU729xvylY nyErPAtYjotxdyReZbJLyeVb3xA2xcGs8tM82zh5q0Xw9iOz8cWbDo8lRc+aAkckTz8+ Lljg== X-Gm-Message-State: APjAAAXI6CXS521MsLPqBlLt3m+GbvTcRDyN2Mlzyi+LwhGSKJ+/HACR 480xsfWQhU1QngguoZSmyuPjiL5Z1Vo= X-Received: by 2002:adf:82a8:: with SMTP id 37mr17506848wrc.332.1562570744621; Mon, 08 Jul 2019 00:25:44 -0700 (PDT) Received: from apalos.lan (athedsl-428434.home.otenet.gr. [79.131.225.144]) by smtp.gmail.com with ESMTPSA id h11sm14288461wro.73.2019.07.08.00.25.43 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 08 Jul 2019 00:25:43 -0700 (PDT) From: Ilias Apalodimas To: netdev@vger.kernel.org, jaswinder.singh@linaro.org, davem@davemloft.net Cc: Ilias Apalodimas Subject: [PATCH] net: netsec: Sync dma for device on buffer allocation Date: Mon, 8 Jul 2019 10:25:41 +0300 Message-Id: <1562570741-25108-1-git-send-email-ilias.apalodimas@linaro.org> X-Mailer: git-send-email 2.7.4 Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org cd1973a9215a ("net: netsec: Sync dma for device on buffer allocation") was merged on it's v1 instead of the v3. Merge the proper patch version Signed-off-by: Ilias Apalodimas --- drivers/net/ethernet/socionext/netsec.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) -- 2.20.1 diff --git a/drivers/net/ethernet/socionext/netsec.c b/drivers/net/ethernet/socionext/netsec.c index f6e261c6a059..460777449cd9 100644 --- a/drivers/net/ethernet/socionext/netsec.c +++ b/drivers/net/ethernet/socionext/netsec.c @@ -743,9 +743,7 @@ static void *netsec_alloc_rx_data(struct netsec_priv *priv, */ *desc_len = PAGE_SIZE - NETSEC_RX_BUF_NON_DATA; dma_dir = page_pool_get_dma_dir(dring->page_pool); - dma_sync_single_for_device(priv->dev, - *dma_handle - NETSEC_RXBUF_HEADROOM, - PAGE_SIZE, dma_dir); + dma_sync_single_for_device(priv->dev, *dma_handle, *desc_len, dma_dir); return page_address(page); }