commit | 321b5e9afe2d2b31f78b60724d58a9d02888bb57 | [log] [tgz] |
---|---|---|
author | Jakub Kicinski <jakub.kicinski@netronome.com> | Sun May 28 17:52:56 2017 -0700 |
committer | David S. Miller <davem@davemloft.net> | Tue May 30 11:27:04 2017 -0400 |
tree | e64a8286047d40facbba50627233ca9b7f94672a | |
parent | 09b857945b21706d432f6e4e1c9e5028be5f14ff [diff] |
nfp: only try to get to PCIe ctrl memory if BARs are wide enough For accessing PCIe ctrl memory we depend on the BAR aperture being large enough to reach all registers. Since the BAR aperture can be set in the flash make sure the driver won't oops the kernel when the PCIe configuration is unusual. Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com> Signed-off-by: David S. Miller <davem@davemloft.net>