qed: Fix BAR size split for some servers
authorAriel Elior <Ariel.Elior@qlogic.com>
Mon, 7 Dec 2015 11:25:58 +0000 (06:25 -0500)
committerDavid S. Miller <davem@davemloft.net>
Mon, 7 Dec 2015 19:14:04 +0000 (14:14 -0500)
commitc78df14ee0f6bc5e8741b4324b600b7277abb13e
tree73826c3d3d2b83876e78a6345fd9ecf4f4481e34
parent76a9a3642a0b72d5687d680150580d55b6ea9804
qed: Fix BAR size split for some servers

Can't rely on pci config space to discover bar size,
as in some environments this returns a wrong, too large value.
Instead, rely on device register, which contains the value
provided by MFW at preboot.

Signed-off-by: Ariel Elior <Ariel.Elior@qlogic.com>
Signed-off-by: Manish Chopra <manish.chopra@qlogic.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/qlogic/qed/qed_dev.c
drivers/net/ethernet/qlogic/qed/qed_reg_addr.h