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: 9459489 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id D737F60585 for ; Sat, 3 Dec 2016 02:05:34 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id BEFD228549 for ; Sat, 3 Dec 2016 02:05:34 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B04B32856E; Sat, 3 Dec 2016 02:05:34 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.3 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5DCB528549 for ; Sat, 3 Dec 2016 02:05:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932617AbcLCCFc (ORCPT ); Fri, 2 Dec 2016 21:05:32 -0500 Received: from mail-lf0-f52.google.com ([209.85.215.52]:34362 "EHLO mail-lf0-f52.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754206AbcLCCFc (ORCPT ); Fri, 2 Dec 2016 21:05:32 -0500 Received: by mail-lf0-f52.google.com with SMTP id o141so207162888lff.1 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=IOaFWjNTuY398Zlnuh+LqocYpntfaCXwKcedT3qRT2E4HyrUqnun99pyezjo4U4laj JB8XakuEY5NQ5tZIeFl0jIWtQIRK5cE1VUWHB3R+a1G0sS7ULDjOR+tbz/ngbSuSKI8A hdM5749HsLdj/XPqDibqgzWD9mJPUzOjr39nIOL2jw3dM26eoIz/U37Vs29TTjwiUoxN EB8wEIv2znNfrWg4kh3fIjPtnVkH6GIuswTI52WcxtWbynDAE+iIlR/UgRH+A82rn1xp p7mIk7XDgRlx595m/x0i6GilrW9NEwmSm32+jBKiVhnJebNZMPjrBrY6+RO33+4pBF8b wJwA== X-Gm-Message-State: AKaTC03lZfhGOnQf8uY5NdfWZyhK2bT5mYmAgxy0W4FtqkrYFXXpKSXyFWToNgHOu9ggHGXB 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-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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(-) 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++;