Remove legacy EEPROM fields from FT4232H.
authorTomasz Wasilczyk <twasilczyk@google.com>
Wed, 21 Apr 2021 19:42:08 +0000 (12:42 -0700)
committerThomas Jarosch <thomas.jarosch@intra2net.com>
Sun, 2 May 2021 07:15:38 +0000 (09:15 +0200)
These are not present when flashed with FT_Prog tool.

src/ftdi.c

index 5ec3e2c..2f77ac3 100644 (file)
@@ -3113,7 +3113,8 @@ int ftdi_eeprom_build(struct ftdi_context *ftdi)
     }
 
     // Legacy port name and PnP fields for FT2232 and newer chips
-    if (ftdi->type > TYPE_BM)
+    // It doesn't appear when written with FT_Prog for FT4232H chip.
+    if (ftdi->type > TYPE_BM && ftdi->type != TYPE_4232H)
     {
         output[i & eeprom_size_mask] = 0x02; /* as seen when written with FTD2XX */
         i++;