1. 17 10月, 2011 1 次提交
  2. 14 10月, 2011 1 次提交
  3. 26 9月, 2011 3 次提交
  4. 17 9月, 2011 2 次提交
    • T
      ARM: davinci: edma: use kzalloc() · 902532db
      Thomas Meyer 提交于
       Use kzalloc rather than kmalloc followed by memset with 0
      
       This considers some simple cases that are common and easy to validate
       Note in particular that there are no ...s in the rule, so all of the
       matched code has to be contiguous
      
       The semantic patch that makes this output is available
       in scripts/coccinelle/api/alloc/kzalloc-simple.cocci.
      
       More information about semantic patching is available at
       http://coccinelle.lip6.fr/Signed-off-by: NThomas Meyer <thomas@m3y3r.de>
      Signed-off-by: NSekhar Nori <nsekhar@ti.com>
      902532db
    • I
      ARM: davinci: Explicitly set channel controllers' default queues · f23fe857
      Ido Yariv 提交于
      Davinci platforms may define a default queue for each channel
      controller. If one is not defined, the default queue is set to EVENTQ_1.
      However, there's no way to distinguish between an unset default queue to
      one that is set to EVENTQ_0, as EVENTQ_0 = 0.
      
      Explicitly specify the default queue for all channel controllers on all
      Davinci platforms to EVENTQ_1, and don't overwrite it in the EDMA probe
      function.
      
      One exception is the DA850 board, for which EVENTQ_1 is not a valid
      option for its second channel controller. Use EVENTQ_0 instead for that
      channel controller.
      Signed-off-by: NIdo Yariv <ido@wizery.com>
      Signed-off-by: NSekhar Nori <nsekhar@ti.com>
      f23fe857
  5. 07 9月, 2011 3 次提交
    • L
      ARM: davinci: fix cache flush build error · 897a6a1a
      Linus Walleij 提交于
      The TNET variant of DaVinci compiles some code that it shares
      with other DaVinci variants, however it has a V6 CPU rather than
      an ARM926T, thus the hardcoded call to arm926_flush_kern_cache_all()
      in sleep.S will obviously fail, and we need to build with the
      v6_flush_kern_cache_all() call instead. This was triggered by
      manually altering the DaVinci config to build the TNET version.
      
      Cc: Dave Martin <dave.martin@linaro.org>
      Cc: Arnd Bergmann <arnd@arndb.de>
      Signed-off-by: NLinus Walleij <linus.walleij@linaro.org>
      Signed-off-by: NSekhar Nori <nsekhar@ti.com>
      Cc: stable@kernel.org
      897a6a1a
    • S
      ARM: davinci: correct MDSTAT_STATE_MASK · c0874800
      Sergei Shtylyov 提交于
      MDSTAT.STATE occupies bits 0..5 according to all available documentation, so fix
      the #define MDSTAT_STATE_MASK at last. Using the wrong value seems to have been
      harmless though...
      Signed-off-by: NSergei Shtylyov <sshtylyov@ru.mvista.com>
      Signed-off-by: NSekhar Nori <nsekhar@ti.com>
      c0874800
    • R
      ARM: davinci: da850 EVM: read mac address from SPI flash · 810198bc
      Rajashekhara, Sudhakar 提交于
      DA850/OMAP-L138 EMAC driver uses random mac address instead of
      a fixed one because the mac address is not stuffed into EMAC
      platform data.
      
      This patch provides a function which reads the mac address
      stored in SPI flash (registered as MTD device) and populates the
      EMAC platform data. The function which reads the mac address is
      registered as a callback which gets called upon addition of MTD
      device.
      
      NOTE: In case the MAC address stored in SPI flash is erased, follow
      the instructions at [1] to restore it.
      
      [1] http://processors.wiki.ti.com/index.php/GSG:_OMAP-L138_DVEVM_Additional_Procedures#Restoring_MAC_address_on_SPI_Flash
      
      Modifications in v2:
      Guarded registering the mtd_notifier only when MTD is enabled.
      Earlier this was handled using mtd_has_partitions() call, but
      this has been removed in Linux v3.0.
      
      Modifications in v3:
      a. Guarded da850_evm_m25p80_notify_add() function and
         da850evm_spi_notifier structure with CONFIG_MTD macros.
      b. Renamed da850_evm_register_mtd_user() function to
         da850_evm_setup_mac_addr() and removed the struct mtd_notifier
         argument to this function.
      c. Passed the da850evm_spi_notifier structure to register_mtd_user()
         function.
      
      Modifications in v4:
      Moved the da850_evm_setup_mac_addr() function within the first
      CONFIG_MTD ifdef construct.
      Signed-off-by: NRajashekhara, Sudhakar <sudhakar.raj@ti.com>
      Signed-off-by: NSekhar Nori <nsekhar@ti.com>
      Cc: stable@kernel.org
      810198bc
  6. 22 8月, 2011 5 次提交
  7. 12 8月, 2011 2 次提交
  8. 08 8月, 2011 1 次提交
  9. 20 7月, 2011 1 次提交
  10. 19 7月, 2011 3 次提交
  11. 12 7月, 2011 1 次提交
    • I
      arm: davinci: Fix low level gpio irq handlers' argument · f299bb95
      Ido Yariv 提交于
      Commit 74164016 ("arm: davinci: Fix fallout from generic irq chip
      conversion") introduced a bug, causing low level interrupt handlers to
      get a bogus irq number as an argument. The gpio irq handler falsely
      assumes that the handler data is the irq base number and that is no
      longer true.
      
      Set the irq handler data to be a pointer to the corresponding gpio
      controller. The chained irq handler can then use it to extract both the
      irq base number and the gpio registers structure.
      Signed-off-by: NIdo Yariv <ido@wizery.com>
      CC: Thomas Gleixner <tglx@linutronix.de>
      [nsekhar@ti.com: renamed "ctl" to "d", simplified indexing logic for chips and
      took care of odd bank handling in irq handler]
      Signed-off-by: NSekhar Nori <nsekhar@ti.com>
      f299bb95
  12. 08 7月, 2011 5 次提交
    • S
      davinci: da850 evm: register SATA device · 8bb2c481
      Sekhar Nori 提交于
      Register the platform device for SATA interface
      present on the DA850/OMAP-L138/AM18x EVM.
      Signed-off-by: NSekhar Nori <nsekhar@ti.com>
      8bb2c481
    • S
      davinci: da850: add support for SATA interface · cbb2c961
      Sekhar Nori 提交于
      Add support for SATA controller on the
      DA850/OMAP-L138/AM18x devices.
      
      The patch adds the necessary clocks, platform
      resources and a routine to initialize the SATA
      controller.
      
      The PHY configuration in this patch is
      courtesy the work done by Zegeye Alemu,
      Swaminathan and Mansoor Ahamed from TI.
      
      While testing this patch, enable port multiplier
      support iff you are actually using one. The
      reasons of this behaviour are discussed
      here: http://patchwork.ozlabs.org/patch/78163/
      
      ChangeLog:
      v3:
      Removed fields which were being initialized
      to zero in PHY configuration. Moved SATA base
      address definition to the top of the file to
      make it inline with what is done for the rest
      of the modules.
      v2:
      Addressed comments from Sergei. Removed unnecessary
      braces and removed unnecessary else after goto.
      Signed-off-by: NSekhar Nori <nsekhar@ti.com>
      cbb2c961
    • S
      davinci: enable forced transitions on PSC · aad70de2
      Sekhar Nori 提交于
      Some DaVinci modules like the SATA on DA850
      need forced module state transitions.
      
      Define a "force" flag which can be passed to
      the PSC config function to enable it to make
      forced transitions.
      
      Forced transitions shouldn't normally be attempted,
      unless the TRM explicitly specifies its usage.
      
      ChangeLog:
      v2:
      Modified to take care of the fact that
      davinci_psc_config() now takes the flags
      directly.
      Signed-off-by: NSekhar Nori <nsekhar@ti.com>
      aad70de2
    • S
      davinci: pass clock flags to davinci_psc_config() · a51ca38b
      Sekhar Nori 提交于
      Enabling or disabling a PSC can take certain
      modifiers like "disable with reset", "force
      enable/disable" and "enable/disable with local
      reset" apart from the regular clock gating
      functionality.
      
      Pass a flags argument to davinci_psc_config()
      so these variations can be supported there.
      
      At this time only "disable with reset" is
      supported, but other functionality will be
      added in subsequent patches.
      Signed-off-by: NSekhar Nori <nsekhar@ti.com>
      a51ca38b
    • S
      genirq: replace irq_gc_ack() with {set,clr}_bit variants (fwd) · 659fb32d
      Simon Guinot 提交于
      This fixes a regression introduced by e59347a1 "arm: orion:
      Use generic irq chip".
      
      Depending on the device, interrupts acknowledgement is done by setting
      or by clearing a dedicated register. Replace irq_gc_ack() with some
      {set,clr}_bit variants allows to handle both cases.
      
      Note that this patch affects the following SoCs: Davinci, Samsung and
      Orion. Except for this last, the change is minor: irq_gc_ack() is just
      renamed into irq_gc_ack_set_bit().
      
      For the Orion SoCs, the edge GPIO interrupts support is currently
      broken. irq_gc_ack() try to acknowledge a such interrupt by setting
      the corresponding cause register bit. The Orion GPIO device expect the
      opposite. To fix this issue, the irq_gc_ack_clr_bit() variant is used.
      
      Tested on Network Space v2.
      Reported-by: NJoey Oravec <joravec@drewtech.com>
      Signed-off-by: NSimon Guinot <sguinot@lacie.com>
      Signed-off-by: NArnd Bergmann <arnd@arndb.de>
      659fb32d
  13. 07 7月, 2011 1 次提交
  14. 06 7月, 2011 2 次提交
  15. 28 6月, 2011 1 次提交
  16. 22 6月, 2011 1 次提交
    • A
      net: remove mm.h inclusion from netdevice.h · b7f080cf
      Alexey Dobriyan 提交于
      Remove linux/mm.h inclusion from netdevice.h -- it's unused (I've checked manually).
      
      To prevent mm.h inclusion via other channels also extract "enum dma_data_direction"
      definition into separate header. This tiny piece is what gluing netdevice.h with mm.h
      via "netdevice.h => dmaengine.h => dma-mapping.h => scatterlist.h => mm.h".
      Removal of mm.h from scatterlist.h was tried and was found not feasible
      on most archs, so the link was cutoff earlier.
      
      Hope people are OK with tiny include file.
      
      Note, that mm_types.h is still dragged in, but it is a separate story.
      Signed-off-by: NAlexey Dobriyan <adobriyan@gmail.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      b7f080cf
  17. 08 6月, 2011 2 次提交
  18. 24 5月, 2011 1 次提交
  19. 12 5月, 2011 3 次提交
  20. 07 5月, 2011 1 次提交