1. 23 11月, 2012 1 次提交
  2. 19 11月, 2012 1 次提交
  3. 15 11月, 2012 1 次提交
    • F
      i2c: omap: ensure writes to dev->buf_len are ordered · aedc256d
      Felipe Balbi 提交于
      if we allow compiler reorder our writes, we could
      fall into a situation where dev->buf_len is reset
      for no apparent reason.
      
      This bug was found with a simple script which would
      transfer data to an i2c client from 1 to 1024 bytes
      (a simple for loop), when we got to transfer sizes
      bigger than the fifo size, dev->buf_len was reset
      to zero before we had an oportunity to handle XDR
      Interrupt. Because dev->buf_len was zero, we entered
      omap_i2c_transmit_data() to transfer zero bytes,
      which would mean we would just silently exit
      omap_i2c_transmit_data() without actually writing
      anything to DATA register. That would cause XDR
      IRQ to trigger forever and we would never transfer
      the remaining bytes.
      
      After adding the memory barrier, we also drop resetting
      dev->buf_len to zero in omap_i2c_xfer_msg() because
      both omap_i2c_transmit_data() and omap_i2c_receive_data()
      will act until dev->buf_len reaches zero, rendering the
      other write in omap_i2c_xfer_msg() redundant.
      
      This patch has been tested with pandaboard for a few
      iterations of the script mentioned above.
      Signed-off-by: NFelipe Balbi <balbi@ti.com>
      Signed-off-by: NWolfram Sang <w.sang@pengutronix.de>
      aedc256d
  4. 14 11月, 2012 2 次提交
  5. 02 11月, 2012 3 次提交
  6. 29 10月, 2012 3 次提交
  7. 08 10月, 2012 2 次提交
  8. 06 10月, 2012 18 次提交
  9. 22 9月, 2012 1 次提交
  10. 19 9月, 2012 1 次提交
    • A
      ARM: samsung: move platform_data definitions · 436d42c6
      Arnd Bergmann 提交于
      Platform data for device drivers should be defined in
      include/linux/platform_data/*.h, not in the architecture
      and platform specific directories.
      
      This moves such data out of the samsung include directories
      Signed-off-by: NArnd Bergmann <arnd@arndb.de>
      Acked-by: NMark Brown <broonie@opensource.wolfsonmicro.com>
      Acked-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      Acked-by: NNicolas Pitre <nico@linaro.org>
      Acked-by: NMauro Carvalho Chehab <mchehab@redhat.com>
      Cc: Kukjin Kim <kgene.kim@samsung.com>
      Cc: Kyungmin Park <kyungmin.park@samsung.com>
      Cc: Ben Dooks <ben-linux@fluff.org>
      Cc: Jeff Garzik <jgarzik@pobox.com>
      Cc: Guenter Roeck <linux@roeck-us.net>
      Cc: "Wolfram Sang (embedded platforms)" <w.sang@pengutronix.de>
      Cc: Dmitry Torokhov <dmitry.torokhov@gmail.com>
      Cc: Bryan Wu <bryan.wu@canonical.com>
      Cc: Richard Purdie <rpurdie@rpsys.net>
      Cc: Sylwester Nawrocki <s.nawrocki@samsung.com>
      Cc: Chris Ball <cjb@laptop.org>
      Cc: David Woodhouse <dwmw2@infradead.org>
      Cc: Grant Likely <grant.likely@secretlab.ca>
      Cc: Felipe Balbi <balbi@ti.com>
      Cc: Alan Stern <stern@rowland.harvard.edu>
      Cc: Sangbeom Kim <sbkim73@samsung.com>
      Cc: Liam Girdwood <lrg@ti.com>
      Cc: linux-samsung-soc@vger.kernel.org
      436d42c6
  11. 14 9月, 2012 7 次提交