1. 08 2月, 2008 3 次提交
    • J
      CRIS v32: Add new driver files for Artpec-3. · 18a1e013
      Jesper Nilsson 提交于
      Adds gpio and nandflash handling for Artpec-3.
      18a1e013
    • J
      CRIS: Rearrange Kconfigs for v10 and v32 to allow compilation without warnings. · 923dd2a4
      Jesper Nilsson 提交于
      - Remove some unneeded configs and add some new ones.
      - Merge common config items to common file instead of duplicating them.
      - Pull in standard Kconfig.preempt.
      - Remove some unneeded Kconfigs for subsystems not (yet) available on CRIS
        (md, scsi, ieee1394, i2o, isdn, telephony, media, pcmcia, pci)
      - Rename CRISv32 config items which had different types from CRISv10.
        (ETRAX_LED2G, ETRAX_LED2R, ETRAX_LED3G, ETRAX_LED3R, ETRAX_I2C_DATA_PORT,
        ETRAX_I2C_CLK_PORT)
      923dd2a4
    • B
      Introduce flags for reserve_bootmem() · 72a7fe39
      Bernhard Walle 提交于
      This patchset adds a flags variable to reserve_bootmem() and uses the
      BOOTMEM_EXCLUSIVE flag in crashkernel reservation code to detect collisions
      between crashkernel area and already used memory.
      
      This patch:
      
      Change the reserve_bootmem() function to accept a new flag BOOTMEM_EXCLUSIVE.
      If that flag is set, the function returns with -EBUSY if the memory already
      has been reserved in the past.  This is to avoid conflicts.
      
      Because that code runs before SMP initialisation, there's no race condition
      inside reserve_bootmem_core().
      
      [akpm@linux-foundation.org: coding-style fixes]
      [akpm@linux-foundation.org: fix powerpc build]
      Signed-off-by: NBernhard Walle <bwalle@suse.de>
      Cc: <linux-arch@vger.kernel.org>
      Cc: "Eric W. Biederman" <ebiederm@xmission.com>
      Cc: Vivek Goyal <vgoyal@in.ibm.com>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      72a7fe39
  2. 06 2月, 2008 3 次提交
    • J
      arch/cris: add a missing iounmap · 6d9f4c5c
      Julia Lawall 提交于
      An extra error handling label is needed for the case where the ioremap has
      succeeded.
      
      The problem was detected using the following semantic match
      (http://www.emn.fr/x-info/coccinelle/)
      
      // <smpl>
      @@
      type T,T1,T2;
      identifier E;
      statement S;
      expression x1,x2;
      constant C;
      int ret;
      @@
      
        T E;
        ...
      * E = ioremap(...);
        if (E == NULL) S
        ... when != iounmap(E)
            when != if (E != NULL) { ... iounmap(E); ...}
            when != x1 = (T1)E
        if (...) {
          ... when != iounmap(E)
              when != if (E != NULL) { ... iounmap(E); ...}
              when != x2 = (T2)E
      (
      *   return;
      |
      *   return C;
      |
      *   return ret;
      )
        }
      // </smpl>
      Signed-off-by: NJulia Lawall <julia@diku.dk>
      Cc: Mikael Starvik <starvik@axis.com>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      6d9f4c5c
    • J
      CRIS: avoid using arch links in Kconfig · 2d33d563
      Jesper Nilsson 提交于
      Improve including of architecture dependent Kconfig files.
      
      - Always include the architecture dependent Kconfig files.
      - Wrap architecture dependent Kconfig files inside an appropriate
        "if ETRAX_ARCH_Vxx" block.
      
      This makes it possible to run the configuration even without the arch links,
      which are created later in the build process.
      Signed-off-by: NJesper Nilsson <jesper.nilsson@axis.com>
      Acked-by: NSam Ravnborg <sam@ravnborg.org>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      2d33d563
    • D
      timerfd: new timerfd API · 4d672e7a
      Davide Libenzi 提交于
      This is the new timerfd API as it is implemented by the following patch:
      
      int timerfd_create(int clockid, int flags);
      int timerfd_settime(int ufd, int flags,
      		    const struct itimerspec *utmr,
      		    struct itimerspec *otmr);
      int timerfd_gettime(int ufd, struct itimerspec *otmr);
      
      The timerfd_create() API creates an un-programmed timerfd fd.  The "clockid"
      parameter can be either CLOCK_MONOTONIC or CLOCK_REALTIME.
      
      The timerfd_settime() API give new settings by the timerfd fd, by optionally
      retrieving the previous expiration time (in case the "otmr" parameter is not
      NULL).
      
      The time value specified in "utmr" is absolute, if the TFD_TIMER_ABSTIME bit
      is set in the "flags" parameter.  Otherwise it's a relative time.
      
      The timerfd_gettime() API returns the next expiration time of the timer, or
      {0, 0} if the timerfd has not been set yet.
      
      Like the previous timerfd API implementation, read(2) and poll(2) are
      supported (with the same interface).  Here's a simple test program I used to
      exercise the new timerfd APIs:
      
      http://www.xmailserver.org/timerfd-test2.c
      
      [akpm@linux-foundation.org: coding-style cleanups]
      [akpm@linux-foundation.org: fix ia64 build]
      [akpm@linux-foundation.org: fix m68k build]
      [akpm@linux-foundation.org: fix mips build]
      [akpm@linux-foundation.org: fix alpha, arm, blackfin, cris, m68k, s390, sparc and sparc64 builds]
      [heiko.carstens@de.ibm.com: fix s390]
      [akpm@linux-foundation.org: fix powerpc build]
      [akpm@linux-foundation.org: fix sparc64 more]
      Signed-off-by: NDavide Libenzi <davidel@xmailserver.org>
      Cc: Michael Kerrisk <mtk-manpages@gmx.net>
      Cc: Thomas Gleixner <tglx@linutronix.de>
      Cc: Davide Libenzi <davidel@xmailserver.org>
      Cc: Michael Kerrisk <mtk-manpages@gmx.net>
      Cc: Martin Schwidefsky <schwidefsky@de.ibm.com>
      Signed-off-by: NHeiko Carstens <heiko.carstens@de.ibm.com>
      Cc: Michael Kerrisk <mtk.manpages@gmail.com>
      Cc: Davide Libenzi <davidel@xmailserver.org>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      4d672e7a
  3. 03 2月, 2008 1 次提交
  4. 29 1月, 2008 2 次提交
  5. 25 1月, 2008 1 次提交
    • G
      Kobject: the cris iop_fw_load.c code is broken · 52840bd6
      Greg Kroah-Hartman 提交于
      This code is really really really broken.  So much so that it's almost
      impossible to fix with a simple patch, so just comment out the offending
      registration with the kobject core, and mark the driver as broken.
      
      The problem is that the code is trying to register a "raw" struct
      device, which is not allowed.  struct device is only for use within the
      driver model.  This is being done to try to use the firmware layer which
      wants a struct device.  To properly fix this, use something easy, like a
      platform device, which is a struct device and can be used for this kind
      of thing.
      
      Cc: Mikael Starvik <starvik@axis.com>
      Cc: Kay Sievers <kay.sievers@vrfy.org>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      52840bd6
  6. 22 1月, 2008 1 次提交
  7. 18 1月, 2008 1 次提交
  8. 15 1月, 2008 3 次提交
  9. 28 11月, 2007 1 次提交
  10. 15 11月, 2007 18 次提交
  11. 20 10月, 2007 5 次提交
  12. 17 10月, 2007 1 次提交