From patchwork Sun May 29 20:25:00 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yoshihiro Kaneko X-Patchwork-Id: 9139957 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 21A8C60221 for ; Sun, 29 May 2016 20:25:35 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0941F27CF9 for ; Sun, 29 May 2016 20:25:35 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id F10CC27BE4; Sun, 29 May 2016 20:25: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=-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 7D2E527BE4 for ; Sun, 29 May 2016 20:25:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752924AbcE2UZd (ORCPT ); Sun, 29 May 2016 16:25:33 -0400 Received: from mail-pf0-f196.google.com ([209.85.192.196]:35633 "EHLO mail-pf0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752858AbcE2UZc (ORCPT ); Sun, 29 May 2016 16:25:32 -0400 Received: by mail-pf0-f196.google.com with SMTP id f144so13004739pfa.2; Sun, 29 May 2016 13:25:32 -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=Ht/2nZLghVqg2nXqhOQa6LRnbw9QzM3L6Tu9zZ11Hvo=; b=R939DxzsfxcJaqITCxunrSvQotAwI0eZ/laAmS7qHLgMPljsBXkcoXLRm+eQbq9/Ph pL9d3jqlh2trcWQ//+NsTmKtjepYpIyoBOFKV6mxm2SOFYkUO3csguSv2vSc6LDglUfR MbaoOeYxuT1xrWdoc4MMvrwf0+8ZhVZYkXFF7STCK8uuCENpfr8b2v065GAbiEADeaFV Bm1apWTCnOKth378Eoju5Mk7p6dQA03p96VsIMr7QNy/aR/wElptbDs2mYF/ofdoOWg+ rPWrZtZdv9oGWA175Nt01fZ8fbNjEQK9oRnYP9IW7L9ZdwJK7EQI5zyZmeZp5XusUOYF DDVw== 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=Ht/2nZLghVqg2nXqhOQa6LRnbw9QzM3L6Tu9zZ11Hvo=; b=HORMtg/+KQbwnbZTYd4tpmt5Gf9D+zslFpRLlqfPxyypWoO9MXVxqJ0xWSh84gYGsx vKSisZx3W3yWoogKUY+rIU2EW18AsD3oQw4Q/8DqURGW4nO4IawikYmlWinvwLWkxHBL mSKjMW0fwjUTYSTYNZ29COhKM6DYxqpPUPQi6iNUOT41V5bS8eZAr4toIcMMc4SROe4n cBhvLG9m92eKXVv6xEuwHWzU8rSyZjHpUVANR9waC0ryzn+00+weAAl6eZXV3YS+PpgY swlfbXhOmi/CGlmyyb55McPmVQrlXaE388nAbGPKeeEcvwBH2kqWWqNDNsjnO2nJry+p PVnw== X-Gm-Message-State: ALyK8tLNBeUyGCHstd5qjMKdzANfjNR8OIw23p8diGOoVco4WV9ViDeXFjT110Rc7eM38g== X-Received: by 10.98.63.216 with SMTP id z85mr39786742pfj.53.1464553531687; Sun, 29 May 2016 13:25:31 -0700 (PDT) Received: from localhost.localdomain ([118.152.108.246]) by smtp.gmail.com with ESMTPSA id 17sm977813pfp.72.2016.05.29.13.25.29 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 29 May 2016 13:25:31 -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] ravb: Add ESF in RCR for enabling separation filter Date: Mon, 30 May 2016 05:25:00 +0900 Message-Id: <1464553500-19043-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 This patch adds enabling separation filter(ESF) is setting value of B'11. This setting filter for separating AVB stream frames from non-AVB stream frames is enabled. Non-matching frames from a stream are processed in queue 0(best effort). H/W manual recommends B'11 or B'10. When B'10 is setting, Non-mating frames are discarded. 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. 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);