From mboxrd@z Thu Jan 1 00:00:00 1970 From: Wang Dongsheng Subject: [PATCH] net: qcom/emac: fix the error of tpd buff address valid bit Date: Fri, 10 Nov 2017 01:49:17 -0800 Message-ID: <1510307357-16878-1-git-send-email-wds@virtfox.com> Cc: netdev@vger.kernel.org, Wang Dongsheng To: timur@codeaurora.org Return-path: Received: from mail-pg0-f68.google.com ([74.125.83.68]:56710 "EHLO mail-pg0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750835AbdKJJt1 (ORCPT ); Fri, 10 Nov 2017 04:49:27 -0500 Received: by mail-pg0-f68.google.com with SMTP id z184so1613464pgd.13 for ; Fri, 10 Nov 2017 01:49:26 -0800 (PST) Sender: netdev-owner@vger.kernel.org List-ID: From: Wang Dongsheng 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 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