From patchwork Sat Dec 3 02:05:15 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ivan Khoronzhuk X-Patchwork-Id: 86388 Delivered-To: patch@linaro.org Received: by 10.140.20.101 with SMTP id 92csp529848qgi; Fri, 2 Dec 2016 18:05:39 -0800 (PST) X-Received: by 10.99.127.72 with SMTP id p8mr83861553pgn.183.1480730739122; Fri, 02 Dec 2016 18:05:39 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 123si7112125pgh.10.2016.12.02.18.05.38; Fri, 02 Dec 2016 18:05:39 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-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; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932933AbcLCCFd (ORCPT + 25 others); Fri, 2 Dec 2016 21:05:33 -0500 Received: from mail-lf0-f52.google.com ([209.85.215.52]:36601 "EHLO mail-lf0-f52.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754166AbcLCCFc (ORCPT ); Fri, 2 Dec 2016 21:05:32 -0500 Received: by mail-lf0-f52.google.com with SMTP id t196so207719622lff.3 for ; Fri, 02 Dec 2016 18:05:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=WTfmlJw5YkQoohGTq4n+9KttmX4TrWSFjQBUFq7hnVI=; b=CLgteXev5mxmTyRYV5olCoIb7LyRXv6oIoRePPKe1mutU+QLd34uLhUswUU7XV/ohh 2HvdBKOt3phRtCT79gmD9FqDV6Aj1cek8H6igs+bfoIXUzDZ3djVJ6uGE4yyGyCc5TPI 0/Q7+ViUEkzi7zly8HDQN8H1mDA39y1Iijy3Y= 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; bh=WTfmlJw5YkQoohGTq4n+9KttmX4TrWSFjQBUFq7hnVI=; b=IoONLHWxzg4h49jgKxDd/inuhLoQDpi+IosUPel5j9kP0GLugHZcuCdj+yANiRZjCC jl6oc7nArs3MXJdQbnKBQ+l5CLCVrJn5HHJoMnrhgiTEGYEORlviq4FObRPqcZ3BEROj AdS3KpZkWqxih2LcY8hxaCioEHBLNre9XoA13X7j6HOSFNEiN2qZqP3LplFxc8oQVnTA rlpAeZ8fXmaPMMvtXAV+lpILNEdo4wemCdbNaiPq5UG1mOB/Nf0UQ+njvFypWIoTjxeZ g9WUJyhwGt9N5G9q29WOvPAWRuqUTYlVeShx6uJ3JIzUN1GZznb4LC+OdxrkVxQhnJhd Xenw== X-Gm-Message-State: AKaTC01n+nhjWuG+PRAfgG1Wm3VGIwxKSvxeZBWcoOYgyFM/VtWZBBdmluEaF9PTLpfeTY2B X-Received: by 10.46.74.26 with SMTP id x26mr17830944lja.51.1480730724754; Fri, 02 Dec 2016 18:05:24 -0800 (PST) Received: from localhost.localdomain (183-224-132-95.pool.ukrtel.net. [95.132.224.183]) by smtp.gmail.com with ESMTPSA id u12sm1147213lja.4.2016.12.02.18.05.23 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 02 Dec 2016 18:05:23 -0800 (PST) From: Ivan Khoronzhuk To: mugunthanvnm@ti.com, grygorii.strashko@ti.com Cc: linux-omap@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Ivan Khoronzhuk Subject: [PATCH] net: ethernet: ti: cpdma: use desc_read in chan_process instead of raw read Date: Sat, 3 Dec 2016 04:05:15 +0200 Message-Id: <1480730715-16000-1-git-send-email-ivan.khoronzhuk@linaro.org> X-Mailer: git-send-email 2.7.4 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org There is desc_read() macros to read desc fields, so no need to use __raw_readl(); Signed-off-by: Ivan Khoronzhuk --- Based on net-next/master drivers/net/ethernet/ti/davinci_cpdma.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.7.4 diff --git a/drivers/net/ethernet/ti/davinci_cpdma.c b/drivers/net/ethernet/ti/davinci_cpdma.c index c776e45..d96dca5 100644 --- a/drivers/net/ethernet/ti/davinci_cpdma.c +++ b/drivers/net/ethernet/ti/davinci_cpdma.c @@ -1132,7 +1132,7 @@ static int __cpdma_chan_process(struct cpdma_chan *chan) } desc_dma = desc_phys(pool, desc); - status = __raw_readl(&desc->hw_mode); + status = desc_read(desc, hw_mode); outlen = status & 0x7ff; if (status & CPDMA_DESC_OWNER) { chan->stats.busy_dequeue++;