mirror of
https://review.coreboot.org/flashrom.git
synced 2025-07-03 06:53:18 +02:00
Use device-specific vendor ID in ftdi_usb_open() call
ft2232_spi ftdi_usb_open() is called with the constant FTDI_VID vendor ID. Fix it by using the programmer-type-dependent ft2232_vid variable, to allow programmers with other vendor IDs. Corresponding to flashrom svn r1230. Signed-off-by: Alex Badea <vamposdecampos@gmail.com> Acked-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
This commit is contained in:

committed by
Carl-Daniel Hailfinger

parent
0b94d05c23
commit
b1b459ce0e
@ -179,7 +179,7 @@ int ft2232_spi_init(void)
|
||||
return EXIT_FAILURE; // TODO
|
||||
}
|
||||
|
||||
f = ftdi_usb_open(ftdic, FTDI_VID, ft2232_type);
|
||||
f = ftdi_usb_open(ftdic, ft2232_vid, ft2232_type);
|
||||
|
||||
if (f < 0 && f != -5) {
|
||||
msg_perr("Unable to open FTDI device: %d (%s)\n", f,
|
||||
|
Reference in New Issue
Block a user