From: Sanjeev Sharma <sanjeev_sharma@mentor.com>
To: <claudiu.manoil@freescale.com>
Cc: <davem@davemloft.net>, <matei.pavaluca@freescale.com>,
<netdev@vger.kernel.org>, <linux-kernel@vger.kernel.org>,
Sanjeev Sharma <sanjeev_sharma@mentor.com>,
Sanjeev Sharma <Sanjeev_Sharma@mentor.com>
Subject: [PATCH v3] gianfar: correct the bad expression while writing bit-pattern
Date: Tue, 3 Feb 2015 13:02:02 +0530 [thread overview]
Message-ID: <1422948722-16864-1-git-send-email-sanjeev_sharma@mentor.com> (raw)
In-Reply-To: <54B3D899.5060204@freescale.com>
This patch correct the bad expression while writing the
bit-pattern from software's buffer to hardware registers.
Signed-off-by: Sanjeev Sharma <Sanjeev_Sharma@mentor.com>
---
Changes in v3:
- corrected the expression by introducing tab->fe[i].prop.
drivers/net/ethernet/freescale/gianfar_ethtool.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/ethernet/freescale/gianfar_ethtool.c b/drivers/net/ethernet/freescale/gianfar_ethtool.c
index 3e1a9c1..fda12fb 100644
--- a/drivers/net/ethernet/freescale/gianfar_ethtool.c
+++ b/drivers/net/ethernet/freescale/gianfar_ethtool.c
@@ -1586,7 +1586,7 @@ static int gfar_write_filer_table(struct gfar_private *priv,
return -EBUSY;
/* Fill regular entries */
- for (; i < MAX_FILER_IDX - 1 && (tab->fe[i].ctrl | tab->fe[i].ctrl);
+ for (; i < MAX_FILER_IDX - 1 && (tab->fe[i].ctrl | tab->fe[i].prop);
i++)
gfar_write_filer(priv, i, tab->fe[i].ctrl, tab->fe[i].prop);
/* Fill the rest with fall-troughs */
--
1.7.11.7
next prev parent reply other threads:[~2015-02-03 7:32 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-01-12 7:43 [PATCH] gianfar: correct the bad expression while writing bit-pattern Sanjeev Sharma
2015-01-12 14:12 ` Sergei Shtylyov
2015-01-13 5:28 ` [PATCH v2] " Sanjeev Sharma
2015-01-13 6:01 ` Eric Dumazet
2015-01-13 6:15 ` Eric Dumazet
2015-01-12 14:22 ` [PATCH] " Claudiu Manoil
2015-02-03 7:32 ` Sanjeev Sharma [this message]
2015-02-04 21:55 ` [PATCH v3] " 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=1422948722-16864-1-git-send-email-sanjeev_sharma@mentor.com \
--to=sanjeev_sharma@mentor.com \
--cc=claudiu.manoil@freescale.com \
--cc=davem@davemloft.net \
--cc=linux-kernel@vger.kernel.org \
--cc=matei.pavaluca@freescale.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).