SUPERH platform development
 help / color / mirror / Atom feed
From: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
To: linux-sh@vger.kernel.org
Subject: Re: [PATCH] ARM: mach-shmobile: armadillo800eva: Fix RX packets errors on sh_eth
Date: Fri, 04 Oct 2013 19:39:55 +0000	[thread overview]
Message-ID: <524F279A.4040307@cogentembedded.com> (raw)
In-Reply-To: <1340189605-22074-1-git-send-email-laurent.pinchart@ideasonboard.com>

Hello.

On 04-10-2013 7:39, Nguyen Hong Ky wrote:

    The patch is wrongly named (since it's the network driver patch, not ARM 
patch) and wrongly addressed: you should have sent it to 
netdev@vger.kernel.org where David Miller could apply it.

> This patch will fix RX packets errors when receiving big size
> of data by set bit RNC = 1.

> RNC - Receive Enable Control

> 0: Upon completion of reception of one frame, the E-DMAC writes
> the receive status to the descriptor and clears the RR bit in
> EDRRR to 0.

    As far as I know, it's the setting most of the other SoC Ethers use.

> 1: Upon completion of reception of one frame, the E-DMAC writes
> (writes back) the receive status to the descriptor. In addition,
> the E-DMAC reads the next descriptor and prepares for reception
> of the next frame.

> Signed-off-by: Nguyen Hong Ky <nh-ky@jinso.co.jp>
> ---
>   drivers/net/ethernet/renesas/sh_eth.c |    4 ++++
>   1 files changed, 4 insertions(+), 0 deletions(-)
>
> diff --git a/drivers/net/ethernet/renesas/sh_eth.c b/drivers/net/ethernet/renesas/sh_eth.c
> index a753928..11d34f0 100644
> --- a/drivers/net/ethernet/renesas/sh_eth.c
> +++ b/drivers/net/ethernet/renesas/sh_eth.c
> @@ -649,12 +649,16 @@ static struct sh_eth_cpu_data r8a7740_data = {
>   	.eesr_err_check	= EESR_TWB1 | EESR_TWB | EESR_TABT | EESR_RABT |
>   			  EESR_RFE | EESR_RDE | EESR_RFRMER | EESR_TFE |
>   			  EESR_TDE | EESR_ECI,
> +	.fdr_value	= 0x0000070f,
> +	.rmcr_value	= 0x00000001,
>
>   	.apr		= 1,
>   	.mpr		= 1,
>   	.tpauser	= 1,
>   	.bculr		= 1,
>   	.hw_swap	= 1,
> +	.rpadir		= 1,
> +	.rpadir_value   = 2 << 16,

   Your patch seems to change much more than is described in the changelog...

WBR, Sergei


  parent reply	other threads:[~2013-10-04 19:39 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-06-20 10:53 [PATCH] ARM: mach-shmobile: armadillo800eva: Use late init machine hook Laurent Pinchart
2012-06-21  5:38 ` Kuninori Morimoto
2012-06-21 10:22 ` Rafael J. Wysocki
2012-07-06 11:08 ` [PATCH] ARM: mach-shmobile: armadillo800eva: defconfig Allow use of armhf userspace Simon Horman
2012-07-08 22:24 ` Rafael J. Wysocki
2013-02-13 12:15 ` [PATCH] ARM: mach-shmobile: armadillo800eva: enable REGULATOR in defconfig Simon Horman
2013-02-13 12:26   ` Guennadi Liakhovetski
2013-02-13 13:12     ` Simon Horman
2013-10-04  5:39 ` [PATCH] ARM: mach-shmobile: armadillo800eva: Fix RX packets errors on sh_eth Nguyen Hong Ky
2013-10-04  5:39 ` Nguyen Hong Ky
2013-10-04 19:39 ` Sergei Shtylyov [this message]
2013-10-07  5:11 ` Nguyen Hong Ky

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=524F279A.4040307@cogentembedded.com \
    --to=sergei.shtylyov@cogentembedded.com \
    --cc=linux-sh@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox