Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

cxgb4: Fix the condition to check if the card is T5

Use 'chip_ver' rather than 'chip' to check if the card
is T5.

Fixes: e8d452923ae6 ("cxgb4: clean up init_one")
Signed-off-by: Ganesh Goudar <ganeshgr@chelsio.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Ganesh Goudar and committed by
David S. Miller
dfecc759 4ed88df7

+1 -1
+1 -1
drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c
··· 5766 5766 if (t4_read_reg(adapter, LE_DB_CONFIG_A) & HASHEN_F) { 5767 5767 u32 hash_base, hash_reg; 5768 5768 5769 - if (chip <= CHELSIO_T5) { 5769 + if (chip_ver <= CHELSIO_T5) { 5770 5770 hash_reg = LE_DB_TID_HASHBASE_A; 5771 5771 hash_base = t4_read_reg(adapter, hash_reg); 5772 5772 adapter->tids.hash_base = hash_base / 4;