From: Joao Pinto <Joao.Pinto@synopsys.com>
To: Florian Fainelli <f.fainelli@gmail.com>,
Joao Pinto <Joao.Pinto@synopsys.com>, <davem@davemloft.net>
Cc: <peppe.cavallaro@st.com>, <alexandre.torgue@st.com>,
<clabbe.montjoie@gmail.com>, <thierry.reding@gmail.com>,
<sergei.shtylyov@cogentembedded.com>, <netdev@vger.kernel.org>
Subject: Re: [PATCH v2 net-next] net: fix dma operation mode config for older versions
Date: Wed, 22 Mar 2017 11:07:08 +0000 [thread overview]
Message-ID: <0d1ff4c8-a438-f746-ef7e-9f8eb39ba352@synopsys.com> (raw)
In-Reply-To: <14d56634-1ec0-2d21-4e60-c1adde5d42f5@gmail.com>
Às 6:56 PM de 3/21/2017, Florian Fainelli escreveu:
> On 03/21/2017 11:02 AM, Joao Pinto wrote:
>> This patch fixes a bug introduced in:
>> commit 6deee2221e11 ("net: stmmac: prepare dma op mode config for multiple
>> queues")
>
> So even though this is against net-next which is the only tree so far
> having the offending commit, it is nice to see this appear later in the
> commit messages as:
>
> Fixes: 6deee2221e11 ("net: stmmac: prepare dma op mode config for
> multiple queues")
>
> Also, your subject for this patch should be:
>
> net: stmmac: fix dma operation mode config for older versions
Ok, I will do that! Thanks.
>
>>
>> The dma operation mode configuration routine was wrongly moved to a
>> function (stmmac_mtl_configuration) that is only executed if the
>> core version is >= 4.00.
>>
>> Reported-by: Corentin Labbe <clabbe.montjoie@gmail.com>
>> Signed-off-by: Joao Pinto <jpinto@synopsys.com>
>> ---
>> drivers/net/ethernet/stmicro/stmmac/stmmac_main.c | 6 +++---
>> 1 file changed, 3 insertions(+), 3 deletions(-)
>>
>> diff --git a/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c b/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c
>> index d3a2151..225a3a3 100644
>> --- a/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c
>> +++ b/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c
>> @@ -1945,9 +1945,6 @@ static void stmmac_mtl_configuration(struct stmmac_priv *priv)
>> /* Enable MAC RX Queues */
>> if (rx_queues_count > 1 && priv->hw->mac->rx_queue_enable)
>> stmmac_mac_enable_rx_queues(priv);
>> -
>> - /* Set the HW DMA mode and the COE */
>> - stmmac_dma_operation_mode(priv);
>> }
>>
>> /**
>> @@ -2014,6 +2011,9 @@ static int stmmac_hw_setup(struct net_device *dev, bool init_ptp)
>> else
>> stmmac_set_mac(priv->ioaddr, true);
>>
>> + /* Set the HW DMA mode and the COE */
>> + stmmac_dma_operation_mode(priv);
>> +
>> stmmac_mmc_setup(priv);
>>
>> if (init_ptp) {
>>
>
>
next prev parent reply other threads:[~2017-03-22 11:07 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-03-21 18:00 [PATCH v2 net-next] net: fix dma operation mode config for older versions Joao Pinto
2017-03-21 18:56 ` Florian Fainelli
2017-03-22 11:07 ` Joao Pinto [this message]
2017-03-21 20:42 ` Thierry Reding
2017-03-21 20:46 ` Thierry Reding
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=0d1ff4c8-a438-f746-ef7e-9f8eb39ba352@synopsys.com \
--to=joao.pinto@synopsys.com \
--cc=alexandre.torgue@st.com \
--cc=clabbe.montjoie@gmail.com \
--cc=davem@davemloft.net \
--cc=f.fainelli@gmail.com \
--cc=netdev@vger.kernel.org \
--cc=peppe.cavallaro@st.com \
--cc=sergei.shtylyov@cogentembedded.com \
--cc=thierry.reding@gmail.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.