1. 17 5月, 2006 5 次提交
    • D
      [JFFS2] Repack some on-medium structures. ARM is weirder than I thought. · ba9627b8
      David Woodhouse 提交于
      We have to pack at least the jint16_t structure, because otherwise it'll
      be four bytes in size. Thankfully, we can do that and _not_ pack the
      actual node structures, and the compiler still doesn't emit stupid code.
      Signed-off-by: NDavid Woodhouse <dwmw2@infradead.org>
      ba9627b8
    • S
      NAND: Fix NAND ECC errors on AMD Au1550 · 35af68b5
      Sergei Shtylyov 提交于
          On AMD Au1550 the static bus controller fails to keep -CE asserted during
      chip ready delay on read commands and the NAND chip being used requires this.
      So, the current driver allows nand_base.c to drive -CE manually during the
      entire sector read. When the PCMCIA driver is enabled however, occasionally
      the ECC errors occur on NAND reads. This happens because the PCMCIA driver
      polls sockets periodically and reads one of the board's control/status regs
      (BCSRs) which are on the same static bus as the NAND flash, and just use
      another chip select (and the NOR flash also resides on that bus), so as the
      NAND driver forces NAND chip select asserted and the -RE signal is shared, a
      contention occurs on the static bus when BCSR or NOR flash is read while we're
      reading from NAND.
          So, we either can't keep interrupts enabled during the whole NAND sector
      read (which is hardly acceptable), or have to implement some interlocking
      scheme between multiple drivers (which is painful, and makes me shudder :-).
          There's a third way which has proven to work: to force -CE asserted only
      while we're waiting for a NAND chip to become ready after a read command,
      disabling interrupts for a maximum of 25 microseconds (according to Toshiba
      TC58DVM92A1FT00 datasheet -- this chip is mentioned in the board schematics);
      for Samsung NAND chip which seems to be actually used this delay is even less,
      12 us.
      Signed-off-by: NKonstantin Baydarov <kbaidarov@ru.mvista.com>
      Signed-off-by: NSergei Shtylyov <sshtylyov@ru.mvista.com>
      Signed-off-by: NDavid Woodhouse <dwmw2@infradead.org>
      35af68b5
    • B
      [MTD] Fix build warnings in RedBoot MTD partition parser. · b020bb7d
      Ben Dooks 提交于
      Fix build warnings from drivers/mtd/redboot.c due to
      use of `unsigned long` in `struct fis_image_desc` for
      fields being passed to swab32s() which expects __u32 *
      
      Change the entries to uint32_t to make them compatible
      with the swab32s() function
      Signed-off-by: NBen Dooks <ben-linux@fluff.org>
      Signed-off-by: NDavid Woodhouse <dwmw2@infradead.org>
      b020bb7d
    • S
      NAND: AMD Au1550 driver reads write-only register · 155285c4
      Sergei Shtylyov 提交于
           During the last cleanup of the AMD Au1550 NAND driver the old buglet was
      reintroduced: as the MEM_STNDCTL register is write-only and seem to always
      read as 0x31, read-modify-write to it done in au1xxx_nand_init() will have the
      side effect of enabling -RCS0/1 pin override (via bits 4/5 of this reg.), thus
      possibly causing a contention on the static bus when the NOR flash (using
      -RCS0) or board control status registers (using -RCS2) are read. Luckily, this
      goes away with a first NAND access, since au1550_hwcontrol() doesn't try to
      read this register before writing anymore.
      Signed-off-by: NSergei Shtylyov <sshtylyov@ru.mvista.com>
      Signed-off-by: NDavid Woodhouse <dwmw2@infradead.org>
      155285c4
    • D
      [JFFS2] Fix printk format in jffs2_sum_write_data() error message. · c41ff6e5
      David Woodhouse 提交于
      fs/jffs2/summary.c: In function ‘jffs2_sum_write_data’:
      fs/jffs2/summary.c:658: warning: format ‘%zd’ expects type ‘signed size_t’, but argument 4 has type ‘uint32_t’
      Signed-off-by: NDavid Woodhouse <dwmw2@infradead.org>
      c41ff6e5
  2. 16 5月, 2006 35 次提交