/* Restore system configuration 1 */
        this->write_word(syscfg, this->base + ONENAND_REG_SYS_CFG1);
 
+       /* Workaround */
+       if (syscfg & ONENAND_SYS_CFG1_SYNC_WRITE) {
+               bram_maf_id = this->read_word(this->base + ONENAND_REG_MANUFACTURER_ID);
+               bram_dev_id = this->read_word(this->base + ONENAND_REG_DEVICE_ID);
+       }
+
        /* Check manufacturer ID */
        if (onenand_check_maf(bram_maf_id))
                return -ENXIO;
        this->device_id = dev_id;
        this->version_id = ver_id;
 
+       /* Check OneNAND features */
+       onenand_check_features(mtd);
+
        density = onenand_get_density(dev_id);
        if (FLEXONENAND(this)) {
                this->dies = ONENAND_IS_DDP(this) ? 2 : 1;
        else
                mtd->size = this->chipsize;
 
-       /* Check OneNAND features */
-       onenand_check_features(mtd);
-
        /*
         * We emulate the 4KiB page and 256KiB erase block size
         * But oobsize is still 64 bytes.