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:
Cole Robinson 2011-07-19 12:37:18 -04:00
parent 26c49f7d6e
commit fa0070b1dd

View File

@ -40,8 +40,9 @@ def compare_device(origdev, newdev, idx):
"sound" : ["model", "vmmindex"],
"video" : ["model_type", "vmmindex"],
"watchdog" : ["vmmindex"],
"hostdev" : ["vendor", "product", "bus", "device",
"type", "function", "domain", "slot", "managed"],
"hostdev" : ["type", "managed", "vmmindex",
"product", "vendor",
"function", "domain", "slot"],
"serial" : ["char_type", "target_port"],
"parallel" : ["char_type", "target_port"],
"console" : ["char_type", "target_type", "target_port"],