Revert the hack to force the write buffer size to 256 bits. The
hack breaks any flash devices that have a write buffer that is not
256bits (e.g. JS28F256P30T95, on the ML507).
Signed-off-by: Jason Wu <huanyu@xilinx.com>
Signed-off-by: Nathan Rossi <nathan.rossi@xilinx.com>
---
Reverting this patch it is causing the problem on zc770-xm012
flash timeout issue
}
info->sector_count = sect_cnt;
- /* 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;
+ info->buffer_size = 1 << le16_to_cpu(qry.max_buf_write_size);
tmp = 1 << qry.block_erase_timeout_typ;
info->erase_blk_tout = tmp *
(1 << qry.block_erase_timeout_max);