cxgb4: Warn if device doesn't have enough PCI bandwidth
authorHariprasad Shenai <hariprasad@chelsio.com>
Wed, 23 Dec 2015 05:59:53 +0000 (11:29 +0530)
committerDavid S. Miller <davem@davemloft.net>
Wed, 23 Dec 2015 17:05:52 +0000 (12:05 -0500)
commit547fd27241a887c1df020c5f8347e348540f0591
tree874137d86ad1e45c6b1714e79506d6805292335d
parent83a76006e06213160c4bb1e1a157e7707c504af6
cxgb4: Warn if device doesn't have enough PCI bandwidth

Check if the device get enough bandwidth from the entire PCI chain to
satisfy its capabilities. This patch determines the PCIe device's
bandwidth capabilities by reading its PCIe Link Capabilities registers
and then call the pcie_get_minimum_link function to ensure that the
adapter is hooked into a slot which is capable of providing the
necessary bandwidth capabilities.

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