]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitdc9fa87625bb9eff03570b32d57011b22e39ca41
tree874137d86ad1e45c6b1714e79506d6805292335d
parent15bc1ded9a7f9a8bf64d2b9878ccc2bd2a92e79c
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