Skip to content

Commit 27bbd77

Browse files
committed
udev: remove filter_match in XilinxUSBJTAG and QuartusUSBJTAG
1 parent 993adae commit 27bbd77

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

labgrid/resource/udev.py

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -399,8 +399,6 @@ def __attrs_post_init__(self):
399399
self.match['DEVTYPE'] = 'usb_device'
400400
super().__attrs_post_init__()
401401

402-
def filter_match(self, device):
403-
return True
404402

405403
@target_factory.reg_resource
406404
@attr.s(eq=False)
@@ -426,16 +424,6 @@ def __attrs_post_init__(self):
426424
self.match['DEVTYPE'] = 'usb_device'
427425
super().__attrs_post_init__()
428426

429-
def filter_match(self, device):
430-
match = (device.properties.get('ID_VENDOR_ID'), device.properties.get('ID_MODEL_ID'))
431-
432-
if match not in [("0403", "6010"), # Trenz Electronic TE0790-03
433-
("0403", "6014"), # Digilent JTAG-SMT2/JTAG-HS3
434-
("03fd", "0013"), # Xilinx Platform Cable USB
435-
("03fd", "0008")]: # Xilinx Platform Cable USB II
436-
return False
437-
438-
return super().filter_match(device)
439427

440428
@target_factory.reg_resource
441429
@attr.s(eq=False)

0 commit comments

Comments
 (0)