Carl-Daniel Hailfinger wrote:
Absolutely. The ultimate goal is to kill dev_find_pci_device completely. We have a really nice device model and we should not work around it with v2-style code.
This will not always be possible, because devices have interactions.
Example:
function setup_link_between_a_and_b: - Set bit X in device A - Set bit Y in device B - Poll bit Z in device A until a link between A and B is valid
Now, you have to put that function either in device A or device B.
Stefan