01 Jul, 2013

3 commits


24 Jun, 2013

1 commit

  • Add core MFD driver for the on-board PLD found on some Kontron embedded
    modules. The PLD device may provide functions like watchdog, GPIO, UART
    and I2C bus.

    The following modules are supported:
    * COMe-bIP#
    * COMe-bPC2 (ETXexpress-PC)
    * COMe-bSC# (ETXexpress-SC T#)
    * COMe-cCT6
    * COMe-cDC2 (microETXexpress-DC)
    * COMe-cPC2 (microETXexpress-PC)
    * COMe-mCT10
    * ETX-OH

    Originally-From: Michael Brunner
    Signed-off-by: Kevin Strasser
    Acked-by: Guenter Roeck
    Acked-by: Darren Hart
    Acked-by: Thomas Gleixner
    Signed-off-by: Samuel Ortiz

    Kevin Strasser
     

20 Jun, 2013

3 commits

  • The SMPS10 regulator is not presesnt in all the variants
    of the PALMAS PMIC family. Hence adding a feature to distingush
    between them.

    Signed-off-by: J Keerthy
    Signed-off-by: Samuel Ortiz

    J Keerthy
     
  • The TWL6025 was never released beyond sample form and was replaced by
    the PhoenixLite range of chips - TWL6032. Change the references to
    reference the TWL6032 class and name the registers to twl6032 in line with
    an actual released chip name to avoid confusion.

    Currently there are no users of TWL6025 in the code.

    Signed-off-by: Graeme Gregory
    Signed-off-by: Oleksandr Kozaruk
    Acked-by: Lee Jones
    Reviwed-by: Mark Brown
    Signed-off-by: Samuel Ortiz

    Graeme Gregory
     
  • Include the missing header file to fix the following build error:
    drivers/mfd/davinci_voicecodec.c: In function ‘davinci_vc_probe’:
    drivers/mfd/davinci_voicecodec.c:86:3: error: implicit declaration of function
    ‘io_v2p’ [-Werror=implicit-function-declaration]
    (dma_addr_t)(io_v2p(davinci_vc->base) + DAVINCI_VC_WFIFO);

    Signed-off-by: Sachin Kamat
    Signed-off-by: Samuel Ortiz

    Sachin Kamat
     

19 Jun, 2013

3 commits


18 Jun, 2013

4 commits


13 Jun, 2013

9 commits

  • A complete refurbished series inclunding:
    - DT support for the MFD, TSC and ADC driver & platform device support,
    which has no users, has been killed.
    - iio_map from last series is gone and replaced by proper nodes in the
    device tree.
    - suspend fixes which means correct data structs are taken and no
    interrupt storm
    - fifo split which should problem with TSC & ADC beeing used at the same
    time
    - The ADC channels are now checked before blindly applied. That means the
    touch part reads X, Y and Z coordinates and does not mix them up. Same
    goes for the IIO ADC driver.
    - The IIO ADC driver now creates files named in_voltageX_raw where X
    represents the ADC line instead of a number starting at 0. A read from
    this file can return -EBUSY in case touch is busy and the ADC didn't
    collect a value.

    Samuel Ortiz
     
  • Samuel Ortiz
     
  • AB8540 RTC have changed between AB8540_cut1 and AB8540_cut2.Different
    ressources to define for those two version.

    Acked-by: Linus Walleij
    Signed-off-by: Julien Delacou
    Signed-off-by: Alexandre Torgue
    Signed-off-by: Lee Jones

    Alexandre Torgue
     
  • mfd: arizona: Updates for v3.10

    A bunch of enhancements and fixes for the arizona devices, adding a few
    new features (the main one being device tree) and improving robustness.

    Samuel Ortiz
     
  • The driver programs a threshold of "coordinate_readouts" say 5. The
    REG_FIFO0THR registers says it should it be programmed to "threshold
    minus one". The driver does not expect just 5 coordinates but 5 * 2 + 2.
    Multiplied by two because 5 for X and 5 for Y and plus 2 because we have
    two Z.
    The whole thing kind of works because It reads the 5 coordinates for X
    and Y from FIFO0 and FIFO1 and the last element in each FIFO is ignored
    within the loop and read later.
    Nothing guaranties that FIFO1 is ready by the time it is read. In fact I
    could see that that FIFO1 reaturns for Y channels 8,9, 10, 12, 6 and for
    Y channel 7 for Z. The problem is that channel 7 and channel 12 got
    somehow mixed up.
    The other Problem is that FIFO1 is also used by the IIO part leading to
    wrong results if both (tsc & adc) are used.

    The patch tries to clean up the whole thing a little:
    - Remove the +1 and -1 in REG_STEPCONFIG, REG_STEPDELAY and its counter
    part in the for loop. This is just confusing.

    - Use only FIFO0 in TSC. The fifo has space for 64 entries so should be
    fine.

    - Read the whole FIFO in one function and check the channel.

    - in case we dawdle around, make sure we only read a multiple of our
    coordinate set. On the second interrupt we will cleanup the remaining
    enties.

    Acked-by: Dmitry Torokhov
    Signed-off-by: Sebastian Andrzej Siewior

    Sebastian Andrzej Siewior
     
  • The two header files removed here are unused and have no users as this
    platform was never used with platform devices.

    Signed-off-by: Sebastian Andrzej Siewior

    Sebastian Andrzej Siewior
     
  • Fix the mfd device in the case where a subdevice might not be activated.

    Signed-off-by: Pantelis Antoniou
    Signed-off-by: Felipe Balbi
    Signed-off-by: Sebastian Andrzej Siewior

    Pantelis Antoniou
     
  • The current driver expected touchscreen input
    wires(XP,XN,YP,YN) to be connected in a particular order.
    Making changes to accept this as platform data.

    Sebastian reworked the original patch and removed a lot of the not
    required pieces.

    Signed-off-by: Patil, Rachna
    Signed-off-by: Felipe Balbi
    Signed-off-by: Sebastian Andrzej Siewior

    Patil, Rachna
     
  • Current code has hard coded value written to
    step enable bits. Now the bits are updated based
    on how many steps are needed to be configured got
    from platform data.

    The user needs to take care not to exceed
    the count more than 16. While using ADC and TSC
    one should take care to set this parameter correctly.

    Sebastian added the common lock and moved the code, that manipulates the
    steps, from into the mfd module.

    Signed-off-by: Patil, Rachna
    Signed-off-by: Felipe Balbi
    Signed-off-by: Sebastian Andrzej Siewior

    Patil, Rachna
     

12 Jun, 2013

3 commits


08 Jun, 2013

1 commit

  • …l/git/rostedt/linux-trace

    Pull tracing fixes from Steven Rostedt:
    "This contains 4 fixes.

    The first two fix the case where full RCU debugging is enabled,
    enabling function tracing causes a live lock of the system. This is
    due to the added debug checks in rcu_dereference_raw() that is used by
    the function tracer. These checks are also traced by the function
    tracer as well as cause enough overhead to the function tracer to slow
    down the system enough that the time to finish an interrupt can take
    longer than when the next interrupt is triggered, causing a live lock
    from the timer interrupt.

    Talking this over with Paul McKenney, we came up with a fix that adds
    a new rcu_dereference_raw_notrace() that does not perform these added
    checks, and let the function tracer use that.

    The third commit fixes a failed compile when branch tracing is
    enabled, due to the conversion of the trace_test_buffer() selftest
    that the branch trace wasn't converted for.

    The forth patch fixes a bug caught by the RCU lockdep code where a
    rcu_read_lock() is performed when rcu is disabled (either going to or
    from idle, or user space). This happened on the irqsoff tracer as it
    calls task_uid(). The fix here was to use current_uid() when possible
    that doesn't use rcu locking. Which luckily, is always used when
    irqsoff calls this code."

    * tag 'trace-fixes-v3.10-rc3-v3' of git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-trace:
    tracing: Use current_uid() for critical time tracing
    tracing: Fix bad parameter passed in branch selftest
    ftrace: Use the rcu _notrace variants for rcu_dereference_raw() and friends
    rcu: Add _notrace variation of rcu_dereference_raw() and hlist_for_each_entry_rcu()

    Linus Torvalds
     

07 Jun, 2013

2 commits

  • Pull networking fix from David Miller:
    "This is a quick one commit pull request to cure the regression
    introduced by the MSG_CMSG_COMPAT change."

    (Background: commit 1be374a0518a completely broke 32-bit COMPAT handling
    by not only disallowing MSG_CMSG_COMPAT from user APIs, but clearing it
    in our own internal use too!)

    * git://git.kernel.org/pub/scm/linux/kernel/git/davem/net:
    net: Unbreak compat_sys_{send,recv}msg

    Linus Torvalds
     
  • I broke them in this commit:

    commit 1be374a0518a288147c6a7398792583200a67261
    Author: Andy Lutomirski
    Date: Wed May 22 14:07:44 2013 -0700

    net: Block MSG_CMSG_COMPAT in send(m)msg and recv(m)msg

    This patch adds __sys_sendmsg and __sys_sendmsg as common helpers that accept
    MSG_CMSG_COMPAT and blocks MSG_CMSG_COMPAT at the syscall entrypoints. It
    also reverts some unnecessary checks in sys_socketcall.

    Apparently I was suffering from underscore blindness the first time around.

    Signed-off-by: Andy Lutomirski
    Tested-by: Eric Dumazet
    Signed-off-by: David S. Miller

    Andy Lutomirski
     

06 Jun, 2013

1 commit

  • Since the introduction of preemptible mmu_gather TLB fast mode has been
    broken. TLB fast mode relies on there being absolutely no concurrency;
    it frees pages first and invalidates TLBs later.

    However now we can get concurrency and stuff goes *bang*.

    This patch removes all tlb_fast_mode() code; it was found the better
    option vs trying to patch the hole by entangling tlb invalidation with
    the scheduler.

    Cc: Thomas Gleixner
    Cc: Russell King
    Cc: Tony Luck
    Reported-by: Max Filippov
    Signed-off-by: Peter Zijlstra
    Signed-off-by: Linus Torvalds

    Peter Zijlstra
     

05 Jun, 2013

1 commit

  • Pull networking fixes from David Miller:

    1) Fix timeouts with direct mode authentication in mac80211, from
    Stanislaw Gruszka.

    2) Aggregation sessions can deadlock in ath9k, from Felix Fietkau.

    3) Netfilter's xt_addrtype doesn't work with ipv6 due to route lookups
    creating undesirable cache entries, from Florian Westphal.

    4) Fix netfilter's ipt_ULOG from generating non-NULL terminated
    strings.

    5) Fix netdev transmit queue crashes in mac80211, from Johannes Berg.

    6) Fix copy and paste error in 802.11 stack that broke reporting of
    64-bit station tx statistics, from Felix Fietkau.

    7) When qlge_probe fails, it leaks the netdev. Fix from Wei Yongjun.

    8) SKB control block (where we store the IP options information,
    amongst other things) must be cleared properly otherwise ICMP
    sending can crash for IP tunnels. Fix from Eric Dumazet.

    9) Verification of Energy Efficient Ether support was coded wrongly,
    the test was inversed. Fix from Giuseppe CAVALLARO.

    10) TCP handles redirects improperly because the wrong flow key is used
    for the route lookup. From Michal Kubecek.

    11) Don't interpret MSG_CMSG_COMPAT from userspace, fix from Andy
    Lutomirski.

    12) The new AF_VSOCK was missing from the lockdep string table, fix from
    Federico Vaga.

    13) be2net doesn't handle checksumming of IP fragments properly, from
    Somnath Kotur.

    14) Fix several bugs in the device address list code that lead to
    crashes and other misbehaviors. From Jay Vosburgh.

    15) Fix ipv6 segmentation handling of fragmented GRE tunnel traffic,
    from Pravin B Shalr.

    16) Fix usage of stale policies in IPSEC layer, from Paul Moore.

    17) Fix team driver dump of ports when there are a large number of them,
    from Jiri Pirko.

    18) Fix softlockups in UDP ipv4 socket lookup causes by and error in the
    hlist_nulls_for_each_entry_rcu() macro. From Eric Dumazet.

    19) Fix several regressions added by the high rate accuracy changes to
    the htb packet scheduler. From Eric Dumazet.

    20) Fix DMA'ing onto the stack in esd_usb2 and peak_usb CAN drivers,
    from Olivier Sobrie and Marc Kleine-Budde.

    21) Fix unremovable network devices due to missing route pointer
    installation in the per-device ipv6 address list entries. From Gao
    feng.

    22) Apply the tg3 5719 DMA workaround on 5720 chips as well, otherwise
    we get stalls. From Nithin Sujir.

    * git://git.kernel.org/pub/scm/linux/kernel/git/davem/net: (68 commits)
    net_sched: htb: do not mix 1ns and 64ns time units
    net: fix sk_buff head without data area
    tg3: Add read dma workaround for 5720
    net: ethernet: xilinx_emaclite: set protocol selector bits when writing ANAR
    bnx2x: Fix bridged GSO for 57710/57711 chips
    net: fec: add fallback to random MAC address
    bnx2x: fix TCP offload for tunneling ipv4 over ipv6
    ipv6: assign rt6_info to inet6_ifaddr in init_loopback
    net/mlx4_core: Keep VF assigned MAC in the PF admin table
    net/mlx4_en: Handle unassigned VF MAC address correctly
    net/mlx4_core: Return -EPROBE_DEFER when a VF is probed before PF is sufficiently initialized
    net/mlx4_en: Fix adaptive moderation cq update
    net: can: peak_usb: Do not do dma on the stack
    net: can: esd_usb2: Do not do dma on the stack
    net: can: kvaser_usb: fix reception on "USBcan Pro" and "USBcan R" type hardware.
    net_sched: restore "overhead xxx" handling
    net: force a reload of first item in hlist_nulls_for_each_entry_rcu
    hyperv: Fix vlan_proto setting in netvsc_recv_callback()
    team: fix port list dump for big number of ports
    list: introduce list_first_entry_or_null
    ...

    Linus Torvalds
     

03 Jun, 2013

4 commits

  • Pull s390 fixes from Martin Schwidefsky:
    "Recent bug fixes, one of them touches a common code file.

    It adds two #ifndef/#endif pairs to asm-generic/io.h to be able to
    override xlate_dev_kmem_ptr and xlate_dev_mem_ptr."

    * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/s390/linux:
    s390/pgtable: Fix gmap notifier address
    s390/dasd: fix handling of gone paths
    s390/pgtable: Fix check for pgste/storage key handling
    arch: s390: appldata: using strncpy() and strnlen() instead of sprintf()
    s390/smp: lost IPIs on cpu hotplug
    kernel: Fix s390 absolute memory access for /dev/mem
    s390/dma: do not call debug_dma after free

    Linus Torvalds
     
  • Pull cgroup fixes from Tejun Heo:

    - Fix for yet another xattr bug which may lead to NULL deref.

    - A subtle bug in for_each_descendant_pre(). This bug requires quite
    specific conditions to trigger and isn't too likely to actually
    happen in the wild, but maybe that just makes it that much more
    nastier.

    - A warning message added for silly cgroup re-mount (not -o remount,
    but unmount followed by mount) behavior.

    * 'for-3.10-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/tj/cgroup:
    cgroup: warn about mismatching options of a new mount of an existing hierarchy
    cgroup: fix a subtle bug in descendant pre-order walk
    cgroup: initialize xattr before calling d_instantiate()

    Linus Torvalds
     
  • commit 56b765b79 ("htb: improved accuracy at high rates")
    broke the "overhead xxx" handling, as well as the "linklayer atm"
    attribute.

    tc class add ... htb rate X ceil Y linklayer atm overhead 10

    This patch restores the "overhead xxx" handling, for htb, tbf
    and act_police

    The "linklayer atm" thing needs a separate fix.

    Reported-by: Jesper Dangaard Brouer
    Signed-off-by: Eric Dumazet
    Cc: Vimalkumar
    Cc: Jiri Pirko
    Signed-off-by: David S. Miller

    Eric Dumazet
     
  • Roman Gushchin discovered that udp4_lib_lookup2() was not reloading
    first item in the rcu protected list, in case the loop was restarted.

    This produced soft lockups as in https://lkml.org/lkml/2013/4/16/37

    rcu_dereference(X)/ACCESS_ONCE(X) seem to not work as intended if X is
    ptr->field :

    In some cases, gcc caches the value or ptr->field in a register.

    Use a barrier() to disallow such caching, as documented in
    Documentation/atomic_ops.txt line 114

    Thanks a lot to Roman for providing analysis and numerous patches.

    Diagnosed-by: Roman Gushchin
    Signed-off-by: Eric Dumazet
    Reported-by: Boris Zhmurov
    Signed-off-by: Roman Gushchin
    Acked-by: Paul E. McKenney
    Signed-off-by: David S. Miller

    Eric Dumazet
     

01 Jun, 2013

5 commits

  • Pull scsi target fixes from Nicholas Bellinger:
    "The highlights include:

    - Re-instate sess->wait_list in target_wait_for_sess_cmds() for
    active I/O shutdown handling in fabrics using se_cmd->cmd_kref
    - Make ib_srpt call target_sess_cmd_list_set_waiting() during session
    shutdown
    - Fix FILEIO off-by-one READ_CAPACITY bug for !S_ISBLK export
    - Fix iscsi-target login error heap buffer overflow (Kees)
    - Fix iscsi-target active I/O shutdown handling regression in
    v3.10-rc1

    A big thanks to Kees Cook for fixing a long standing login error
    buffer overflow bug.

    All patches are CC'ed to stable with the exception of the v3.10-rc1
    specific regression + other minor target cleanup."

    * git://git.kernel.org/pub/scm/linux/kernel/git/nab/target-pending:
    iscsi-target: Fix iscsit_free_cmd() se_cmd->cmd_kref shutdown handling
    target: Propigate up ->cmd_kref put return via transport_generic_free_cmd
    iscsi-target: fix heap buffer overflow on error
    target/file: Fix off-by-one READ_CAPACITY bug for !S_ISBLK export
    ib_srpt: Call target_sess_cmd_list_set_waiting during shutdown_session
    target: Re-instate sess_wait_list for target_wait_for_sess_cmds
    target: Remove unused wait_for_tasks bit in target_wait_for_sess_cmds

    Linus Torvalds
     
  • Pull fbdev fixes from Jean-Christophe PLAGNIOL-VILLARD:
    "This contains some small fixes

    - Atmel LCDC: fix blank the backlight on remove
    - ps3fb: fix compile warning
    - OMAPDSS: Fix crash with DT boot"

    * tag 'fbdev-for-3.10-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/plagnioj/linux-fbdev:
    atmel_lcdfb: blank the backlight on remove
    trivial: atmel_lcdfb: add missing error message
    OMAPDSS: Fix crash with DT boot
    fbdev/ps3fb: fix compile warning

    Linus Torvalds
     
  • non-rcu variant of list_first_or_null_rcu

    Signed-off-by: Jiri Pirko
    Signed-off-by: David S. Miller

    Jiri Pirko
     
  • In some cases after deleting a policy from the SPD the policy would
    remain in the dst/flow/route cache for an extended period of time
    which caused problems for SELinux as its dynamic network access
    controls key off of the number of XFRM policy and state entries.
    This patch corrects this problem by forcing a XFRM garbage collection
    whenever a policy is sucessfully removed.

    Reported-by: Ondrej Moris
    Signed-off-by: Paul Moore
    Signed-off-by: David S. Miller

    Paul Moore
     
  • udp6 over GRE tunnel does not work after to GRE tso changes. GRE
    tso handler passes inner packet but keeps track of outer header
    start in SKB_GSO_CB(skb)->mac_offset. udp6 fragment need to
    take care of outer header, which start at the mac_offset, while
    adding fragment header.
    This bug is introduced by commit 68c3316311 (GRE: Add TCP
    segmentation offload for GRE).

    Reported-by: Dmitry Kravkov
    Signed-off-by: Pravin B Shelar
    Tested-by: Dmitry Kravkov
    Signed-off-by: David S. Miller

    Pravin B Shelar