Can we take a step back? I think in general drivers should not bother with pci_find_capability. Both mtip32xx and skd want to find out if the devices are PCIe devices, skd then just prints the link speed for which we have much better helpers, mtip32xx than messes with DEVCTL which seems actively dangerous to me.