Skip to content
Snippets Groups Projects
  1. Jul 21, 2016
  2. Jul 20, 2016
    • Daniel Schwierzeck's avatar
      mtd: cfi_flash: fix polling for bit XSR.7 on Intel chips · 55edb9d4
      Daniel Schwierzeck authored
      
      flash_full_status_check() checks bit XSR.7 on Intel chips. This
      should be done by only checking bit 7 and not by comparing the
      whole status byte or word with 0x80.
      
      This fixes the non-working block erase in the pflash emulation
      of Qemu when used with the MIPS Malta board. MIPS Malta uses x32
      mode to access the pflash device. In x32 mode Qemu mirrors the
      lower 16 bits of the status word into the upper 16 bits. Thus
      the CFI driver gets a status word of 0x8080 in x32 mode. If
      flash_full_status_check() uses flash_isequal(), then it polls for
      XSR.7 by comparing 0x8080 with 0x80 which never becomes true.
      
      Reported-by: default avatarAlon Bar-Lev <alon.barlev@gmail.com>
      Signed-off-by: default avatarDaniel Schwierzeck <daniel.schwierzeck@gmail.com>
      Signed-off-by: default avatarStefan Roese <sr@denx.de>
      55edb9d4
  3. Jul 19, 2016
  4. Jul 17, 2016
  5. Jul 16, 2016
  6. Jul 15, 2016
Loading