lkml.org 
[lkml]   [2013]   [Dec]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    From
    Date
    SubjectRe: [PATCH 04/10] net: stmmac: sunxi platfrom extensions for GMAC in Allwinner A20 SoC's
    Hi,

    On Thu, Dec 12, 2013 at 5:04 PM, Maxime Ripard
    <maxime.ripard@free-electrons.com> wrote:
    > Hi,
    >
    > On Wed, Dec 11, 2013 at 02:45:08PM +0000, srinivas kandagatla wrote:
    >> >>> 1. .tx_coe
    >> >>> This is not exported in the DT bindings.
    >> >>> Looking at stmmac code, not setting this seems to disable all
    >> >>> checksum offloading.
    >> >>
    >> >> Why cant this go via DT as well?
    >> >
    >> > If you and Giuseppe are OK with this, why not?
    >> Am Ok with it.
    >
    > Please note that I'm opposed to this until someone explain why putting
    > it in the DT is relevant (and not just convenient).

    Checksum offloading is an optional feature[1], implemented starting
    from version 3.20a. It is not tied to a specific IP version. As such,
    using a "snps,dwmac-<version>" compatible isn't a good fit here.

    stmmac does auto-detection for optional features on MAC version > 3.50a.
    This is what Srinivas was referring to.

    Unfortunately, our MAC is < 3.50a. No auto-detection. We could add a
    "snps,dwmac-tx-coe" compatible for this, or the seperate DT property.

    The other way would be to pass the flags in the initial .data with the
    SoC specific compatible. Other SoCs with the same feature won't be
    able to reuse the same compatible though.


    ChenYu

    [1] http://www.synopsys.com/dw/dwtb.php?a=ethernet_mac


    \
     
     \ /
      Last update: 2013-12-12 12:01    [W:4.309 / U:0.484 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site