/* pcie_set_ecrc_checking - set/unset PCIe ECRC checking for a device based on global policy @dev: the PCI device  */
void pcie_set_ecrc_checking(struct pci_dev *dev)
/* pcie_set_ecrc_checking - set/unset PCIe ECRC checking for a device based on global policy @dev: the PCI device  */
void pcie_set_ecrc_checking(struct pci_dev *dev)
{
	switch (ecrc_policy) {
	case ECRC_POLICY_DEFAULT:
		return;
	case ECRC_POLICY_OFF:
		disable_ecrc_checking(dev);
		break;
	case ECRC_POLICY_ON:
		enable_ecrc_checking(dev);
		break;
	default:
		return;
	}
}