OSDN Git Service

ravb: Add tx and rx clock internal delays mode of APSR
authorKazuya Mizuguchi <kazuya.mizuguchi.ks@renesas.com>
Fri, 27 Jan 2017 19:46:26 +0000 (20:46 +0100)
committerDavid S. Miller <davem@davemloft.net>
Sun, 29 Jan 2017 23:35:43 +0000 (18:35 -0500)
commit61fccb2d6274f77de6d16a0dc74eda813e90eb64
tree9c1d205f1f64c2af2296b4956247249ace5fc625
parent1a28242bac44b9eb24fb2e84131256cb3c63372c
ravb: Add tx and rx clock internal delays mode of APSR

This patch enables tx and rx clock internal delay modes (TDM and RDM).

This is to address a failure in the case of 1Gbps communication using the
by salvator-x board with the KSZ9031RNX phy. This has been reported to
occur with both the r8a7795 (H3) and r8a7796 (M3-W) SoCs.

With this change APSR internal delay modes are enabled for
"rgmii-id", "rgmii-rxid" and "rgmii-txid" phy modes as follows:

phy mode   | ASPR delay mode
-----------+----------------
rgmii-id   | TDM and RDM
rgmii-rxid | RDM
rgmii-txid | TDM

Signed-off-by: Kazuya Mizuguchi <kazuya.mizuguchi.ks@renesas.com>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
Acked-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/renesas/ravb.h
drivers/net/ethernet/renesas/ravb_main.c