eeprom: Fix USE_SERIAL handling for 230X type chips
authorRobert Cox <Robert.cox@novatechweb.com>
Fri, 23 Dec 2016 13:30:55 +0000 (14:30 +0100)
committerThomas Jarosch <thomas.jarosch@intra2net.com>
Fri, 23 Dec 2016 13:31:19 +0000 (14:31 +0100)
Found that the USE_SERIAL was not being set correctly in
the eeprom_build routine for the 230X. Tracked the problem down to a line
that hard coded the value when the 230X was first added. With this line
removed code currently in the code before the switch will set the bit
correctly for the 230X.

src/ftdi.c

index 0b26a7a..b87aa1c 100644 (file)
@@ -3181,7 +3181,6 @@ int ftdi_eeprom_build(struct ftdi_context *ftdi)
             break;
         case TYPE_230X:
             output[0x00] = 0x80; /* Actually, leave the default value */
-            output[0x0a] = 0x08; /* Enable USB Serial Number */
             /*FIXME: Make DBUS & CBUS Control configurable*/
             output[0x0c] = 0;    /* DBUS drive 4mA, CBUS drive 4 mA like factory default */
             for (j = 0; j <= 6; j++)