1. 20 7月, 2016 3 次提交
  2. 19 7月, 2016 3 次提交
  3. 17 7月, 2016 1 次提交
  4. 16 7月, 2016 5 次提交
  5. 14 7月, 2016 5 次提交
  6. 11 7月, 2016 21 次提交
  7. 10 7月, 2016 2 次提交
    • B
      mtd: spi-nor: fix wrong "fully unlocked" test · 06586204
      Brian Norris 提交于
      In stm_unlock(), the test to determine whether we've fully unlocked the
      flash checks for the lock length to be equal to the flash size. That is
      a typo/think-o -- the condition actually means the flash is completely
      *locked.* We should be using the inverse condition -- that the lock
      length is 0 (i.e., no protection).
      
      The result of this bug is that we never actually turn off the Status
      Register Write Disable bit, even if the flash is completely unlocked.
      Now we can.
      
      Fixes: 47b8edbf ("mtd: spi-nor: disallow further writes to SR if WP# is low")
      Reported-by: NGiorgio <giorgio.nicole@arcor.de>
      Signed-off-by: NBrian Norris <computersforpeace@gmail.com>
      Cc: Ezequiel Garcia <ezequiel@vanguardiasur.com.ar>
      06586204
    • D
      mtd: cfi_cmdset_0020: Deinline do_write_buffer, save 5316 bytes · 21a190b9
      Denys Vlasenko 提交于
      This function compiles to 2554 bytes of machine code.
      In C, the function is almost 200 lines long.
      
      It has only one callsite, but forced inlining that much code
      makes gcc generate significantly worse code. Let gcc itself decide
      what to do.
      Signed-off-by: NDenys Vlasenko <dvlasenk@redhat.com>
      CC: David Woodhouse <David.Woodhouse@intel.com>
      CC: Dan Carpenter <dan.carpenter@oracle.com>
      CC: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
      CC: linux-mtd@lists.infradead.org
      CC: linux-kernel@vger.kernel.org
      Signed-off-by: NBrian Norris <computersforpeace@gmail.com>
      21a190b9