1. 30 10月, 2013 1 次提交
  2. 29 10月, 2013 1 次提交
  3. 22 10月, 2013 2 次提交
  4. 21 10月, 2013 1 次提交
  5. 20 10月, 2013 6 次提交
  6. 19 10月, 2013 1 次提交
  7. 18 10月, 2013 1 次提交
    • J
      iio: at91: introduce touch screen support in iio adc driver · c8b11de0
      Josh Wu 提交于
      AT91 ADC hardware integrate touch screen support. So this patch add touch
      screen support for at91 adc iio driver.
      To enable touch screen support in adc, you need to add the dt parameters:
        1. which type of touch are used? (4 or 5 wires), sample period time.
        2. correct pressure detect threshold value.
      
      In the meantime, since touch screen will use a interal period trigger of adc,
      so it is conflict to other hardware triggers. Driver will disable the hardware
      trigger support if touch screen is enabled.
      
      This driver has been tested in AT91SAM9X5-EK and SAMA5D3x-EK.
      Signed-off-by: NJosh Wu <josh.wu@atmel.com>
      Acked-by: NDmitry Torokhov <dmitry.torokhov@gmail.com>
      CC: devicetree@vger.kernel.org
      Signed-off-by: NJonathan Cameron <jic23@kernel.org>
      c8b11de0
  8. 17 10月, 2013 1 次提交
  9. 16 10月, 2013 7 次提交
  10. 15 10月, 2013 3 次提交
  11. 14 10月, 2013 3 次提交
    • L
      ARM: integrator: deactivate timer0 on the Integrator/CP · 29114fd7
      Linus Walleij 提交于
      This fixes a long-standing Integrator/CP regression from
      commit 870e2928
      "ARM: integrator-cp: convert use CLKSRC_OF for timer init"
      
      When this code was introduced, the both aliases pointing the
      system to use timer1 as primary (clocksource) and timer2
      as secondary (clockevent) was ignored, and the system would
      simply use the first two timers found as clocksource and
      clockevent.
      
      However this made the system timeline accelerate by a
      factor x25, as it turns out that the way the clocking
      actually works (totally undocumented and found after some
      trial-and-error) is that timer0 runs @ 25MHz and timer1
      and timer2 runs @ 1MHz. Presumably this divider setting
      is a boot-on default and configurable albeit the way to
      configure it is not documented.
      
      So as a quick fix to the problem, let's mark timer0 as
      disabled, so the code will chose timer1 and timer2 as it
      used to.
      
      This also deletes the two aliases for the primary and
      secondary timer as they have been superceded by the
      auto-selection
      
      Cc: stable@vger.kernel.org
      Cc: Rob Herring <rob.herring@calxeda.com>
      Cc: Russell King <linux@arm.linux.org.uk>
      Signed-off-by: NLinus Walleij <linus.walleij@linaro.org>
      Signed-off-by: NOlof Johansson <olof@lixom.net>
      29114fd7
    • A
      ARM: 7851/1: check for number of arguments in syscall_get/set_arguments() · 3c1532df
      AKASHI Takahiro 提交于
      In ftrace_syscall_enter(),
          syscall_get_arguments(..., 0, n, ...)
              if (i == 0) { <handle ORIG_r0> ...; n--;}
              memcpy(..., n * sizeof(args[0]));
      If 'number of arguments(n)' is zero and 'argument index(i)' is also zero in
      syscall_get_arguments(), none of arguments should be copied by memcpy().
      Otherwise 'n--' can be a big positive number and unexpected amount of data
      will be copied. Tracing system calls which take no argument, say sync(void),
      may hit this case and eventually make the system corrupted.
      This patch fixes the issue both in syscall_get_arguments() and
      syscall_set_arguments().
      
      Cc: <stable@vger.kernel.org>
      Acked-by: NWill Deacon <will.deacon@arm.com>
      Signed-off-by: NAKASHI Takahiro <takahiro.akashi@linaro.org>
      Signed-off-by: NWill Deacon <will.deacon@arm.com>
      Signed-off-by: NRussell King <rmk+kernel@arm.linux.org.uk>
      3c1532df
    • Y
      ARM: exynos: dts: Update 5250 arch timer node with clock frequency · 4d594dd3
      Yuvaraj Kumar C D 提交于
      Without the "clock-frequency" property in arch timer node, could able
      to see the below crash dump.
      
      [<c0014e28>] (unwind_backtrace+0x0/0xf4) from [<c0011808>] (show_stack+0x10/0x14)
      [<c0011808>] (show_stack+0x10/0x14) from [<c036ac1c>] (dump_stack+0x7c/0xb0)
      [<c036ac1c>] (dump_stack+0x7c/0xb0) from [<c01ab760>] (Ldiv0_64+0x8/0x18)
      [<c01ab760>] (Ldiv0_64+0x8/0x18) from [<c0062f60>] (clockevents_config.part.2+0x1c/0x74)
      [<c0062f60>] (clockevents_config.part.2+0x1c/0x74) from [<c0062fd8>] (clockevents_config_and_register+0x20/0x2c)
      [<c0062fd8>] (clockevents_config_and_register+0x20/0x2c) from [<c02b8e8c>] (arch_timer_setup+0xa8/0x134)
      [<c02b8e8c>] (arch_timer_setup+0xa8/0x134) from [<c04b47b4>] (arch_timer_init+0x1f4/0x24c)
      [<c04b47b4>] (arch_timer_init+0x1f4/0x24c) from [<c04b40d8>] (clocksource_of_init+0x34/0x58)
      [<c04b40d8>] (clocksource_of_init+0x34/0x58) from [<c049ed8c>] (time_init+0x20/0x2c)
      [<c049ed8c>] (time_init+0x20/0x2c) from [<c049b95c>] (start_kernel+0x1e0/0x39c)
      
      THis is because the Exynos u-boot, for example on the Chromebooks, doesn't set
      up the CNTFRQ register as expected by arch_timer. Instead, we have to specify
      the frequency in the device tree like this.
      Signed-off-by: NYuvaraj Kumar C D <yuvaraj.cd@samsung.com>
      [olof: Changed subject, added comment, elaborated on commit message]
      Signed-off-by: NOlof Johansson <olof@lixom.net>
      4d594dd3
  12. 12 10月, 2013 3 次提交
  13. 11 10月, 2013 1 次提交
  14. 09 10月, 2013 5 次提交
    • P
      ARM: OMAP2: RX-51: Add missing max_current to rx51_lp5523_led_config · d1f1ca36
      Pali Rohár 提交于
      File drivers/leds/leds-lp55xx-common.c refuse to change led_current sysfs
      attribute if value is higher than max_current specified in board file. By default
      global C variables are zero, so changing always failed. This patch adding missing
      max_current and setting it to max safe value 100 (10 mA).
      
      It is unclear which commit exactly caused this regression as the lp5523
      driver was broken and was hiding the platform data breakage. Now
      the driver is fixed so this should be fixed as well.
      Signed-off-by: NPali Rohár <pali.rohar@gmail.com>
      Signed-off-by: NJoerg Reisenweber <joerg@openmoko.org>
      [tony@atomide.com: updated comments to describe regression]
      Signed-off-by: NTony Lindgren <tony@atomide.com>
      d1f1ca36
    • M
      ARM: mach-omap1: Fix omap1510_fpga_init_irq() implicit declarations. · 8ff875e7
      Majunath Goudar 提交于
      This patch adds a omap1510_fpga_init_irq() inline dummy implementations
      in arch/arm/mach-omap1/common.h. Without this patch,build system can
      lead to issues. This was discovered during randconfig testing,in which
      other than CONFIG_ARCH_OMAP15XX was enabled the leading to the following
      error:
      
      CC      arch/arm/mach-omap1/board-innovator.o
      arch/arm/mach-omap1/board-innovator.c: In function ‘innovator_init’:
      arch/arm/mach-omap1/board-innovator.c:377:3: error: implicit declaration of
      function ‘omap1510_fpga_init_irq’ [-Werror=implicit-function-declaration]
      cc1: some warnings being treated as errors
      make[1]: *** [arch/arm/mach-omap1/board-innovator.o] Error 1
      make: *** [arch/arm/mach-omap1] Error 2
      Signed-off-by: NManjunath Goudar <csmanjuvijay@gmail.com>
      Cc: Tony Lindgren <tony@atomide.com>
      Cc: Russell King <linux@arm.linux.org.uk>
      Cc: linux-arm-kernel@lists.infradead.org
      Cc: linux-kernel@vger.kernel.org
      Cc: linux-omap@vger.kernel.org
      Signed-off-by: NTony Lindgren <tony@atomide.com>
      8ff875e7
    • S
      ARM: mach-omap2: board-generic: fix undefined symbol · 0b8214fe
      Simon Barth 提交于
      Since dra7 reuses the  function 'omap5_realtime_timer_init' in
      arch/arm/mach-omap2/board-generic.c as timer init function, it has to be
      built for this SoC as well.
      Signed-off-by: NSimon Barth <Simon.Pe.Barth@gmail.com>
      Signed-off-by: NTony Lindgren <tony@atomide.com>
      0b8214fe
    • T
      ARM: dts: Fix pinctrl mask for omap3 · d623a0e1
      Tony Lindgren 提交于
      The wake-up interrupt bit is available on omap3/4/5 processors
      unlike what we claim. Without fixing it we cannot use it on
      omap3 and the system configured for wake-up events will just
      hang on wake-up.
      
      Cc: Grygorii Strashko <grygorii.strashko@ti.com>
      Cc: Benoît Cousson <bcousson@baylibre.com>
      Cc: devicetree@vger.kernel.org
      Signed-off-by: NTony Lindgren <tony@atomide.com>
      d623a0e1
    • N
      ARM: OMAP3: Fix hardware detection for omap3630 when booted with device tree · 016c12d2
      Nishanth Menon 提交于
      SoC family definitions at the moment are reactive to board needs
      as a result, beagle-xm would matchup with ti,omap3 which invokes
      omap3430_init_early instead of omap3630_init_early. Obviously, this is
      the wrong behavior.
      
      With clock node dts conversion, we get the following warnings before
      system hangs as a result and 3630 based platforms fails to boot
      (uart4 clocks are only present in OMAP3630 and not present in
      OMAP3430):
      
      ...
      omap_hwmod: uart4: cannot clk_get main_clk uart4_fck
      omap_hwmod: uart4: cannot _init_clocks
      
      WARNING: CPU: 0 PID: 1 at arch/arm/mach-omap2/omap_hwmod.c:2434
      _init+0x6c/0x80()
      omap_hwmod: uart4: couldn't init clocks
      ...
      
      WARNING: CPU: 0 PID: 1 at arch/arm/mach-omap2/omap_hwmod.c:2126
      _enable+0x254/0x280()
      omap_hwmod: timer12: enabled state can only be entered from
      initialized, idle, or disabled state
      ...
      
      WARNING: CPU: 0 PID: 46 at arch/arm/mach-omap2/omap_hwmod.c:2224
      _idle+0xd4/0xf8()
      omap_hwmod: timer12: idle state can only be entered from enabled state
      
      WARNING: CPU: 0 PID: 1 at arch/arm/mach-omap2/omap_hwmod.c:2126
      _enable+0x254/0x280()
      omap_hwmod: uart4: enabled state can only be entered from
      initialized, idle, or disabled state
      
      So, add specific compatiblity for 3630 to allow match for Beagle-XM
      platform.
      Signed-off-by: NNishanth Menon <nm@ti.com>
      [tony@atomide.com: left out ti,omap343x, updated comments]
      Signed-off-by: NTony Lindgren <tony@atomide.com>
      016c12d2
  15. 08 10月, 2013 4 次提交
    • J
      ARM: EXYNOS: remove unnecessary header inclusions from exynos4/5 dt machine file · cbee750e
      Jingoo Han 提交于
      mach-exynos{4,5}-dt.c include several header files that are not
      really used.
      Signed-off-by: NJingoo Han <jg1.han@samsung.com>
      Signed-off-by: NKukjin Kim <kgene.kim@samsung.com>
      cbee750e
    • A
      net: fix unsafe set_memory_rw from softirq · d45ed4a4
      Alexei Starovoitov 提交于
      on x86 system with net.core.bpf_jit_enable = 1
      
      sudo tcpdump -i eth1 'tcp port 22'
      
      causes the warning:
      [   56.766097]  Possible unsafe locking scenario:
      [   56.766097]
      [   56.780146]        CPU0
      [   56.786807]        ----
      [   56.793188]   lock(&(&vb->lock)->rlock);
      [   56.799593]   <Interrupt>
      [   56.805889]     lock(&(&vb->lock)->rlock);
      [   56.812266]
      [   56.812266]  *** DEADLOCK ***
      [   56.812266]
      [   56.830670] 1 lock held by ksoftirqd/1/13:
      [   56.836838]  #0:  (rcu_read_lock){.+.+..}, at: [<ffffffff8118f44c>] vm_unmap_aliases+0x8c/0x380
      [   56.849757]
      [   56.849757] stack backtrace:
      [   56.862194] CPU: 1 PID: 13 Comm: ksoftirqd/1 Not tainted 3.12.0-rc3+ #45
      [   56.868721] Hardware name: System manufacturer System Product Name/P8Z77 WS, BIOS 3007 07/26/2012
      [   56.882004]  ffffffff821944c0 ffff88080bbdb8c8 ffffffff8175a145 0000000000000007
      [   56.895630]  ffff88080bbd5f40 ffff88080bbdb928 ffffffff81755b14 0000000000000001
      [   56.909313]  ffff880800000001 ffff880800000000 ffffffff8101178f 0000000000000001
      [   56.923006] Call Trace:
      [   56.929532]  [<ffffffff8175a145>] dump_stack+0x55/0x76
      [   56.936067]  [<ffffffff81755b14>] print_usage_bug+0x1f7/0x208
      [   56.942445]  [<ffffffff8101178f>] ? save_stack_trace+0x2f/0x50
      [   56.948932]  [<ffffffff810cc0a0>] ? check_usage_backwards+0x150/0x150
      [   56.955470]  [<ffffffff810ccb52>] mark_lock+0x282/0x2c0
      [   56.961945]  [<ffffffff810ccfed>] __lock_acquire+0x45d/0x1d50
      [   56.968474]  [<ffffffff810cce6e>] ? __lock_acquire+0x2de/0x1d50
      [   56.975140]  [<ffffffff81393bf5>] ? cpumask_next_and+0x55/0x90
      [   56.981942]  [<ffffffff810cef72>] lock_acquire+0x92/0x1d0
      [   56.988745]  [<ffffffff8118f52a>] ? vm_unmap_aliases+0x16a/0x380
      [   56.995619]  [<ffffffff817628f1>] _raw_spin_lock+0x41/0x50
      [   57.002493]  [<ffffffff8118f52a>] ? vm_unmap_aliases+0x16a/0x380
      [   57.009447]  [<ffffffff8118f52a>] vm_unmap_aliases+0x16a/0x380
      [   57.016477]  [<ffffffff8118f44c>] ? vm_unmap_aliases+0x8c/0x380
      [   57.023607]  [<ffffffff810436b0>] change_page_attr_set_clr+0xc0/0x460
      [   57.030818]  [<ffffffff810cfb8d>] ? trace_hardirqs_on+0xd/0x10
      [   57.037896]  [<ffffffff811a8330>] ? kmem_cache_free+0xb0/0x2b0
      [   57.044789]  [<ffffffff811b59c3>] ? free_object_rcu+0x93/0xa0
      [   57.051720]  [<ffffffff81043d9f>] set_memory_rw+0x2f/0x40
      [   57.058727]  [<ffffffff8104e17c>] bpf_jit_free+0x2c/0x40
      [   57.065577]  [<ffffffff81642cba>] sk_filter_release_rcu+0x1a/0x30
      [   57.072338]  [<ffffffff811108e2>] rcu_process_callbacks+0x202/0x7c0
      [   57.078962]  [<ffffffff81057f17>] __do_softirq+0xf7/0x3f0
      [   57.085373]  [<ffffffff81058245>] run_ksoftirqd+0x35/0x70
      
      cannot reuse jited filter memory, since it's readonly,
      so use original bpf insns memory to hold work_struct
      
      defer kfree of sk_filter until jit completed freeing
      
      tested on x86_64 and i386
      Signed-off-by: NAlexei Starovoitov <ast@plumgrid.com>
      Acked-by: NEric Dumazet <edumazet@google.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      d45ed4a4
    • S
      ARM: tegra: fix ARCH_TEGRA_114_SOC select sort order · b6bda4e0
      Stephen Warren 提交于
      All the other select statements are alphabetically sorted. Fix the one
      remaining escape.
      Signed-off-by: NStephen Warren <swarren@nvidia.com>
      b6bda4e0
    • U
      ARM: drop explicit selection of HAVE_CLK and CLKDEV_LOOKUP · 07d8a49c
      Uwe Kleine-König 提交于
      CLKDEV_LOOKUP selects HAVE_CLK and COMMON_CLK selects CLKDEV_LOOKUP. So
      all symbols that select at least two of these symbols can be simplified.
      
      For imx, omap2 and ux500 some rearrangements were necessary before the
      simplification.
      Acked-by: NTony Lindgren <tony@atomide.com>
      Acked-by: NStephen Boyd <sboyd@codeaurora.org>
      Acked-by: NDinh Nguyen <dinguyen@altera.com>
      Acked-by: NNicolas Ferre <nicolas.ferre@atmel.com>
      Acked-by: NPawel Moll <pawel.moll@arm.com>
      Acked-by: NLinus Walleij <linus.walleij@linaro.org>
      Signed-off-by: NUwe Kleine-König <u.kleine-koenig@pengutronix.de>
      Signed-off-by: NOlof Johansson <olof@lixom.net>
      07d8a49c