1. 10 9月, 2010 1 次提交
    • Y
      tmio_mmc: don't clear unhandled pending interrupts · b78d6c5f
      Yusuke Goda 提交于
      Previously, it was possible for ack_mmc_irqs() to clear pending interrupt
      bits in the CTL_STATUS register, even though the interrupt handler had not
      been called.  This was because of a race that existed when doing a
      read-modify-write sequence on CTL_STATUS.  After the read step in this
      sequence, if an interrupt occurred (causing one of the bits in CTL_STATUS
      to be set) the write step would inadvertently clear it.
      
      Observed with the TMIO_STAT_RXRDY bit together with CMD53 on AR6002 and
      BCM4318 SDIO cards in polled mode.
      
      This patch eliminates this race by only writing to CTL_STATUS and clearing
      the interrupts that were passed as an argument to ack_mmc_irqs()."
      
      [matt@console-pimps.org: rewrote changelog]
      Signed-off-by: NYusuke Goda <yusuke.goda.sx@renesas.com>
      Acked-by: Magnus Damm <damm@opensource.se>"
      Tested-by: Arnd Hannemann <arnd@arndnet.de>"
      Acked-by: NIan Molton <ian@mnementh.co.uk>
      Cc: Matt Fleming <matt@console-pimps.org>
      Cc: Samuel Ortiz <sameo@linux.intel.com>
      Cc: Paul Mundt <lethal@linux-sh.org>
      Cc: <linux-mmc@vger.kernel.org>
      Cc: <stable@kernel.org>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      b78d6c5f
  2. 22 5月, 2010 1 次提交
  3. 08 3月, 2010 1 次提交
  4. 18 1月, 2010 1 次提交
  5. 14 6月, 2009 1 次提交
  6. 25 3月, 2009 1 次提交
    • A
      MMC: tmio_mmc.h: fix build problem · 4cb32906
      Alexander Beregalov 提交于
      drivers/mmc/host/tmio_mmc.h: In function 'tmio_mmc_kmap_atomic':
      drivers/mmc/host/tmio_mmc.h:147: error: implicit declaration of function 'kmap_atomic'
      drivers/mmc/host/tmio_mmc.h:147: error: 'KM_BIO_SRC_IRQ' undeclared (first use in this function)
      drivers/mmc/host/tmio_mmc.h: In function 'tmio_mmc_kunmap_atomic':
      drivers/mmc/host/tmio_mmc.h:153: error: implicit declaration of function 'kunmap_atomic'
      drivers/mmc/host/tmio_mmc.h:153: error: 'KM_BIO_SRC_IRQ' undeclared (first use in this function)
      Signed-off-by: NAlexander Beregalov <a.beregalov@gmail.com>
      Signed-off-by: NPierre Ossman <drzeus@drzeus.cx>
      4cb32906
  7. 20 9月, 2008 1 次提交
  8. 11 8月, 2008 1 次提交