The target of this fix is CFI-compatible Macronix MX29GL @ Asus RT-N16 wifi router. This board has 16bit parallel flash and 8bit bus. To enable query mode, we need to use bus_space_write_1 (8bit) to write to location 55x2 (16bit).
This patch adds bus width parameter and way to auto-identify it. It uses this parameter for query mode requests.
It works for me, but I don't have any other CFI devices to test it. I'll appreciate if somebody can test it.