From patchwork Tue May 31 18:01:28 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yoshihiro Kaneko X-Patchwork-Id: 9145393 X-Patchwork-Delegate: horms@verge.net.au 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 8987960777 for ; Tue, 31 May 2016 18:02:01 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 804C4272D8 for ; Tue, 31 May 2016 18:02:01 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 74DA4280B2; Tue, 31 May 2016 18:02:01 +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=-7.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, RCVD_IN_DNSWL_HI 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 69F9C272D8 for ; Tue, 31 May 2016 18:02:00 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755665AbcEaSBz (ORCPT ); Tue, 31 May 2016 14:01:55 -0400 Received: from mail-pa0-f66.google.com ([209.85.220.66]:35068 "EHLO mail-pa0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755659AbcEaSBx (ORCPT ); Tue, 31 May 2016 14:01:53 -0400 Received: by mail-pa0-f66.google.com with SMTP id gp3so18806338pac.2; Tue, 31 May 2016 11:01:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=VuDxFHvRq0FzcKTSJ6L1QrqzGZ8D22S4Tuq98Xn96Eo=; b=d2CbgvUeYeJQJvzgoaX2K3F7XJKMmCjgkb0raK/ChscJ2S6IXtq19nVqUljWWlIHSg IdzIS3Q5peVIjKYA6EYTsxJbJNV27lk0JXTcuu4lrjWffbawbAAWJPMhIZpg+ZxKMVF2 xCwyBInW+OWd6Re1oXMikXpBG2SX4olRVpFW7eS4Lji5iWMmAcb5lYiNBZwr3xQE8CjB OoxSMIU2n/31N6SG5/lLP8T6nCMbGMv12+QAhzKbgrF2CWcTzy7+rMqGwtU8RtWaEyZO cZS/tzXc9NXJYIWeXTuMtslD2EzmZY40L63sFF2cGF5vDgg/VgX/3Zfl0iT3rT5RIWn2 WLqQ== 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=VuDxFHvRq0FzcKTSJ6L1QrqzGZ8D22S4Tuq98Xn96Eo=; b=ak3UA1fNdnjxFWtrZ3TXnSt/74n+7HYfQw7p3uGUmGjseqS7spWgS6UL67b73OK2Lx dJXREcfpVUuYYz/bpp9RfoTyEotnZWSSTmbk6avO7zIs6uywxTkwVmd8srYNKpNiF7qE jm0nY1vr7FWvYZ0TFJ0H40HW2ZquOel13jLrGVQGOhyjQinujSdFBC4qerPattVLILUc sdKxKMuPMqd9zDaFYqmvQNG1qPIjfliktqxtjN6/rFwwLiVmqoSpFNC+DRgeS7tJ4zpw TCYBxebMv1NkchdVOBdCToxYg2b+No9lBzR5qkmxIA4PXx/+0ytyqfOSUNHeJ7KtFWkf bVOg== X-Gm-Message-State: ALyK8tK4uiCYmz/4T3qPR1M0R0OBJxvRdGhv+UpjkIef3MsNFqTpHHVBMIXjawU0jjP9Ww== X-Received: by 10.66.127.47 with SMTP id nd15mr57134447pab.84.1464717712412; Tue, 31 May 2016 11:01:52 -0700 (PDT) Received: from localhost.localdomain (KD118152108246.ppp-bb.dion.ne.jp. [118.152.108.246]) by smtp.gmail.com with ESMTPSA id y2sm41915047pfi.39.2016.05.31.11.01.50 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 31 May 2016 11:01:51 -0700 (PDT) From: Yoshihiro Kaneko To: netdev@vger.kernel.org Cc: "David S. Miller" , Sergei Shtylyov , Simon Horman , Magnus Damm , linux-renesas-soc@vger.kernel.org Subject: [PATCH net-next v2] ravb: Add ESF in RCR for enabling separation filter Date: Wed, 1 Jun 2016 03:01:28 +0900 Message-Id: <1464717688-28146-1-git-send-email-ykaneko0929@gmail.com> X-Mailer: git-send-email 1.9.1 Sender: linux-renesas-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-renesas-soc@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Masaru Nagai The H/W manual recommends B'10 or B'11 in a value of the separation filtering select bits in the receive configuration register (RCR.ESF). When B'10 is set, frames from non-matching streams are discarded. When B'11 is set, frames from non-matching streams are processed in reception queue 0 (best effort). This patch sets B'11 in ESF. [ykaneko0929@gmail.com: revised this commit message] Signed-off-by: Masaru Nagai Signed-off-by: Kazuya Mizuguchi Signed-off-by: Yoshihiro Kaneko Acked-by: Sergei Shtylyov --- This patch is based on the master branch of David Miller's next networking tree. v2 [Yoshihiro Kaneko] - Revised the commit message - Added Acked-by drivers/net/ethernet/renesas/ravb_main.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/net/ethernet/renesas/ravb_main.c b/drivers/net/ethernet/renesas/ravb_main.c index 867caf6..1ceadbf 100644 --- a/drivers/net/ethernet/renesas/ravb_main.c +++ b/drivers/net/ethernet/renesas/ravb_main.c @@ -402,7 +402,8 @@ static int ravb_dmac_init(struct net_device *ndev) #endif /* Set AVB RX */ - ravb_write(ndev, RCR_EFFS | RCR_ENCF | RCR_ETS0 | 0x18000000, RCR); + ravb_write(ndev, + RCR_EFFS | RCR_ENCF | RCR_ETS0 | RCR_ESF | 0x18000000, RCR); /* Set FIFO size */ ravb_write(ndev, TGC_TQP_AVBMODE1 | 0x00222200, TGC);