25 Jun, 2012

3 commits

  • Coult -> Could

    Signed-off-by: Linus Torvalds

    Anatol Pomozov
     
  • Pull KVM fixes from Avi Kivity:
    "Fixing a scheduling-while-atomic bug in the ppc code, and a bug which
    allowed pci bridges to be assigned to guests."

    * git://git.kernel.org/pub/scm/virt/kvm/kvm:
    KVM: PPC: Book3S HV: Drop locks around call to kvmppc_pin_guest_page
    KVM: Fix PCI header check on device assignment

    Linus Torvalds
     
  • Pull ARM SoC fixes from Olof Johansson:
    "Nothing very controversial in here. Most of the fixes are for OMAP
    this time around, with some orion/kirkwood and a tegra patch mixed in."

    * tag 'fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc:
    ARM: Orion: Fix Virtual/Physical mixup with watchdog
    ARM: Kirkwood: clk_register_gate_fn: add fn assignment
    ARM: Orion5x - Restore parts of io.h, with rework
    ARM: OMAP4: hwmod data: Force HDMI in no-idle while enabled
    ARM: OMAP2+: mux: fix sparse warning
    ARM: OMAP2+: CM: increase the module disable timeout
    ARM: OMAP4: clock data: add clockdomains for clocks used as main clocks
    ARM: OMAP4: hwmod data: fix 32k sync timer idle modes
    ARM: OMAP4+: hwmod: fix issue causing IPs not going back to Smart-Standby
    ARM: OMAP: Fix Beagleboard DVI reset gpio
    arm/dts: OMAP2: Fix interrupt controller binding
    ARM: OMAP2: Fix tusb6010 GPIO interrupt for n8x0
    ARM: OMAP2+: Fix MUSB ifdefs for platform init code
    ARM: tegra: make tegra_cpu_reset_handler_enable() __init
    ARM: OMAP: PM: Lock clocks list while generating summary
    ARM: iconnect: Remove include of removed linux/spi/orion_spi.h

    Linus Torvalds
     

24 Jun, 2012

5 commits

  • The orion watchdog is expecting to be passed the physcial address of
    the hardware, and will ioremap() it to give a virtual address it will
    use as the base address for the hardware. However, when creating the
    platform resource record, a virtual address was being used.

    Add the necassary #define's so we can pass the physical address as
    expected.

    Tested on Kirkwood and Orion5x.

    Cc: stable
    Signed-off-by: Andrew Lunn
    Signed-off-by: Olof Johansson

    Andrew Lunn
     
  • In commit:
    98d9986 ARM: Kirkwood: Replace clock gating
    the kirkwood clock gating has been reworked. A custom variant of
    clock gating, that calls a custom function before gating the clock
    off, has been introduced. However in clk_register_gate_fn() this
    custom function "fn" is never assigned.

    This patch adds the missing fn assignment.

    Cc: stable
    Signed-off-by: Marc Kleine-Budde
    Tested-by: Andrew Lunn
    Acked-by: Andrew Lunn
    Signed-off-by: Olof Johansson

    Marc Kleine-Budde
     
  • Commit 4d5fc58dbe34b78157c05b319669bb3e064ba8bd (ARM: remove bunch of
    now unused mach/io.h files) removed the orion5x io.h. Unfortunately,
    this is still needed for the definition of IO_SPACE_LIMIT which
    overrides the default 64K. All Orion based systems have 1Mbyte of IO
    space per PCI[e] bus, and try to request_resource() this size. Orion5x
    has two such PCI buses.

    It is likely that the original, removed version, was broken. This
    version might be less broken. However, it has not been tested on
    hardware with a PCI card, let alone hardware with a PCI card with IO
    capabilities.

    Signed-off-by: Andrew Lunn
    Acked-by: Rob Herring
    Signed-off-by: Olof Johansson

    Andrew Lunn
     
  • …git/pjw/omap-pending into fixes

    From Paul Walmsley (as per Tony Lindgren's request):
    "Some uncontroversial OMAP clock, hwmod, and compiler warning fixes for 3.5-rc"

    * tag 'omap-fixes-a-for-3.5rc' of git://git.kernel.org/pub/scm/linux/kernel/git/pjw/omap-pending:
    ARM: OMAP4: hwmod data: Force HDMI in no-idle while enabled
    ARM: OMAP2+: mux: fix sparse warning
    ARM: OMAP2+: CM: increase the module disable timeout
    ARM: OMAP4: clock data: add clockdomains for clocks used as main clocks
    ARM: OMAP4: hwmod data: fix 32k sync timer idle modes
    ARM: OMAP4+: hwmod: fix issue causing IPs not going back to Smart-Standby
    ARM: OMAP: PM: Lock clocks list while generating summary

    Olof Johansson
     
  • …/git/tmlind/linux-omap into fixes

    From Tony Lindgren:
    "Here are a few fixes with the biggest one being fix for Beagle DVI
    reset. All of them are regression fixes, except for the missing omap2
    interrupt controller binding that somehow got missed earlier."

    * tag 'omap-fixes-for-v3.5-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/tmlind/linux-omap:
    ARM: OMAP: Fix Beagleboard DVI reset gpio
    arm/dts: OMAP2: Fix interrupt controller binding
    ARM: OMAP2: Fix tusb6010 GPIO interrupt for n8x0
    ARM: OMAP2+: Fix MUSB ifdefs for platform init code

    Olof Johansson
     

22 Jun, 2012

6 commits

  • As per the OMAP4 documentation, audio over HDMI must be transmitted in
    no-idle mode. This patch adds the HWMOD_SWSUP_SIDLE so that omap_hwmod uses
    no-idle/force-idle settings instead of smart-idle mode.

    This is required as the DSS interface clock is used as functional clock
    for the HDMI wrapper audio FIFO. If no-idle mode is not used, audio could
    be choppy, have bad quality or not be audible at all.

    Signed-off-by: Ricardo Neri
    [b-cousson@ti.com: Update the subject and align the .flags
    location with the script template]
    Signed-off-by: Benoit Cousson
    Signed-off-by: Paul Walmsley

    Ricardo Neri
     
  • Commit bbd707acee279a61177a604822db92e8164d00db ("ARM: omap2: use
    machine specific hook for late init") resulted in the addition of this
    sparse warning:

    arch/arm/mach-omap2/mux.c:791:12: warning: symbol 'omap_mux_late_init' was not declared. Should it be static?

    Fix by including the header file containing the prototype.

    Signed-off-by: Paul Walmsley
    Cc: Shawn Guo
    Cc: Tony Lindgren

    Paul Walmsley
     
  • Increase the timeout for disabling an IP block to five milliseconds.
    This is to handle the usb_host_fs idle latency, which takes almost
    four milliseconds after a host controller reset.

    This is the second of two patches needed to resolve the following
    boot warning:

    omap_hwmod: usb_host_fs: _wait_target_disable failed

    Thanks to Sergei Shtylyov for finding
    an unrelated hunk in a previous version of this patch.

    Signed-off-by: Paul Walmsley
    Cc: Sergei Shtylyov
    Cc: Tero Kristo

    Paul Walmsley
     
  • Until the OMAP4 code is converted to disable the use of the clock
    framework-based clockdomain enable/disable sequence, any clock used as
    a hwmod main_clk must have a clockdomain associated with it. This
    patch populates some clock structure clockdomain names to resolve the
    following warnings during kernel init:

    omap_hwmod: dpll_mpu_m2_ck: missing clockdomain for dpll_mpu_m2_ck.
    omap_hwmod: trace_clk_div_ck: missing clockdomain for trace_clk_div_ck.
    omap_hwmod: l3_div_ck: missing clockdomain for l3_div_ck.
    omap_hwmod: ddrphy_ck: missing clockdomain for ddrphy_ck.

    Signed-off-by: Paul Walmsley
    Cc: Rajendra Nayak
    Cc: Benoît Cousson

    Paul Walmsley
     
  • The 32k sync timer IP block target idle modes in the hwmod data are
    incorrect. The IP block does not support any smart-idle modes.
    Update the data to reflect the correct modes.

    This problem was initially identified and a diff fragment posted to
    the lists by Benoît Cousson . A patch description
    bug in the first version was also identified by Benoît.

    Signed-off-by: Paul Walmsley
    Cc: Benoît Cousson
    Cc: Tero Kristo

    Paul Walmsley
     
  • If an IP is configured in Smart-Standby-Wakeup, when disabling wakeup feature the
    IP will not go back to Smart-Standby, but will remain in Smart-Standby-Wakeup.

    Signed-off-by: Djamil Elaidi
    Signed-off-by: Paul Walmsley

    Djamil Elaidi
     

21 Jun, 2012

11 commits

  • Pull driver core and printk fixes from Greg Kroah-Hartman:
    "Here are some fixes for 3.5-rc4 that resolve the kmsg problems that
    people have reported showing up after the printk and kmsg changes went
    into 3.5-rc1. There are also a smattering of other tiny fixes for the
    extcon and hyper-v drivers that people have reported.

    Signed-off-by: Greg Kroah-Hartman "

    * tag 'driver-core-3.5-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core:
    extcon: max8997: Add missing kfree for info->edev in max8997_muic_remove()
    extcon: Set platform drvdata in gpio_extcon_probe() and fix irq leak
    extcon: Fix wrong index in max8997_extcon_cable[]
    kmsg - kmsg_dump() fix CONFIG_PRINTK=n compilation
    printk: return -EINVAL if the message len is bigger than the buf size
    printk: use mutex lock to stop syslog_seq from going wild
    kmsg - kmsg_dump() use iterator to receive log buffer content
    vme: change maintainer e-mail address
    Extcon: Don't try to create duplicate link names
    driver core: fixup reversed deferred probe order
    printk: Fix alignment of buf causing crash on ARM EABI
    Tools: hv: verify origin of netlink connector message

    Linus Torvalds
     
  • Pull serial driver fixes from Greg Kroah-Hartman:
    "Here are 3 patches resolving a boot regression (the mop500 fix), a
    build warning fix, and a kernel-doc fix. All tiny, but should go into
    the final 3.5 release.

    Signed-off-by: Greg Kroah-Hartman "

    * tag 'tty-3.5-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty:
    serial/amba-pl011: move custom pin control to driver
    serial: fix serial_txx9.c build warning/typo
    serial: fix kernel-doc warnings in 8250.c

    Linus Torvalds
     
  • * emailed from Andrew Morton : (21 patches)
    mm/memblock: fix overlapping allocation when doubling reserved array
    c/r: prctl: Move PR_GET_TID_ADDRESS to a proper place
    pidns: find_new_reaper() can no longer switch to init_pid_ns.child_reaper
    pidns: guarantee that the pidns init will be the last pidns process reaped
    fault-inject: avoid call to random32() if fault injection is disabled
    Viresh has moved
    get_maintainer: Fix --help warning
    mm/memory.c: fix kernel-doc warnings
    mm: fix kernel-doc warnings
    mm: correctly synchronize rss-counters at exit/exec
    mm, thp: print useful information when mmap_sem is unlocked in zap_pmd_range
    h8300: use the declarations provided by
    h8300: fix use of extinct _sbss and _ebss
    xtensa: use the declarations provided by
    xtensa: use "test -e" instead of bashism "test -a"
    xtensa: replace xtensa-specific _f{data,text} by _s{data,text}
    memcg: fix use_hierarchy css_is_ancestor oops regression
    mm, oom: fix and cleanup oom score calculations
    nilfs2: ensure proper cache clearing for gc-inodes
    thp: avoid atomic64_read in pmd_read_atomic for 32bit PAE
    ...

    Linus Torvalds
     
  • viresh.kumar@st.com email-id doesn't exist anymore as I have left the
    company. Replace ST's id with viresh.linux@gmail.com.

    It also updates .mailmap file to fix address for 'git shortlog'

    Signed-off-by: Viresh Kumar
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Viresh Kumar
     
  • Cleanups:
    - Include ,
    - Remove the (different) extern declarations,
    - Remove the no longer needed address-of ('&') operators,
    - Remove the superfluous casts, use proper printk formatting instead.

    Signed-off-by: Geert Uytterhoeven
    Cc: Yoshinori Sato
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Geert Uytterhoeven
     
  • Nowadays it should use __bss_start and __bss_stop

    Signed-off-by: Geert Uytterhoeven
    Cc: Yoshinori Sato
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Geert Uytterhoeven
     
  • Cleanups:
    - Include ,
    - Remove the (different) extern declarations,
    - Remove the no longer needed address-of ('&') operators,
    - Use %p to format pointer differences.

    Signed-off-by: Geert Uytterhoeven
    Cc: Chris Zankel
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Geert Uytterhoeven
     
  • On Ubuntu, /bin/sh is a symlink to dash, which does not support "test -a".
    This causes messages like

    test: 1: -a: unexpected operator
    test: 1: -a: unexpected operator

    and link failures like

    (.init.text+0x132): undefined reference to `platform_init'

    due to the appropriate platform code not being compiled.

    Signed-off-by: Geert Uytterhoeven
    Cc: Chris Zankel
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Geert Uytterhoeven
     
  • commit a2d063ac216c161 ("extable, core_kernel_data(): Make sure all archs
    define _sdata") missed xtensa. Xtensa does have a start of data marker,
    but calls it _fdata, causing

    kernel/built-in.o:(.text+0x964): undefined reference to `_sdata'

    _stext was already defined, but it was duplicated by _fdata.

    Signed-off-by: Geert Uytterhoeven
    Cc: Steven Rostedt
    Cc: Chris Zankel
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Geert Uytterhoeven
     
  • In the x86 32bit PAE CONFIG_TRANSPARENT_HUGEPAGE=y case while holding the
    mmap_sem for reading, cmpxchg8b cannot be used to read pmd contents under
    Xen.

    So instead of dealing only with "consistent" pmdvals in
    pmd_none_or_trans_huge_or_clear_bad() (which would be conceptually
    simpler) we let pmd_none_or_trans_huge_or_clear_bad() deal with pmdvals
    where the low 32bit and high 32bit could be inconsistent (to avoid having
    to use cmpxchg8b).

    The only guarantee we get from pmd_read_atomic is that if the low part of
    the pmd was found null, the high part will be null too (so the pmd will be
    considered unstable). And if the low part of the pmd is found "stable"
    later, then it means the whole pmd was read atomically (because after a
    pmd is stable, neither MADV_DONTNEED nor page faults can alter it anymore,
    and we read the high part after the low part).

    In the 32bit PAE x86 case, it is enough to read the low part of the pmdval
    atomically to declare the pmd as "stable" and that's true for THP and no
    THP, furthermore in the THP case we also have a barrier() that will
    prevent any inconsistent pmdvals to be cached by a later re-read of the
    *pmd.

    Signed-off-by: Andrea Arcangeli
    Cc: Jonathan Nieder
    Cc: Ulrich Obergfell
    Cc: Mel Gorman
    Cc: Hugh Dickins
    Cc: Larry Woodman
    Cc: Petr Matousek
    Cc: Rik van Riel
    Cc: Jan Beulich
    Cc: KOSAKI Motohiro
    Tested-by: Andrew Jones
    Cc:
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Andrea Arcangeli
     
  • Pull ARM fixes from Russell King:
    "This includes three MMCI changes - one to fix up the wrong version of
    the DT support patch which was merged, and two to make deferred
    probing work. It also includes a fix to the OMAP SPI driver which is
    causing a boot time warning.

    The remainder are very minor ARM fixes."

    * 'fixes' of git://git.linaro.org/people/rmk/linux-arm:
    SPI: fix over-eager devm_xxx() conversion
    ARM: 7427/1: mmc: mmci: Defer probe() in case of yet uninitialized GPIOs
    ARM: 7426/1: mmc: mmci: Remove wrong error handling of gpio 0
    ARM: 7425/1: extable: ensure fixup entries are 4-byte aligned
    ARM: 7421/1: bpf_jit: BPF_S_ANC_ALU_XOR_X support
    ARM: 7423/1: kprobes: run t32_simulate_ldr_literal() without insn slot
    ARM: 7422/1: mmc: mmci: Allocate platform memory during Device Tree boot

    Linus Torvalds
     

20 Jun, 2012

5 commits

  • Commit e813a55eb9c9bc6c8039fb16332cf43402125b30 ("OMAP: board-files:
    remove custom PD GPIO handling for DVI output") moved TFP410 chip's
    powerdown-gpio handling from the board files to the tfp410 driver. One
    gpio_request_one(powerdown-gpio, ...) was mistakenly left unremoved in
    the Beagle board file. This causes the tfp410 driver to fail to request
    the gpio on Beagle, causing the driver to fail and thus the DVI output
    doesn't work.

    This patch removes several boot errors from board-omap3beagle.c:

    - gpio_request: gpio--22 (DVI reset) status -22
    - Unable to get DVI reset GPIO

    There is a combination of leftover code and revision confusion.
    Additionally, xM support is currently a hack.

    For original Beagleboard this removes the double initialization of GPIO
    170, properly configures it as an output, and wraps the initialization
    in an if block so that xM does not attempt to request it.

    For Beagleboard xM it removes reference to GPIO 129 which was part
    of rev A1 and A2 designs, but never functioned. It then properly assigns
    beagle_dvi_device.reset_gpio in beagle_twl_gpio_setup and removes the
    hack of initializing it high. Additionally, it uses
    gpio_set_value_cansleep since this GPIO is connected through i2c.

    Unfortunately, there is no way to tell the difference between xM A2 and
    A3. However, GPIO 129 does not function on rev A1 and A2, and the TWL
    GPIO used on A3 and beyond is not used on rev A1 and A2, there are no
    problems created by this fix.

    Tested on Beagleboard-xM Rev C1 and Beagleboard Rev B4.

    Signed-off-by: Russ Dill
    Acked-by: Tomi Valkeinen
    Signed-off-by: Tony Lindgren

    Russ Dill
     
  • When booting with device-tree on an OMAP2420H4, the kernel is hanging when
    initialising the interrupts and following kernel dumps is seen ...

    [ 0.000000] ------------[ cut here ]------------
    [ 0.000000] WARNING: at arch/arm/mach-omap2/irq.c:271 omap_intc_of_init+0x50/0xb4()
    [ 0.000000] unable to get intc registers
    [ 0.000000] Modules linked in:
    [ 0.000000] [] (unwind_backtrace+0x0/0xf4) from [] (warn_slowpath_common+0x4c/0x64)
    [ 0.000000] [] (warn_slowpath_common+0x4c/0x64) from [] (warn_slowpath_fmt+0x30/0x40)
    [ 0.000000] [] (warn_slowpath_fmt+0x30/0x40) from [] (omap_intc_of_init+0x50/0xb4)
    [ 0.000000] [] (omap_intc_of_init+0x50/0xb4) from [] (of_irq_init+0x144/0x288)
    [ 0.000000] [] (of_irq_init+0x144/0x288) from [] (init_IRQ+0x14/0x1c)
    [ 0.000000] [] (init_IRQ+0x14/0x1c) from [] (start_kernel+0x198/0x304)
    [ 0.000000] [] (start_kernel+0x198/0x304) from [] (0x80008044)
    [ 0.000000] ---[ end trace 1b75b31a2719ed1c ]---
    [ 0.000000] of_irq_init: children remain, but no parents

    The OMAP2 interrupt controller binding is missing the number of interrupts and
    interrupt controller register address. Adding these fixes the problem.

    Signed-off-by: Jon Hunter
    Signed-off-by: Tony Lindgren

    Jon Hunter
     
  • Here's one more gpio_to_irq conversion that we missed
    earlier. Tested with n800 in gadget mode using USB_ETH.

    Cc: Felipe Balbi
    Signed-off-by: Tony Lindgren

    Tony Lindgren
     
  • Commit 62285963 (usb: musb: drop a gigantic amount of ifdeferry)
    got rid of a bunch of ifdefs in the MUSB code. Looks like the
    platform init code is still using these dropped defines though,
    which in many cases results the board defaulting always to host
    mode.

    Currently the situation is that USB_MUSB_HDRC is the main
    Kconfig option with additional USB_GADGET_MUSB_HDRC so only
    these two should be used to select between host and OTG mode.

    Fix the situation for omaps. The following users should fix the
    platform init code in a similar way:

    Dropped Kconfig option Current users

    USB_MUSB_OTG blackfin, davinci, not in Kconfigs
    USB_MUSB_PERIPHERAL davinci, not in Kconfigs
    USB_MUSB_HOST davinci, not in Kconfigs
    USB_MUSB_HDRC_HCD blackfin, not in Kconfigs
    USB_MUSB_OTG blackfin, not in Kconfigs

    Cc: Mike Frysinger
    Cc: Sekhar Nori
    Cc: linux-usb@vger.kernel.org
    Cc: Felipe Balbi
    Signed-off-by: Tony Lindgren

    Tony Lindgren
     
  • Pull sound fixes from Takashi Iwai:
    "Most of changes are fairly small and driver-specific.

    A remaining regression fix for USB-audio sync pipe check, a fix for
    HD-audio power-up sequence, fixes for ASoC pxa-ssp compile issues, and
    bunch of ASoC codec and trivial fix patches."

    * tag 'sound-3.5' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound:
    ALSA: 6fire: use NULL instead of 0 for pointer assignment
    ALSA: hda - Handle open while transitioning to D3.
    ALSA: snd-usb: make snd_usb_substream_capture_trigger static
    ALSA: snd-usb: fix sync pipe check
    ASoC: tegra+wm8903: turn of mic detect when card is removed
    ASoC: wm8996: Mark the CODEC as cache only when powering off on boot
    ASoC: wm8996: Move reset before the initial regulator disable
    ASoC: wm8996: Remove spurious regulator_bulk_free()
    ASoC: wm8904: Fix cache only management
    ASoC: wm8904: Fix GPIO and MICBIAS initialisation for regmap conversion
    ASoC: fix pxa-ssp compiling issue under mach-mmp
    ARM: MMP: add pxa910-ssp into ssp_id_table

    Linus Torvalds
     

19 Jun, 2012

2 commits

  • At the moment we call kvmppc_pin_guest_page() in kvmppc_update_vpa()
    with two spinlocks held: the vcore lock and the vcpu->vpa_update_lock.
    This is not good, since kvmppc_pin_guest_page() calls down_read() and
    get_user_pages_fast(), both of which can sleep. This bug was introduced
    in 2e25aa5f ("KVM: PPC: Book3S HV: Make virtual processor area
    registration more robust").

    This arranges to drop those spinlocks before calling
    kvmppc_pin_guest_page() and re-take them afterwards. Dropping the
    vcore lock in kvmppc_run_core() means we have to set the vcore_state
    field to VCORE_RUNNING before we drop the lock, so that other vcpus
    won't try to run this vcore.

    Signed-off-by: Paul Mackerras
    Acked-by: Alexander Graf
    Signed-off-by: Avi Kivity

    Paul Mackerras
     
  • This solves a section mismatch warning. I hadn't noticed this before,
    because my compiler was inlining tegra_cpu_reset_handler_enable() inside
    tegra_cpu_reset_handler_init(), which is already __init, but I switched
    compilers and it stopped doing that.

    Cc: # v3.4
    Signed-off-by: Stephen Warren
    Signed-off-by: Olof Johansson

    Stephen Warren
     

18 Jun, 2012

2 commits

  • Commit a53025724052b2b1edbc982a4a248784638f563d (OMAP: Add debugfs
    node to show the summary of all clocks) introduced clock summary,
    however, we are interested in seeing snapshot of the clock state, not
    in dynamically changing clock configurations as the data provided by
    clock summary will then be useless for debugging configuration
    issues. So, hold the common lock when dumping the clock summary.

    Cc: Paul Walmsley
    Cc: Tony Lindgren
    Signed-off-by: Todd Poynor
    [nm@ti.com: added commit message]
    Signed-off-by: Nishanth Menon
    [paul@pwsan.com: minor edits to commit message]
    Signed-off-by: Paul Walmsley

    Todd Poynor
     
  • v3.5-rc1 fails to build when DT and iconnect is enabled because of
    this now none existant include file.

    Also remove the other two SPI include files, which are not needed
    with the move to DT.

    Signed-off-by: Andrew Lunn
    Acked-by: Arnaud Patard
    Signed-off-by: Olof Johansson

    Andrew Lunn
     

17 Jun, 2012

6 commits

  • Pull ARM SoC fixes from Olof Johansson:
    "A bit larger set than usual, unfortunately -- I've been sitting on
    them longer than I meant to so it's really more like 2 -rc pull
    requests in one, volume-wise.

    Nearly everything is fixes for fallout from the merge window, or other
    fixes for bugs. The one exception is the highbank L2-enablement
    patch, but it was contained enough that I picked it up anyway:

    - i.MX fixes, mostly for clock and pinctrl changes
    - OMAP fixes, mostly PM-related
    - A patch to enable L2 on highbank
    - A couple of fixes for PXA, Kirkwood, Versatile"

    * tag 'fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc: (30 commits)
    ARM: Kirkwood: Fix clk problems modular ethernet driver
    arm: versatile: fix and enable PCI I/O space
    ARM: highbank: Add smc calls to enable/disable the L2
    ARM i.MX imx21ads: Fix overlapping static i/o mappings
    ARM: imx6: exit coherency when shutting down a cpu
    ARM: mx51: Add pinctrl_provide_dummies()
    ARM: mx31: Add pinctrl_provide_dummies()
    ARM: OMAP2+: Fix compile for CONFIG_TIDSPBRIDGE platform init code
    ARM: OMAP3: Fix omap3_l3_block_irq warning when CONFIG_BUG is not set
    ARM: OMAP: Fix MMC_OMAP build when only MMC_OMAP_HS is selected
    OMAP2+: UART: Add mechanism to probe uart pins and configure rx wakeup
    ARM: mmp: fix missing cascade_irq in irq handler
    ARM: dts: update memory size on brownstone
    ARM i.MX27 Visstrim M10: fix gpio handling.
    ARM i.MX53: Fix PLL4 base address
    ARM i.MX pllv2: make round_rate accurate
    ARM i.MX pllv2: use standard register set unconditionally
    ARM: OMAP: Fix lis3lv02d accelerometer to use gpio_to_irq
    ARM: imx: only call l2x0_init if it's available
    ARM: imx: only specify i2c device type once
    ...

    Linus Torvalds
     
  • When the ethernet driver was built as a module, it would lock the
    machine when loaded. At boot the ethernet clks are unused, so get
    turned off. Later, when the module is loaded, the probe function
    would access the hardware before the clock was restarted, and the
    machine would lock. It has also been determined that when the clk is
    turned off, the interface forgets its MAC address, which for most
    systems, is set by the boot loader.

    When the machine setup file creates a platform device for the
    interface, prepare and enable the clock for the interface. This will
    ensure it is not turned off. However, if the setup file only
    instantiates one platform device, the other will have its clk
    disabled, thus maybe saving a little power.

    Report-by: Simon Baatz
    Signed-off-by: Andrew Lunn
    Tested-by: Simon Baatz
    Signed-off-by: Olof Johansson

    Andrew Lunn
     
  • With commit 4d5fc58dbe34b (ARM: remove bunch of now unused
    mach/io.h files), the I/O space setup was completely broken on
    versatile. This patch fixes that and prepares for further
    I/O space clean-up.

    I/O space handling on the versatile platform is currently
    broken in multiple ways. Most importantly, the ports do
    not get mapped into the virtual address space at all.

    Also, there is some amount of confusion between PCI I/O
    space and other statically mapped MMIO registers in the
    platform code:

    * The __io_address() macro that is used to access the
    platform register maps to the same __io macro that gets
    used for I/O space.

    * The IO_SPACE_LIMIT is set to a value that is much larger
    than the total available space.

    * The I/O resource of the PCI bus is set to the physical
    address of the mapping, which is way outside of the
    actual I/O space limit as well as the address range that
    gets decoded by traditional PCI cards.

    * No attempt is made to stay outside of the ISA port range
    that some device drivers try access.

    * No resource gets requested as a child of ioport_resource,
    but an IORESOURCE_IO type mapping gets requested
    as a child of iomem_resource.

    This patch attempts to correct all of the above. This makes
    it possible to use virtio-pci based virtual devices as well
    as actual PCI cards including those with legacy ISA port
    ranges like VGA.

    Some of the issues seem to be duplicated on other platforms.

    Signed-off-by: Arnd Bergmann
    [rob: update to 3.5-rc2 and io.h cleanup related changes]
    Signed-off-by: Rob Herring
    Tested-by: Robert Schwebel
    Signed-off-by: Olof Johansson

    Arnd Bergmann
     
  • * 'fixes' of git://github.com/hzhuang1/linux:
    ARM: mmp: fix missing cascade_irq in irq handler
    ARM: dts: update memory size on brownstone

    Olof Johansson
     
  • Pull arch/tile update from Chris Metcalf:
    "This one-line bug fix unbreaks glibc robust mutexes (among other
    things no doubt), from code merged in during the 3.5 merge window but
    which we had been running internally at Tilera for almost a year."

    * 'stable' of git://git.kernel.org/pub/scm/linux/kernel/git/cmetcalf/linux-tile:
    tile: fix bug in get_user() for 4-byte values

    Linus Torvalds
     
  • The definition of 32-bit values in the 64-bit tilegx architecture is that
    they should be sign-extended regardless of whether they are considered
    signed or unsigned by the compiler. Accordingly, we need to use an
    "ld4s" rather than "ld4u" to load and sign-extend for get_user().

    This fixes glibc bug 14238 (see http://sourceware.org/bugzilla),
    introduced during the 3.5 merge window.

    Signed-off-by: Chris Metcalf

    Chris Metcalf