1. 20 Oct, 2010 1 commit
    • Jason Wang's avatar
      spi/omap2_mcspi: disable channel after TX_ONLY transfer in PIO mode · e1993ed6
      Jason Wang authored
      In the TX_ONLY transfer, the SPI controller also receives data
      simultaneously and saves them in the rx register. After the TX_ONLY
      transfer, the rx register will hold the random data received during
      the last tx transaction.
      
      If the direct following transfer is RX_ONLY, this random data has the
      possibility to affect this transfer like this:
        When the SPI controller is changed from TX_ONLY to RX_ONLY,
        the random data makes the rx register full immediately and
        triggers a dummy write automatically(in SPI RX_ONLY transfers,
        we need a dummy write to trigger the first transaction).
      
        So the first data received in the RX_ONLY transfer will be that
        random data instead of something meaningful.
      
      We can avoid this by inserting a Disable/Re-enable toggle of the
      channel after the TX_ONLY transfer, since it purges the rx register.
      Signed-off-by: default avatarJason Wang <jason77.wang@gmail.com>
      Tested-by: default avatarGrazvydas Ignotas <notasas@gmail.com>
      Acked-by: default avatarTony Lindgren <tony@atomide.com>
      Signed-off-by: default avatarGrant Likely <grant.likely@secretlab.ca>
      e1993ed6
  2. 18 Oct, 2010 30 commits
  3. 17 Oct, 2010 2 commits
  4. 16 Oct, 2010 5 commits
  5. 15 Oct, 2010 2 commits
    • Eric Paris's avatar
      types.h: define __aligned_u64 and expose to userspace · 79b5dc0c
      Eric Paris authored
      We currently have a kernel internal type called aligned_u64 which aligns
      __u64's on 8 bytes boundaries even on systems which would normally align
      them on 4 byte boundaries.  This patch creates a new type __aligned_u64
      which does the same thing but which is exposed to userspace rather than
      being kernel internal.
      
      [akpm: merge early as both the net and audit trees want this]
      
      [akpm@linux-foundation.org: enhance the comment describing the reasons for using aligned_u64.  Via Andreas and Andi.]
      Based-on-patch-by: default avatarAndreas Gruenbacher <agruen@suse.de>
      Signed-off-by: default avatarEric Paris <eparis@redhat.com>
      Cc: Jan Engelhardt <jengelh@medozas.de>
      Cc: David Miller <davem@davemloft.net>
      Cc: Andi Kleen <andi@firstfloor.org>
      Cc: Arnd Bergmann <arnd@arndb.de>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      79b5dc0c
    • FUJITA Tomonori's avatar
      uml: fix build · e3c6cf61
      FUJITA Tomonori authored
      Fix a build error introduced by d6d1b650 ("param: simple
      locking for sysfs-writable charp parameters").
      
          CC      arch/um/kernel/trap.o
        arch/um/drivers/hostaudio_kern.c: In function 'hostaudio_open':
        arch/um/drivers/hostaudio_kern.c:204: error: '__param_dsp' undeclared (first use in this function)
        arch/um/drivers/hostaudio_kern.c:204: error: (Each undeclared identifier is reported only once
        arch/um/drivers/hostaudio_kern.c:204: error: for each function it appears in.)
        arch/um/drivers/hostaudio_kern.c: In function 'hostmixer_open_mixdev':
        arch/um/drivers/hostaudio_kern.c:265: error: '__param_mixer' undeclared (first use in this function)
        arch/um/drivers/hostaudio_kern.c:272: error: '__param_dsp' undeclared (first use in this function)
      Reported-by: default avatarToralf Förster <toralf.foerster@gmx.de>
      Tested-by: default avatarToralf Förster <toralf.foerster@gmx.de>
      Cc: Rusty Russell <rusty@rustcorp.com.au>
      Cc: Takashi Iwai <tiwai@suse.de>
      Cc: Jeff Dike <jdike@addtoit.com>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      e3c6cf61