1. 03 Sep, 2009 1 commit
    • Jason Gunthorpe's avatar
      I'm testing the tpm_tis low level driver with a winbond WPCT200: · 48b0f7dc
      Jason Gunthorpe authored
      $ cat caps
      Manufacturer: 0x57454300
      TCG version: 1.2
      Firmware version: 2.16
      
      and noted that tpm_pcr_read for the pcrs sysfile file does not function. 
      tpm_tis_recv returned with an error because the expected reply size was
      set to 14 (the request size) and the chip returned 30 bytes.
      
      The TCG spec says the reply size is supposed to be 30 bytes.
      
      The length input to transmit_cmd is the size of the reply, not of the
      request.  It should be 30 for READ_PCR.
      
      With this change my chip reports all 23 pcrs.
      
      Also, the BUILD_BUG_ON() is just wrong - it's testing a value which isn't
      a compile-time constant.  Simply remove that assertion.
      Signed-off-by: default avatarJason Gunthorpe <jgunthorpe@obsidianresearch.com>
      Cc: Debora Velarde <debora@linux.vnet.ibm.com>
      Cc: Rajiv Andrade <srajiv@linux.vnet.ibm.com>
      Cc: Marcel Selhorst <m.selhorst@sirrix.com>
      Cc: James Morris <jmorris@namei.org>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      48b0f7dc
  2. 13 Jul, 2009 1 commit
  3. 24 Aug, 2009 3 commits
  4. 14 Sep, 2009 1 commit
    • Andrew Morton's avatar
      drivers/net/r8169.c: In function 'rtl8169_start_xmit': · 9856bd96
      Andrew Morton authored
      drivers/net/r8169.c:3419: warning: label 'out' defined but not used
      
      due, I assume, to
      
      commit 7ab0f273
      Author:     Ben Hutchings <bhutchings@solarflare.com>
      AuthorDate: Thu Sep 3 10:39:43 2009 +0000
      Commit:     David S. Miller <davem@davemloft.net>
      CommitDate: Thu Sep 3 20:02:11 2009 -0700
      
          netdev: Remove redundant checks for CAP_NET_ADMIN in MDIO implementations
      
      
      Cc: Ben Hutchings <bhutchings@solarflare.com>
      Cc: David S. Miller <davem@davemloft.net>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      9856bd96
  5. 12 Aug, 2009 1 commit
    • Andrew Morton's avatar
      ERROR: code indent should use tabs where possible · cf5ad6b5
      Andrew Morton authored
      #20: FILE: drivers/net/zorro8390.c:124:
      +        return -ENODEV;$
      
      total: 1 errors, 0 warnings, 9 lines checked
      
      ./patches/zorro8390-fix-read-buffer-overflow-in-zorro8390_init_one.patch has style problems, please review.  If any of these errors
      are false positives report them to the maintainer, see
      CHECKPATCH in MAINTAINERS.
      
      Please run checkpatch prior to sending patches
      
      Cc: Roel Kluin <roel.kluin@gmail.com>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      cf5ad6b5
  6. 24 Aug, 2009 2 commits
  7. 17 Aug, 2009 1 commit
  8. 06 Aug, 2009 1 commit
    • Randy Dunlap's avatar
      Fix netjet driver link errors when ISDN_I4L is not enabled: · 619293e3
      Randy Dunlap authored
      drivers/built-in.o: In function `mode_tiger':
      netjet.c:(.text+0x325dc8): undefined reference to `isdnhdlc_rcv_init'
      netjet.c:(.text+0x325dd5): undefined reference to `isdnhdlc_out_init'
      drivers/built-in.o: In function `fill_dma':
      netjet.c:(.text+0x325fb6): undefined reference to `isdnhdlc_encode'
      drivers/built-in.o: In function `read_dma':
      netjet.c:(.text+0x32631a): undefined reference to `isdnhdlc_decode'
      drivers/built-in.o: In function `nj_irq':
      netjet.c:(.text+0x326e01): undefined reference to `isdnhdlc_encode'
      
      or move isdnhdlc.c to some other sub-dir..
      Signed-off-by: default avatarRandy Dunlap <randy.dunlap@oracle.com>
      Cc: Karsten Keil <isdn@linux-pingi.de>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      619293e3
  9. 04 Aug, 2009 1 commit
  10. 24 Aug, 2009 1 commit
  11. 20 Aug, 2009 2 commits
    • Sudhakar Rajashekhara's avatar
      Implement memory accessor interface in the MTD layer which enables the · 789087b6
      Sudhakar Rajashekhara authored
      kernel to access flash data.
      
      This patch adds two new members to the mtd_partition structure, a function
      handler which will be called during setup of the partition and an argument
      to be passed to this setup function.
      
      Example:
      +static struct mtd_partition spi_flash_partitions[] = {
      +       [0] = {
      +               .name       = "U-Boot",
      +               .offset     = 0,
      +               .size       = SZ_256K,
      +               .mask_flags = MTD_WRITEABLE,
      +       },
      +       [1] = {
      +               .name       = "U-Boot Environment",
      +               .offset     = MTDPART_OFS_NXTBLK,
      +               .size       = SZ_64K,
      +               .mask_flags = MTD_WRITEABLE,
      +       },
      +       [2] = {
      +               .name       = "Linux",
      +               .offset     = MTDPART_OFS_NXTBLK,
      +               .size       = SZ_7M,
      +               .mask_flags = 0,
      +       },
      +       [3] = {
      +               .name       = "MAC Address",
      +               .offset     = MTDPART_OFS_NXTBLK,
      +               .size       = SZ_64K,
      +               .mask_flags = 0,
      +               .setup      = davinci_get_mac_addr,
      +               .context    = (void *)0,
      +       },
      +};
      
      The davinci_get_mac_addr function reads the MAC address from
      offset ZERO of last MTD partition.
      Signed-off-by: default avatarSudhakar Rajashekhara <sudhakar.raj@ti.com>
      Cc: David Brownell <david-b@pacbell.net>
      Cc: David Woodhouse <dwmw2@infradead.org>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      789087b6
    • Hiroshi Ito's avatar
      linux v2.6.31-rc6 can not detect NEC uPD29F064115. · 3c047c32
      Hiroshi Ito authored
      uPD29F064115 is a 16 bit device.
      datasheet:
        http://www.cn.necel.com/memory/cn/download/M16062EJ2V0DS00.pdf
      
      A problem and fix is described in the following commit, which in the main
      kernel tree, uPD29F064115 needs same fix.
      
      commit ca6f12c6
      Author: Atsushi Nemoto <anemo@mba.ocn.ne.jp>
      Date:   Wed Jul 16 00:09:15 2008 +0900
      
          [MTD] jedec_probe: Fix SST 16-bit chip detection
      
          The unlock_addr rework in kernel 2.6.25 breaks 16-bit SST chips.  SST
          39LF160 and SST 39VF1601 are both 16-bit only chip (do not have BYTE#
          pin) and new uaddr value is not correct for them.  Add
          MTD_UADDR_0xAAAA_0x5555 for those chips.  Tested with SST 39VF1601
          chip.
      Signed-off-by: default avatarAtsushi Nemoto <anemo@mba.ocn.ne.jp>
      Signed-off-by: default avatarDavid Woodhouse <David.Woodhouse@intel.com>
      Signed-off-by: default avatarHiroshi Ito <ito@mlb.co.jp>
      Cc: David Woodhouse <dwmw2@infradead.org>
      Cc: Atsushi Nemoto <anemo@mba.ocn.ne.jp>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      3c047c32
  12. 18 Aug, 2009 3 commits
  13. 08 Aug, 2009 1 commit
  14. 17 Jul, 2009 3 commits
  15. 06 Aug, 2009 1 commit
    • Magnus Damm's avatar
      Remove the ARM dependency from the generic "onenand" platform device · ff659572
      Magnus Damm authored
      driver.  This change makes the driver useful for other architectures as
      well.  Needed for the SuperH kfr2r09 board.
      
      Apart from the obvious Kconfig bits, the most important change is the move
      away from ARM specific includes and platform data.  Together with this
      change the only in-tree board code gets an update, and the driver name is
      also changed gracefully break potential out of tree drivers.
      
      The driver is also updated to allow NULL as platform data together with a
      few changes to make use of resource_size() and dev_name().
      Signed-off-by: default avatarMagnus Damm <damm@igel.co.jp>
      Cc: Paul Mundt <lethal@linux-sh.org>
      Cc: David Woodhouse <dwmw2@infradead.org>
      Cc: Tony Lindgren <tony@atomide.com>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      ff659572
  16. 24 Jul, 2009 1 commit
  17. 15 Jul, 2009 1 commit
  18. 07 Aug, 2009 1 commit
  19. 02 Jun, 2009 1 commit
  20. 03 Sep, 2009 1 commit
  21. 27 Aug, 2009 1 commit
  22. 20 Aug, 2009 2 commits
  23. 24 Jul, 2009 1 commit
  24. 24 Aug, 2009 3 commits
  25. 12 Sep, 2009 1 commit
  26. 09 Sep, 2009 2 commits
    • Jory A. Pratt's avatar
      The arch/*/boot/Makefile use cc-options to check for GCC command options · d624a2ae
      Jory A. Pratt authored
      and cc-options use the hardened specs when checking for GCC command
      options.  When -fPIE is pass to cc1 it can't use -ffreestanding or
      -fno-toplevel-reorder.  Then it fail to build stuff with -ffreestanding
      and -fno-toplevel-reorder.
      
      Thanks to Fredric Johansson for finding the main problem behind a failed
      build using a hardened toolchain.
      Signed-off-by: default avatarMagnus Granberg <zorry@ume.nu>
      Signed-off-by: default avatarJory A. Pratt <anarchy@gentoo.org>
      Cc: Fredric Johansson <johansson_fredric@hotmail.com> 
      Cc: "H. Peter Anvin" <hpa@zytor.com>
      Cc: Sam Ravnborg <sam@ravnborg.org>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      d624a2ae
    • Roland McGrath's avatar
      This adds CROSS_COMPILE as a kconfig string so you can store it in · 4e137d06
      Roland McGrath authored
      .config.  Then you can use plain "make" in the configured kernel build
      directory to do the right cross compilation without setting the
      command-line or environment variable every time.
      
      With this, you can set up different build directories for different kernel
      configurations, whether native or cross-builds, and then use the simple:
      
      	make -C /build/dir M=module-source-dir
      
      idiom to build modules for any given target kernel, indicating which one
      by nothing but the build directory chosen.
      
      I tried a version that defaults the string with env="CROSS_COMPILE" so
      that in a "make oldconfig" with CROSS_COMPILE in the environment you can
      just hit return to store the way you're building it.  But the kconfig
      prompt for strings doesn't give you any way to say you want an empty
      string instead of the default, so I punted that.
      Signed-off-by: default avatarRoland McGrath <roland@redhat.com>
      Cc: Sam Ravnborg <sam@ravnborg.org>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      4e137d06
  27. 05 Sep, 2009 2 commits