Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

[PATCH] mtd onenand driver: fix unlock problem in DDP

authored by

Kyungmin Park and committed by
Linus Torvalds
20ba89a3 37b1cc39

+6 -4
+6 -4
drivers/mtd/onenand/onenand_base.c
··· 1296 1296 1297 1297 /* Block lock scheme */ 1298 1298 for (block = start; block < end; block++) { 1299 + /* Set block address */ 1300 + value = onenand_block_address(this, block); 1301 + this->write_word(value, this->base + ONENAND_REG_START_ADDRESS1); 1302 + /* Select DataRAM for DDP */ 1303 + value = onenand_bufferram_address(this, block); 1304 + this->write_word(value, this->base + ONENAND_REG_START_ADDRESS2); 1299 1305 /* Set start block address */ 1300 1306 this->write_word(block, this->base + ONENAND_REG_START_BLOCK_ADDRESS); 1301 1307 /* Write unlock command */ ··· 1314 1308 while (this->read_word(this->base + ONENAND_REG_CTRL_STATUS) 1315 1309 & ONENAND_CTRL_ONGO) 1316 1310 continue; 1317 - 1318 - /* Set block address for read block status */ 1319 - value = onenand_block_address(this, block); 1320 - this->write_word(value, this->base + ONENAND_REG_START_ADDRESS1); 1321 1311 1322 1312 /* Check lock status */ 1323 1313 status = this->read_word(this->base + ONENAND_REG_WP_STATUS);