]> git.baikalelectronics.ru Git - kernel.git/commit
cxgb4: Fix MC1 memory offset calculation
authorHariprasad Shenai <hariprasad@chelsio.com>
Wed, 29 Apr 2015 11:49:05 +0000 (17:19 +0530)
committerDavid S. Miller <davem@davemloft.net>
Wed, 29 Apr 2015 19:50:16 +0000 (15:50 -0400)
commit5c0578255c5b51729c91cb19613e33c047c7ae52
tree88f60a2862342a38b661745ecb9ee5c6bac467d8
parent90d992913c2a0a7a4682bea5eda02cdd3382f585
cxgb4: Fix MC1 memory offset calculation

Commit 72b1458b6e7b9515 ("cxgb4: Cleanup macros so they follow the same
style and look consistent") introduced a regression where reading MC1
memory in adapters where MC0 isn't present or MC0 size is not equal to MC1
size caused the adapter to crash due to incorrect computation of memoffset.
Fix is to read the size of MC0 instead of MC1 for offset calculation

Signed-off-by: Steve Wise <swise@opengridcomputing.com>
Signed-off-by: Hariprasad Shenai <hariprasad@chelsio.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/chelsio/cxgb4/t4_hw.c