projects
/
openwrt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
refresh kernel config
[openwrt.git]
/
target
/
linux
/
atheros
/
patches-2.6.28
/
120-spiflash.patch
diff --git
a/target/linux/atheros/patches-2.6.28/120-spiflash.patch
b/target/linux/atheros/patches-2.6.28/120-spiflash.patch
index
e661365
..
e33733e
100644
(file)
--- a/
target/linux/atheros/patches-2.6.28/120-spiflash.patch
+++ b/
target/linux/atheros/patches-2.6.28/120-spiflash.patch
@@
-288,10
+288,10
@@
+}
+
+static void
+}
+
+static void
-+spiflash_wait_complete(struct spiflash_priv *priv)
++spiflash_wait_complete(struct spiflash_priv *priv
, unsigned int timeout
)
+{
+ busy_wait(priv, spiflash_sendcmd(priv, SPI_RD_STATUS, 0) &
+{
+ busy_wait(priv, spiflash_sendcmd(priv, SPI_RD_STATUS, 0) &
-+ SPI_STATUS_WIP,
20
);
++ SPI_STATUS_WIP,
timeout
);
+ spiflash_done(priv);
+}
+
+ spiflash_done(priv);
+}
+
@@
-321,7
+321,7
@@
+ reg |= op->tx_cnt | SPI_CTL_START;
+ spiflash_write_reg(priv, SPI_FLASH_CTL, reg);
+
+ reg |= op->tx_cnt | SPI_CTL_START;
+ spiflash_write_reg(priv, SPI_FLASH_CTL, reg);
+
-+ spiflash_wait_complete(priv);
++ spiflash_wait_complete(priv
, 20
);
+
+ instr->state = MTD_ERASE_DONE;
+ if (instr->callback)
+
+ instr->state = MTD_ERASE_DONE;
+ if (instr->callback)
@@
-418,7
+418,7
@@
+ reg |= (read_len + 4) | SPI_CTL_START;
+ spiflash_write_reg(priv, SPI_FLASH_CTL, reg);
+
+ reg |= (read_len + 4) | SPI_CTL_START;
+ spiflash_write_reg(priv, SPI_FLASH_CTL, reg);
+
-+ spiflash_wait_complete(priv);
++ spiflash_wait_complete(priv
, 1
);
+
+ bytes_left -= read_len;
+ to += read_len;
+
+ bytes_left -= read_len;
+ to += read_len;
This page took
0.022583 seconds
and
4
git commands to generate.