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. 10 11月, 2012 3 次提交
  6. 09 11月, 2012 8 次提交
  7. 08 11月, 2012 23 次提交
  8. 07 11月, 2012 1 次提交
    • K
      xen/generic: Disable fallback build on ARM. · 6bf926dd
      Konrad Rzeszutek Wilk 提交于
      As there is no need for it (the fallback code is for older
      hypervisors and they only run under x86), and also b/c
      we get:
      
      drivers/xen/fallback.c: In function 'xen_event_channel_op_compat':
      drivers/xen/fallback.c:10:19: error: storage size of 'op' isn't known
      drivers/xen/fallback.c:15:2: error: implicit declaration of function '_hypercall1' [-Werror=implicit-function-declaration]
      drivers/xen/fallback.c:15:19: error: expected expression before 'int'
      drivers/xen/fallback.c:18:7: error: 'EVTCHNOP_close' undeclared (first use in this function)
      drivers/xen/fallback.c:18:7: note: each undeclared identifier is reported only once for each function it appears in
      .. and more
      
      [v1: Moved the enablement to be covered by CONFIG_X86 per Ian's suggestion]
      Signed-off-by: NKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
      6bf926dd