From patchwork Tue Apr 29 04:15:27 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Byungho An X-Patchwork-Id: 29282 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-yh0-f70.google.com (mail-yh0-f70.google.com [209.85.213.70]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 9F69820553 for ; Tue, 29 Apr 2014 04:15:32 +0000 (UTC) Received: by mail-yh0-f70.google.com with SMTP id 29sf31510525yhl.5 for ; Mon, 28 Apr 2014 21:15:32 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:from:to:cc:subject:date:message-id :mime-version:thread-index:dlp-filter:sender:precedence:list-id :x-original-sender:x-original-authentication-results:mailing-list :list-post:list-help:list-archive:list-unsubscribe:content-type :content-transfer-encoding:content-language; bh=7Op4aJqXGbYMLw3PveeRXONcHS5MhLTnm5yIKDByqVY=; b=jGgGjq9mptka63SAdKEKS01EixqAfBaLhCJLBqiMVzSo/oR7K+/69uRG3D0le2jSuM Yym6GbAHwanv1OYShdUDI4BOG9dmUANpo7uu6ltc29FQiIglHEI+g5ioAwAXFW/XvwWX T8vAgWAk10z1wGnJEDczxpcn6qPcaMohQ0fO8Znv9EA3xNYSOemNr1KUHP2oynnSlEuC w3GgoW4LXcqBI2cjVpRXhin38y9xBneKs9Q+pREh6fu+I1/Rj+PLflO6QTIUI6YlvkKq T6gl6WwZSOxjzQxwnO98tkTCzezyaifOqAVBFxhpDOmjiYrJHGv0IaktZ3NuRq9+vk/u +Efw== X-Gm-Message-State: ALoCoQl5mDRf77uksGuctvrgDMuv/YSIPpnxMnS1sHFh57j4FPHX1M0zfnWVH8nr7YRDtEu43z4U X-Received: by 10.58.127.66 with SMTP id ne2mr14236778veb.27.1398744932093; Mon, 28 Apr 2014 21:15:32 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.41.212 with SMTP id z78ls3003796qgz.93.gmail; Mon, 28 Apr 2014 21:15:32 -0700 (PDT) X-Received: by 10.220.59.65 with SMTP id k1mr27174302vch.22.1398744931955; Mon, 28 Apr 2014 21:15:31 -0700 (PDT) Received: from mail-ve0-f180.google.com (mail-ve0-f180.google.com [209.85.128.180]) by mx.google.com with ESMTPS id b7si4235810vev.94.2014.04.28.21.15.31 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 28 Apr 2014 21:15:31 -0700 (PDT) Received-SPF: none (google.com: patch+caf_=patchwork-forward=linaro.org@linaro.org does not designate permitted sender hosts) client-ip=209.85.128.180; Received: by mail-ve0-f180.google.com with SMTP id jz11so9316713veb.11 for ; Mon, 28 Apr 2014 21:15:31 -0700 (PDT) X-Received: by 10.58.122.164 with SMTP id lt4mr27346883veb.2.1398744931869; Mon, 28 Apr 2014 21:15:31 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.220.221.72 with SMTP id ib8csp166344vcb; Mon, 28 Apr 2014 21:15:31 -0700 (PDT) X-Received: by 10.68.202.8 with SMTP id ke8mr33554127pbc.86.1398744931131; Mon, 28 Apr 2014 21:15:31 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id gy7si11760125pac.362.2014.04.28.21.15.30; Mon, 28 Apr 2014 21:15:30 -0700 (PDT) Received-SPF: none (google.com: linux-samsung-soc-owner@vger.kernel.org does not designate permitted sender hosts) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754076AbaD2EP3 (ORCPT + 9 others); Tue, 29 Apr 2014 00:15:29 -0400 Received: from mailout2.samsung.com ([203.254.224.25]:54820 "EHLO mailout2.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752777AbaD2EP3 (ORCPT ); Tue, 29 Apr 2014 00:15:29 -0400 Received: from epcpsbgr3.samsung.com (u143.gpu120.samsung.co.kr [203.254.230.143]) by mailout2.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0N4R00EWMYHR1FB0@mailout2.samsung.com>; Tue, 29 Apr 2014 13:15:27 +0900 (KST) Received: from epcpsbgm1.samsung.com ( [203.254.230.50]) by epcpsbgr3.samsung.com (EPCPMTA) with SMTP id 0F.0E.11120.F572F535; Tue, 29 Apr 2014 13:15:27 +0900 (KST) X-AuditID: cbfee68f-b7eff6d000002b70-33-535f275fc08a Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id 04.E8.27725.F572F535; Tue, 29 Apr 2014 13:15:27 +0900 (KST) Received: from DObh74an01 ([12.36.166.149]) by mmp2.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0N4R00464YHRF090@mmp2.samsung.com>; Tue, 29 Apr 2014 13:15:27 +0900 (KST) From: Byungho An To: netdev@vger.kernel.org, linux-samsung-soc@vger.kernel.org Cc: davem@davemloft.net, ks.giri@samsung.com, vipul.pandya@samsung.com Subject: [PATCH] net: sxgbe: Added set function for interrupt on complete Date: Tue, 29 Apr 2014 13:15:27 +0900 Message-id: <001d01cf6361$a675f6c0$f361e440$%an@samsung.com> MIME-version: 1.0 X-Mailer: Microsoft Office Outlook 12.0 Thread-index: Ac9jYaZe5XQU4wR+Q9yebuidaUPPcg== X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrJIsWRmVeSWpSXmKPExsVy+t8zI9149fhgg91tOhZzzrewWPQuuMpm Mf/oDiaLGef3MVkcWyBmsW3BBWYHNo8tK28yefRtWcXo8XmTXABzFJdNSmpOZllqkb5dAlfG tXMb2Qt+CVdMO3CItYGxX7CLkZNDQsBEYsrrN8wQtpjEhX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pcRGLfi3eMExgFZiGZNAvJpFlIJs1C0rKAkWUVo2hq QXJBcVJ6rqFecWJucWleul5yfu4mRnAsP5PawbiyweIQowAHoxIPr0FUXLAQa2JZcWXuIUYJ DmYlEV7bVqAQb0piZVVqUX58UWlOavEhxmSgRycyS4km5wPTTF5JvKGxiZmRpZGZhZGJuTlp wkrivAdarQOFBNITS1KzU1MLUotgtjBxcEo1MNYfFgt7yH8rwyxAgLVXbs3Z5YcOu5y6V2lV EaVnqvgg6+s9A43QP7IrEw8mWp76vqz5WMBpt2erkmWTAo64vfn/9ZLH5m6eLcrbz27wCvq2 vP3t+ewc0WfPZn68Y7Vfd6WdR8uq3U563ca1/r07Nk79mJAb6Ne9uiC36H3Hnf9/88oaZ/dl 31NiKc5INNRiLipOBABsymcfKQMAAA== DLP-Filter: Pass X-MTR: 20000000000000000@CPGS X-CFilter-Loop: Reflected Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: bh74.an@samsung.com X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: patch+caf_=patchwork-forward=linaro.org@linaro.org does not designate permitted sender hosts) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7bit Content-language: ko This patch adds set_rx_int_on_com function for interrupt when dma is completed. Signed-off-by: Byungho An --- drivers/net/ethernet/samsung/sxgbe/sxgbe_desc.c | 7 +++++++ drivers/net/ethernet/samsung/sxgbe/sxgbe_desc.h | 3 +++ drivers/net/ethernet/samsung/sxgbe/sxgbe_main.c | 1 + 3 files changed, 11 insertions(+) diff --git a/drivers/net/ethernet/samsung/sxgbe/sxgbe_desc.c b/drivers/net/ethernet/samsung/sxgbe/sxgbe_desc.c index d71691b..2686bb5 100644 --- a/drivers/net/ethernet/samsung/sxgbe/sxgbe_desc.c +++ b/drivers/net/ethernet/samsung/sxgbe/sxgbe_desc.c @@ -233,6 +233,12 @@ static void sxgbe_set_rx_owner(struct sxgbe_rx_norm_desc *p) p->rdes23.rx_rd_des23.own_bit = 1; } +/* Set Interrupt on completion bit */ +static void sxgbe_set_rx_int_on_com(struct sxgbe_rx_norm_desc *p) +{ + p->rdes23.rx_rd_des23.int_on_com = 1; +} + /* Get the receive frame size */ static int sxgbe_get_rx_frame_len(struct sxgbe_rx_norm_desc *p) { @@ -498,6 +504,7 @@ static const struct sxgbe_desc_ops desc_ops = { .init_rx_desc = sxgbe_init_rx_desc, .get_rx_owner = sxgbe_get_rx_owner, .set_rx_owner = sxgbe_set_rx_owner, + .set_rx_int_on_com = sxgbe_set_rx_int_on_com, .get_rx_frame_len = sxgbe_get_rx_frame_len, .get_rx_fd_status = sxgbe_get_rx_fd_status, .get_rx_ld_status = sxgbe_get_rx_ld_status, diff --git a/drivers/net/ethernet/samsung/sxgbe/sxgbe_desc.h b/drivers/net/ethernet/samsung/sxgbe/sxgbe_desc.h index 0226300..1860932 100644 --- a/drivers/net/ethernet/samsung/sxgbe/sxgbe_desc.h +++ b/drivers/net/ethernet/samsung/sxgbe/sxgbe_desc.h @@ -258,6 +258,9 @@ struct sxgbe_desc_ops { /* Set own bit */ void (*set_rx_owner)(struct sxgbe_rx_norm_desc *p); + /* Set Interrupt on completion bit */ + void (*set_rx_int_on_com)(struct sxgbe_rx_norm_desc *p); + /* Get the receive frame size */ int (*get_rx_frame_len)(struct sxgbe_rx_norm_desc *p); diff --git a/drivers/net/ethernet/samsung/sxgbe/sxgbe_main.c b/drivers/net/ethernet/samsung/sxgbe/sxgbe_main.c index fd5c428..82a9a98 100644 --- a/drivers/net/ethernet/samsung/sxgbe/sxgbe_main.c +++ b/drivers/net/ethernet/samsung/sxgbe/sxgbe_main.c @@ -1456,6 +1456,7 @@ static void sxgbe_rx_refill(struct sxgbe_priv_data *priv) /* Added memory barrier for RX descriptor modification */ wmb(); priv->hw->desc->set_rx_owner(p); + priv->hw->desc->set_rx_int_on_com(p); /* Added memory barrier for RX descriptor modification */ wmb(); }