1. 09 Dec, 2009 1 commit
    • Luotao Fu's avatar
      mpc52xx_spi: fix clearing status register · 4a495b1c
      Luotao Fu authored
      Before reading status register to check MODF failure, we have to clear it
      first since the MODF flag will be set after initializing the spi master,
      if the hardware comes up with a low SS. The processor datasheet reads:
      Mode Fault flag -- bit sets if SS input goes low while SPI is configured as a
      master. Flag is cleared automatically by an SPI status register read (with MODF
      set) followed by a SPI control register 1 write.
      Hence simply rereading the register is not sufficient to clear the flag. We
      redo the write also to make sure to clear the flag.
      
      V2 Changes:
      * change variable type from int to u8
      Signed-off-by: default avatarLuotao Fu <l.fu@pengutronix.de>
      Acked-by: default avatarWolfram Sang <w.sang@pengutronix.de>
      Signed-off-by: default avatarGrant Likely <grant.likely@secretlab.ca>
      4a495b1c
  2. 08 Dec, 2009 1 commit
  3. 13 Nov, 2009 2 commits
  4. 12 Nov, 2009 1 commit
  5. 05 Nov, 2009 1 commit
  6. 04 Nov, 2009 8 commits
  7. 03 Nov, 2009 26 commits