From: Giuseppe CAVALLARO <peppe.cavallaro@st.com>
To: Byungho An <bh74.an@samsung.com>
Cc: netdev@vger.kernel.org, '김국진' <kgene.kim@samsung.com>,
davem@davemloft.net, cpgs@samsung.com
Subject: Re: [PATCH] net: stmmac: fixed enh_desc set always zero
Date: Fri, 28 Jun 2013 14:57:46 +0200 [thread overview]
Message-ID: <51CD884A.4030509@st.com> (raw)
In-Reply-To: <015801ce73d2$12332070$36996150$%an@samsung.com>
On 6/28/2013 9:35 AM, Byungho An wrote:
>
> This patch fixed that enh_desc value is always zero.
> Due to calling order of stmmac_selec_desc_mode(), enh_desc value is always zero.
> Even though mac is set to use enhanced dma descriptor, if enh_desc is zero,
> functions related dma descriptor are not working correctly.
> Signed-off-by: Byungho An <bh74.an@samsung.com>
Acked-by: Giuseppe Cavallaro <peppe.cavallaro@st.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 e5e221e..40efd55 100644
> --- a/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c
> +++ b/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c
> @@ -2567,9 +2567,6 @@ static int stmmac_hw_init(struct stmmac_priv *priv)
> /* Get and dump the chip ID */
> priv->synopsys_id = stmmac_get_synopsys_id(priv);
>
> - /* To use alternate (extended) or normal descriptor structures */
> - stmmac_selec_desc_mode(priv);
> -
> /* To use the chained or ring mode */
> if (chain_mode) {
> priv->hw->chain = &chain_mode_ops;
> @@ -2604,6 +2601,9 @@ static int stmmac_hw_init(struct stmmac_priv *priv)
> } else
> pr_info(" No HW DMA feature register supported");
>
> + /* To use alternate (extended) or normal descriptor structures */
> + stmmac_selec_desc_mode(priv);
> +
> ret = priv->hw->mac->rx_ipc(priv->ioaddr);
> if (!ret) {
> pr_warn(" RX IPC Checksum Offload not configured.\n");
>
next prev parent reply other threads:[~2013-06-28 12:58 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-06-28 7:35 [PATCH] net: stmmac: fixed enh_desc set always zero Byungho An
2013-06-28 12:57 ` Giuseppe CAVALLARO [this message]
2013-07-01 20:33 ` David Miller
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=51CD884A.4030509@st.com \
--to=peppe.cavallaro@st.com \
--cc=bh74.an@samsung.com \
--cc=cpgs@samsung.com \
--cc=davem@davemloft.net \
--cc=kgene.kim@samsung.com \
--cc=netdev@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;
as well as URLs for NNTP newsgroup(s).