mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: David Miller <davem@davemloft.net>
To: clabbe.montjoie@gmail.com
Cc: peppe.cavallaro@st.com, alexandre.torgue@st.com,
	netdev@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH v2] net: stmmac: add set_mac to the stmmac_ops
Date: Fri, 24 Mar 2017 12:36:52 -0700 (PDT)	[thread overview]
Message-ID: <20170324.123652.1821802503059612387.davem@davemloft.net> (raw)
In-Reply-To: <20170323134022.18740-1-clabbe.montjoie@gmail.com>

From: Corentin Labbe <clabbe.montjoie@gmail.com>
Date: Thu, 23 Mar 2017 14:40:22 +0100

> Two different set_mac functions exists but stmmac_dwmac4_set_mac() is
> only used for enabling and never for disabling.
> So on dwmac4, the MAC RX/TX is never disabled.
> 
> This patch add a generic function pointer set_mac() to stmmac_ops and
> replace all call to stmmac_set_mac/stmmac_dwmac4_set_mac by a call to
> this pointer.
> 
> Since dwmac4_ops is const, set_mac cannot be modified after, and so dwmac4_ops
> is duplioacted like dwmac4_dma_ops.
> 
> Signed-off-by: Corentin Labbe <clabbe.montjoie@gmail.com>

Applied.

      reply	other threads:[~2017-03-24 19:37 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-03-23 13:40 Corentin Labbe
2017-03-24 19:36 ` David Miller [this message]

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=20170324.123652.1821802503059612387.davem@davemloft.net \
    --to=davem@davemloft.net \
    --cc=alexandre.torgue@st.com \
    --cc=clabbe.montjoie@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=netdev@vger.kernel.org \
    --cc=peppe.cavallaro@st.com \
    /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

all inboxes | Powered by JetHome®