mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-08-22 12:20:15 +03:00
mtd_speedtest results: page read speed old new delta DB120 929 KiB/s 2597 KiB/s +179.55% TL-WR1043ND v1 754 KiB/s 2166 KiB/s +187.27% TL-WR703N v1 745 KiB/s 2176 KiB/s +192.08% TL-MR3220 v1 752 KiB/s 2154 KiB/s +186.44% TL-WR2543ND v1 564 KiB/s 2130 KiB/s +277.66% TL-WR741ND v2 525 KiB/s 1767 KiB/s +236.57% ALFA-AP96 702 KiB/s 1977 KiB/s +181.62% WNDR3700 697 KiB/s 1965 KiB/s +181.92% git-svn-id: svn://svn.openwrt.org/openwrt/trunk@31118 3c298f89-4303-0410-b956-a3cf2f4a3e73
16 lines
505 B
Diff
16 lines
505 B
Diff
--- a/drivers/mtd/devices/m25p80.c
|
|
+++ b/drivers/mtd/devices/m25p80.c
|
|
@@ -372,10 +372,12 @@ static int m25p80_read(struct mtd_info *
|
|
* OPCODE_FAST_READ (if available) is faster.
|
|
* Should add 1 byte DUMMY_BYTE.
|
|
*/
|
|
+ t[0].type = SPI_TRANSFER_FLASH_READ_CMD;
|
|
t[0].tx_buf = flash->command;
|
|
t[0].len = m25p_cmdsz(flash) + FAST_READ_DUMMY_BYTE;
|
|
spi_message_add_tail(&t[0], &m);
|
|
|
|
+ t[1].type = SPI_TRANSFER_FLASH_READ_DATA;
|
|
spi_message_add_tail(&t[1], &m);
|
|
|
|
/* Byte count starts at zero. */
|