1. 18 3月, 2011 1 次提交
  2. 14 1月, 2011 4 次提交
  3. 24 12月, 2010 2 次提交
  4. 03 12月, 2010 1 次提交
    • A
      cs5535-gpio: apply CS5536 errata workaround for GPIOs · 853ff883
      Andres Salomon 提交于
      The AMD Geode CS5536 Companion Device Silicon Revision B1 Specification
      Update mentions the follow as issue #36:
      
       "Atomic write transactions to the atomic GPIO High Bank Feature Bit
        registers should only affect the bits selected [...]"
      
       "after Suspend, an atomic write transaction [...] will clear all
        non-selected bits of the accessed register."
      
      In other words, writing to the high bank for a single GPIO bit will
      clear every other GPIO bit (but only sometimes after a suspend).
      
      The workaround described is obvious and simple; do a read-modify-write.
      This patch does that, and documents why we're doing it.
      Signed-off-by: NAndres Salomon <dilinger@queued.net>
      Cc: <stable@kernel.org>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      853ff883
  5. 21 7月, 2010 1 次提交
  6. 28 5月, 2010 1 次提交
  7. 07 3月, 2010 1 次提交
    • B
      gpio: cs5535-gpio: fix input direction · a8a5164c
      Ben Gardner 提交于
      The cs5535-gpio driver's get() function was returning the output value.
      This means that the GPIO pins would never work as an input, even if
      configured as an input.
      
      The driver should return the READ_BACK value, which is the sensed line
      value.  To make that work when the direction is 'output', INPUT_ENABLE
      needs to be set.
      
      In addition, the driver was not disabling OUTPUT_ENABLE when the direction
      is set to 'input'.  That would cause the GPIO to continue to drive the pin
      if the direction was ever set to output.
      
      This issue was noticed when attempting to use the gpiolib driver to read
      an external input.  I had previously been using the char/cs5535-gpio
      driver.
      Signed-off-by: NBen Gardner <gardner.ben@gmail.com>
      Acked-by: NAndres Salomon <dilinger@collabora.co.uk>
      Cc: Andrew Morton <akpm@linux-foundation.org>
      Cc: David Brownell <dbrownell@users.sourceforge.net>
      Cc: Mark Brown <broonie@opensource.wolfsonmicro.com>
      Cc: <stable@kernel.org>		[2.6.33.x]
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      a8a5164c
  8. 16 12月, 2009 2 次提交