From patchwork Mon Jun 9 10:39:24 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yoshihiro Shimoda X-Patchwork-Id: 4321331 Return-Path: X-Original-To: patchwork-linux-sh@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id BE9C3BEEAA for ; Mon, 9 Jun 2014 10:39:33 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id E26792024D for ; Mon, 9 Jun 2014 10:39:32 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 1FA9920225 for ; Mon, 9 Jun 2014 10:39:32 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754654AbaFIKjb (ORCPT ); Mon, 9 Jun 2014 06:39:31 -0400 Received: from relmlor3.renesas.com ([210.160.252.173]:56954 "EHLO relmlie2.idc.renesas.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1754042AbaFIKja (ORCPT ); Mon, 9 Jun 2014 06:39:30 -0400 Received: from unknown (HELO relmlir4.idc.renesas.com) ([10.200.68.154]) by relmlie2.idc.renesas.com with ESMTP; 09 Jun 2014 19:39:29 +0900 Received: from relmlac3.idc.renesas.com (relmlac3.idc.renesas.com [10.200.69.23]) by relmlir4.idc.renesas.com (Postfix) with ESMTP id 9A5B741CCF; Mon, 9 Jun 2014 19:39:29 +0900 (JST) Received: by relmlac3.idc.renesas.com (Postfix, from userid 0) id 8790A180A1; Mon, 9 Jun 2014 19:39:29 +0900 (JST) Received: from relmlac3.idc.renesas.com (localhost [127.0.0.1]) by relmlac3.idc.renesas.com (Postfix) with ESMTP id 83205180A0; Mon, 9 Jun 2014 19:39:29 +0900 (JST) Received: from relmlii2.idc.renesas.com [10.200.68.66] by relmlac3.idc.renesas.com with ESMTP id VBG26756; Mon, 9 Jun 2014 19:39:29 +0900 X-IronPort-AV: E=Sophos;i="4.98,1001,1392130800"; d="scan'208";a="162706000" Received: from mail-sg1lp0090.outbound.protection.outlook.com (HELO APAC01-SG1-obe.outbound.protection.outlook.com) ([207.46.51.90]) by relmlii2.idc.renesas.com with ESMTP/TLS/AES128-SHA; 09 Jun 2014 19:39:29 +0900 Received: from [10.161.20.55] (211.11.155.147) by HKNPR06MB321.apcprd06.prod.outlook.com (10.141.38.15) with Microsoft SMTP Server (TLS) id 15.0.959.24; Mon, 9 Jun 2014 10:39:27 +0000 Message-ID: <53958EDC.1070307@renesas.com> Date: Mon, 9 Jun 2014 19:39:24 +0900 From: Yoshihiro Shimoda User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:24.0) Gecko/20100101 Thunderbird/24.5.0 MIME-Version: 1.0 To: "netdev@vger.kernel.org" CC: SH-Linux , Sergei Shtylyov Subject: [PATCH 2/2] net: sh_eth: Fix timing of RACT setting in sh_eth_rx() X-Originating-IP: [211.11.155.147] X-ClientProxiedBy: HKXPR04CA005.apcprd04.prod.outlook.com (10.242.96.35) To HKNPR06MB321.apcprd06.prod.outlook.com (10.141.38.15) X-Microsoft-Antispam: BCL:0;PCL:0;RULEID: X-Forefront-PRVS: 02379661A3 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(6009001)(6049001)(428001)(199002)(189002)(81542001)(66066001)(4396001)(33656002)(42186004)(46102001)(87976001)(50466002)(102836001)(76482001)(81342001)(80316001)(21056001)(47776003)(77982001)(20776003)(31966008)(36756003)(92726001)(92566001)(74502001)(99396002)(99136001)(80022001)(64706001)(50986999)(65816999)(83506001)(54356999)(79102001)(86362001)(74662001)(59896001)(575784001)(87266999)(23756003)(83322001)(101416001)(83072002)(85852003)(19580395003)(19580405001); DIR:OUT; SFP:; SCL:1; SRVR:HKNPR06MB321; H:[10.161.20.55]; FPR:; MLV:sfv; PTR:InfoNoRecords; A:1; MX:1; LANG:en; Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=yoshihiro.shimoda.uh@renesas.com; X-OriginatorOrg: renesas.com Sender: linux-sh-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-sh@vger.kernel.org X-Spam-Status: No, score=-7.5 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP This patch fixes an issue that we cannot use nfs rootfs correctly on r8a7790 when the command below runs on a host PC. $ sudo ping -f -l 8 $BOARD_IP_ADDR Since the driver sets the RACT to 1 in the first while loop of sh_eth_rx(), the controller accepts a next frame into the next RX descriptor during the while loop. But, in the first while loop doesn't allocate a next skb. So, this patch removes the RACT setting in the first while loop of sh_eth_rx(). Signed-off-by: Yoshihiro Shimoda --- drivers/net/ethernet/renesas/sh_eth.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/net/ethernet/renesas/sh_eth.c b/drivers/net/ethernet/renesas/sh_eth.c index ad0b5bd..2e1835f 100644 --- a/drivers/net/ethernet/renesas/sh_eth.c +++ b/drivers/net/ethernet/renesas/sh_eth.c @@ -1460,7 +1460,6 @@ static int sh_eth_rx(struct net_device *ndev, u32 intr_status, int *quota) ndev->stats.rx_packets++; ndev->stats.rx_bytes += pkt_len; } - rxdesc->status |= cpu_to_edmac(mdp, RD_RACT); entry = (++mdp->cur_rx) % mdp->num_rx_ring; rxdesc = &mdp->rx_ring[entry]; }