This is a hack that should be reconsidered. In 8 bit mode, the CFI data
for the part is wrong in that the buffer size is 1024 but should be 256.
Signed-off-by: Jagan <jaganna@xilinx.com>
}
info->sector_count = sect_cnt;
- info->buffer_size = 1 << le16_to_cpu(qry.max_buf_write_size);
+ /* info->buffer_size =
+ 1 << le16_to_cpu(qry.max_buf_write_size); */
+ /*
+ * Xilinx hack for now due to numonyx bug with 8 bit mode
+ * The CFI data for the buffer size is wrong in the part.
+ * It may be feasible to fix this better.
+ */
+ info->buffer_size = 256;
tmp = 1 << qry.block_erase_timeout_typ;
info->erase_blk_tout = tmp *
(1 << qry.block_erase_timeout_max);