From: Wang Dongsheng <wdsch86@gmail.com>
To: timur@codeaurora.org
Cc: netdev@vger.kernel.org, Wang Dongsheng <wdsch86@gmail.com>
Subject: [PATCH] net: qcom/emac: fix the error of tpd buff address valid bit
Date: Fri, 10 Nov 2017 01:49:17 -0800 [thread overview]
Message-ID: <1510307357-16878-1-git-send-email-wds@virtfox.com> (raw)
From: Wang Dongsheng <wdsch86@gmail.com>
TPD has 46-bits as buff address valid bit. So fix the buff address
from 45-bits to 46-bits.
Signed-off-by: Wang Dongsheng <wdsch86@gmail.com>
diff --git a/drivers/net/ethernet/qualcomm/emac/emac-mac.h b/drivers/net/ethernet/qualcomm/emac/emac-mac.h
index 5028fb4..66e0ce2 100644
--- a/drivers/net/ethernet/qualcomm/emac/emac-mac.h
+++ b/drivers/net/ethernet/qualcomm/emac/emac-mac.h
@@ -115,7 +115,7 @@ struct emac_tpd {
/* High-14bit Buffer Address, So, the 64b-bit address is
* {DESC_CTRL_11_TX_DATA_HIADDR[17:0],(register) BUFFER_ADDR_H, BUFFER_ADDR_L}
*/
-#define TPD_BUFFER_ADDR_H_SET(tpd, val) BITS_SET((tpd)->word[3], 18, 30, val)
+#define TPD_BUFFER_ADDR_H_SET(tpd, val) BITS_SET((tpd)->word[3], 18, 31, val)
/* Format D. Word offset from the 1st byte of this packet to start to calculate
* the custom checksum.
*/
--
2.7.4
next reply other threads:[~2017-11-10 9:49 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-11-10 9:49 Wang Dongsheng [this message]
2017-11-10 12:57 ` [PATCH] net: qcom/emac: fix the error of tpd buff address valid bit Timur Tabi
2017-11-10 13:24 ` Wang, Dongsheng
2017-11-10 14:08 ` Timur Tabi
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=1510307357-16878-1-git-send-email-wds@virtfox.com \
--to=wdsch86@gmail.com \
--cc=netdev@vger.kernel.org \
--cc=timur@codeaurora.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).