]> 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)
commitd671756e08f0b2a00330b824a2bc17cb3e966c04
tree874137d86ad1e45c6b1714e79506d6805292335d
parent06d2213949ebf923631dba119b9fe226ee6cb82a
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