domain: Don't be so strict about matching USB devs
Since an active USB dev has both product+vendor and bus+addr, but an inactive dev won't have bus+addr in many situations, hotunplug wasn't removing the persistent dev. Relax the lookup check a bit.
This commit is contained in:
parent
26c49f7d6e
commit
fa0070b1dd
|
@ -40,8 +40,9 @@ def compare_device(origdev, newdev, idx):
|
||||||
"sound" : ["model", "vmmindex"],
|
"sound" : ["model", "vmmindex"],
|
||||||
"video" : ["model_type", "vmmindex"],
|
"video" : ["model_type", "vmmindex"],
|
||||||
"watchdog" : ["vmmindex"],
|
"watchdog" : ["vmmindex"],
|
||||||
"hostdev" : ["vendor", "product", "bus", "device",
|
"hostdev" : ["type", "managed", "vmmindex",
|
||||||
"type", "function", "domain", "slot", "managed"],
|
"product", "vendor",
|
||||||
|
"function", "domain", "slot"],
|
||||||
"serial" : ["char_type", "target_port"],
|
"serial" : ["char_type", "target_port"],
|
||||||
"parallel" : ["char_type", "target_port"],
|
"parallel" : ["char_type", "target_port"],
|
||||||
"console" : ["char_type", "target_type", "target_port"],
|
"console" : ["char_type", "target_type", "target_port"],
|
||||||
|
|
Loading…
Reference in New Issue