PCI_RES_TYPE_MASK
type &= PCI_RES_TYPE_MASK; /* with 64bit & pref */
type &= PCI_RES_TYPE_MASK;
if (type && (fail_res->flags & PCI_RES_TYPE_MASK) != type)