# HG changeset patch # User asl # Date 1087735576 0 # Node ID e1d094896914ddfcb4c13b1c7fc31ee26e995811 # Parent 2a83c3d9c985f33fdad2ab1891b21906eed14940 Don't check if the flash is write protected before performing a read. diff --git a/packages/io/flash/current/ChangeLog b/packages/io/flash/current/ChangeLog --- a/packages/io/flash/current/ChangeLog +++ b/packages/io/flash/current/ChangeLog @@ -1,5 +1,7 @@ 2004-06-20 Andrew Lunn + * src/flash.c (flash_read): Don't check if the flash is write + protected before performing a read. * doc/flash.sgml * cdl/io_flash.cdl: Added documentation of the FLASH API diff --git a/packages/io/flash/current/src/flash.c b/packages/io/flash/current/src/flash.c --- a/packages/io/flash/current/src/flash.c +++ b/packages/io/flash/current/src/flash.c @@ -330,11 +330,6 @@ flash_read(void *_addr, void *_data, int return FLASH_ERR_NOT_INIT; } -#ifdef CYGSEM_IO_FLASH_SOFT_WRITE_PROTECT - if (plf_flash_query_soft_wp(addr,len)) - return FLASH_ERR_PROTECT; -#endif - _flash_read_buf = (code_fun*) __anonymizer(&flash_read_buf); #ifdef CYGSEM_IO_FLASH_CHATTER