31 Aug, 2016

1 commit

  • commit 5590f3196b29 ("drivers/core/of: Add symlink to device-tree from
    devices with an OF node") added a symlink called "of_node" to sysfs
    however the documentation describes it as "of_path".

    Fix the documentation to match what the code actually does.

    Signed-off-by: Martin Fuzzey
    Acked-by: Rob Herring
    Signed-off-by: Greg Kroah-Hartman

    Martin Fuzzey
     

06 Aug, 2016

1 commit

  • …erry.reding/linux-pwm

    Pull pwm updates from Thierry Reding:
    "This set of changes improve some aspects of the atomic API as well as
    make use of this new API in the regulator framework to allow properly
    dealing with critical regulators controlled by a PWM.

    Aside from that there's a bunch of updates and cleanups for existing
    drivers, as well as the addition of new drivers for the Broadcom
    iProc, STMPE and ChromeOS EC controllers"

    * tag 'pwm/for-4.8-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/thierry.reding/linux-pwm: (44 commits)
    regulator: pwm: Document pwm-dutycycle-unit and pwm-dutycycle-range
    regulator: pwm: Support extra continuous mode cases
    pwm: Add ChromeOS EC PWM driver
    dt-bindings: pwm: Add binding for ChromeOS EC PWM
    mfd: cros_ec: Add EC_PWM function definitions
    mfd: cros_ec: Add cros_ec_cmd_xfer_status() helper
    pwm: atmel: Use of_device_get_match_data()
    pwm: atmel: Fix checkpatch warnings
    pwm: atmel: Fix disabling of PWM channels
    dt-bindings: pwm: Add R-Car H3 device tree bindings
    pwm: rcar: Use ARCH_RENESAS
    pwm: tegra: Add support for Tegra186
    dt-bindings: pwm: tegra: Add compatible string for Tegra186
    pwm: tegra: Avoid overflow when calculating duty cycle
    pwm: tegra: Allow 100 % duty cycle
    pwm: tegra: Add support for reset control
    pwm: tegra: Rename mmio_base to regs
    pwm: tegra: Remove useless padding
    pwm: tegra: Drop NUM_PWM macro
    pwm: lpc32xx: Set PWM_PIN_LEVEL bit to default value
    ...

    Linus Torvalds
     

28 Jul, 2016

2 commits

  • Pull networking updates from David Miller:

    1) Unified UDP encapsulation offload methods for drivers, from
    Alexander Duyck.

    2) Make DSA binding more sane, from Andrew Lunn.

    3) Support QCA9888 chips in ath10k, from Anilkumar Kolli.

    4) Several workqueue usage cleanups, from Bhaktipriya Shridhar.

    5) Add XDP (eXpress Data Path), essentially running BPF programs on RX
    packets as soon as the device sees them, with the option to mirror
    the packet on TX via the same interface. From Brenden Blanco and
    others.

    6) Allow qdisc/class stats dumps to run lockless, from Eric Dumazet.

    7) Add VLAN support to b53 and bcm_sf2, from Florian Fainelli.

    8) Simplify netlink conntrack entry layout, from Florian Westphal.

    9) Add ipv4 forwarding support to mlxsw spectrum driver, from Ido
    Schimmel, Yotam Gigi, and Jiri Pirko.

    10) Add SKB array infrastructure and convert tun and macvtap over to it.
    From Michael S Tsirkin and Jason Wang.

    11) Support qdisc packet injection in pktgen, from John Fastabend.

    12) Add neighbour monitoring framework to TIPC, from Jon Paul Maloy.

    13) Add NV congestion control support to TCP, from Lawrence Brakmo.

    14) Add GSO support to SCTP, from Marcelo Ricardo Leitner.

    15) Allow GRO and RPS to function on macsec devices, from Paolo Abeni.

    16) Support MPLS over IPV4, from Simon Horman.

    * git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next: (1622 commits)
    xgene: Fix build warning with ACPI disabled.
    be2net: perform temperature query in adapter regardless of its interface state
    l2tp: Correctly return -EBADF from pppol2tp_getname.
    net/mlx5_core/health: Remove deprecated create_singlethread_workqueue
    net: ipmr/ip6mr: update lastuse on entry change
    macsec: ensure rx_sa is set when validation is disabled
    tipc: dump monitor attributes
    tipc: add a function to get the bearer name
    tipc: get monitor threshold for the cluster
    tipc: make cluster size threshold for monitoring configurable
    tipc: introduce constants for tipc address validation
    net: neigh: disallow transition to NUD_STALE if lladdr is unchanged in neigh_update()
    MAINTAINERS: xgene: Add driver and documentation path
    Documentation: dtb: xgene: Add MDIO node
    dtb: xgene: Add MDIO node
    drivers: net: xgene: ethtool: Use phy_ethtool_gset and sset
    drivers: net: xgene: Use exported functions
    drivers: net: xgene: Enable MDIO driver
    drivers: net: xgene: Add backward compatibility
    drivers: net: phy: xgene: Add MDIO driver
    ...

    Linus Torvalds
     
  • Pull arm64 updates from Catalin Marinas:

    - Kexec support for arm64

    - Kprobes support

    - Expose MIDR_EL1 and REVIDR_EL1 CPU identification registers to sysfs

    - Trapping of user space cache maintenance operations and emulation in
    the kernel (CPU errata workaround)

    - Clean-up of the early page tables creation (kernel linear mapping,
    EFI run-time maps) to avoid splitting larger blocks (e.g. pmds) into
    smaller ones (e.g. ptes)

    - VDSO support for CLOCK_MONOTONIC_RAW in clock_gettime()

    - ARCH_HAS_KCOV enabled for arm64

    - Optimise IP checksum helpers

    - SWIOTLB optimisation to only allocate/initialise the buffer if the
    available RAM is beyond the 32-bit mask

    - Properly handle the "nosmp" command line argument

    - Fix for the initialisation of the CPU debug state during early boot

    - vdso-offsets.h build dependency workaround

    - Build fix when RANDOMIZE_BASE is enabled with MODULES off

    * tag 'arm64-upstream' of git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux: (64 commits)
    arm64: arm: Fix-up the removal of the arm64 regs_query_register_name() prototype
    arm64: Only select ARM64_MODULE_PLTS if MODULES=y
    arm64: mm: run pgtable_page_ctor() on non-swapper translation table pages
    arm64: mm: make create_mapping_late() non-allocating
    arm64: Honor nosmp kernel command line option
    arm64: Fix incorrect per-cpu usage for boot CPU
    arm64: kprobes: Add KASAN instrumentation around stack accesses
    arm64: kprobes: Cleanup jprobe_return
    arm64: kprobes: Fix overflow when saving stack
    arm64: kprobes: WARN if attempting to step with PSTATE.D=1
    arm64: debug: remove unused local_dbg_{enable, disable} macros
    arm64: debug: remove redundant spsr manipulation
    arm64: debug: unmask PSTATE.D earlier
    arm64: localise Image objcopy flags
    arm64: ptrace: remove extra define for CPSR's E bit
    kprobes: Add arm64 case in kprobe example module
    arm64: Add kernel return probes support (kretprobes)
    arm64: Add trampoline code for kretprobes
    arm64: kprobes instruction simulation support
    arm64: Treat all entry code as non-kprobe-able
    ...

    Linus Torvalds
     

27 Jul, 2016

1 commit

  • Pull ACPI updates from Rafael Wysocki:
    "The new feaures here are the support for ACPI overlays (allowing ACPI
    tables to be loaded at any time from EFI variables or via configfs)
    and the LPI (Low-Power Idle) support. Also notable is the ACPI-based
    NUMA support for ARM64.

    Apart from that we have two new drivers, for the DPTF (Dynamic Power
    and Thermal Framework) power participant device and for the Intel
    Broxton WhiskeyCove PMIC, some more PMIC-related changes, support for
    the Boot Error Record Table (BERT) in APEI and support for
    platform-initiated graceful shutdown.

    Plus two new pieces of documentation and usual assorted fixes and
    cleanups in quite a few places.

    Specifics:

    - Support for ACPI SSDT overlays allowing Secondary System
    Description Tables (SSDTs) to be loaded at any time from EFI
    variables or via configfs (Octavian Purdila, Mika Westerberg).

    - Support for the ACPI LPI (Low-Power Idle) feature introduced in
    ACPI 6.0 and allowing processor idle states to be represented in
    ACPI tables in a hierarchical way (with the help of Processor
    Container objects) and support for ACPI idle states management on
    ARM64, based on LPI (Sudeep Holla).

    - General improvements of ACPI support for NUMA and ARM64 support for
    ACPI-based NUMA (Hanjun Guo, David Daney, Robert Richter).

    - General improvements of the ACPI table upgrade mechanism and ARM64
    support for that feature (Aleksey Makarov, Jon Masters).

    - Support for the Boot Error Record Table (BERT) in APEI and
    improvements of kernel messages printed by the error injection code
    (Huang Ying, Borislav Petkov).

    - New driver for the Intel Broxton WhiskeyCove PMIC operation region
    and support for the REGS operation region on Broxton, PMIC code
    cleanups (Bin Gao, Felipe Balbi, Paul Gortmaker).

    - New driver for the power participant device which is part of the
    Dynamic Power and Thermal Framework (DPTF) and DPTF-related code
    reorganization (Srinivas Pandruvada).

    - Support for the platform-initiated graceful shutdown feature
    introduced in ACPI 6.1 (Prashanth Prakash).

    - ACPI button driver update related to lid input events generated
    automatically on initialization and system resume that have been
    problematic for some time (Lv Zheng).

    - ACPI EC driver cleanups (Lv Zheng).

    - Documentation of the ACPICA release automation process and the
    in-kernel ACPI AML debugger (Lv Zheng).

    - New blacklist entry and two fixes for the ACPI backlight driver
    (Alex Hung, Arvind Yadav, Ralf Gerbig).

    - Cleanups of the ACPI pci_slot driver (Joe Perches, Paul Gortmaker).

    - ACPI CPPC code changes to make it more robust against possible
    defects in ACPI tables and new symbol definitions for PCC (Hoan
    Tran).

    - System reboot code modification to execute the ACPI _PTS (Prepare
    To Sleep) method in addition to _TTS (Ocean He).

    - ACPICA-related change to carry out lock ordering checks in ACPICA
    if ACPICA debug is enabled in the kernel (Lv Zheng).

    - Assorted minor fixes and cleanups (Andy Shevchenko, Baoquan He,
    Bhaktipriya Shridhar, Paul Gortmaker, Rafael Wysocki)"

    * tag 'acpi-4.8-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm: (71 commits)
    ACPI: enable ACPI_PROCESSOR_IDLE on ARM64
    arm64: add support for ACPI Low Power Idle(LPI)
    drivers: firmware: psci: initialise idle states using ACPI LPI
    cpuidle: introduce CPU_PM_CPU_IDLE_ENTER macro for ARM{32, 64}
    arm64: cpuidle: drop __init section marker to arm_cpuidle_init
    ACPI / processor_idle: Add support for Low Power Idle(LPI) states
    ACPI / processor_idle: introduce ACPI_PROCESSOR_CSTATE
    ACPI / DPTF: move int340x_thermal.c to the DPTF folder
    ACPI / DPTF: Add DPTF power participant driver
    ACPI / lpat: make it explicitly non-modular
    ACPI / dock: make dock explicitly non-modular
    ACPI / PCI: make pci_slot explicitly non-modular
    ACPI / PMIC: remove modular references from non-modular code
    ACPICA: Linux: Enable ACPI_MUTEX_DEBUG for Linux kernel
    ACPI: Rename configfs.c to acpi_configfs.c to prevent link error
    ACPI / debugger: Add AML debugger documentation
    ACPI: Add documentation describing ACPICA release automation
    ACPI: add support for loading SSDTs via configfs
    ACPI: add support for configfs
    efi / ACPI: load SSTDs from EFI variables
    ...

    Linus Torvalds
     

12 Jul, 2016

1 commit

  • It can be useful for JIT software to be aware of MIDR_EL1 and
    REVIDR_EL1 to ascertain the presence of any core errata that could
    affect code generation.

    This patch exposes these registers through sysfs:

    /sys/devices/system/cpu/cpu$ID/regs/identification/midr_el1
    /sys/devices/system/cpu/cpu$ID/regs/identification/revidr_el1

    where $ID is the cpu number. For big.LITTLE systems, one can have a
    mixture of cores (e.g. Cortex A53 and Cortex A57), thus all CPUs need
    to be enumerated.

    If the kernel does not have valid information to populate these entries
    with, an empty string is returned to userspace.

    Cc: Mark Rutland
    Reviewed-by: Will Deacon
    Signed-off-by: Steve Capper
    [suzuki.poulose@arm.com: ABI documentation updates, hotplug notifiers, kobject changes]
    Signed-off-by: Suzuki K Poulose
    Signed-off-by: Catalin Marinas

    Steve Capper
     

09 Jul, 2016

2 commits

  • New tables can be loaded by creating directories under /config/table/
    and writing the AML code into the aml table attribute. Various table
    attributes will be readable once the table is successfully loaded.

    Unloading tables is not supported at the moment, but it can be easily
    implemented once ACPI loading functions provide a table handle to be
    used for unloading.

    Signed-off-by: Octavian Purdila
    Reviewed-by: Mika Westerberg
    Signed-off-by: Rafael J. Wysocki

    Octavian Purdila
     
  • Register the ACPI subsystem with configfs.

    Signed-off-by: Octavian Purdila
    Reviewed-by: Mika Westerberg
    Signed-off-by: Rafael J. Wysocki

    Octavian Purdila
     

02 Jul, 2016

1 commit

  • Simon Wunderlich says:

    ====================
    This feature patchset includes the following changes:

    - two patches with minimal clean up work by Antonio Quartulli and
    Simon Wunderlich

    - eight patches of B.A.T.M.A.N. V, API and documentation clean
    up work, by Antonio Quartulli and Marek Lindner

    - Andrew Lunn fixed the skb priority adoption when forwarding
    fragmented packets (two patches)

    - Multicast optimization support is now enabled for bridges which
    comes with some protocol updates, by Linus Luessing
    ====================

    Signed-off-by: David S. Miller

    David S. Miller
     

01 Jul, 2016

1 commit

  • Adds a new per-device sysfs attribute "current_timestamp_clock" to allow
    userspace to select a particular POSIX clock for buffered samples and
    events timestamping.

    Following clocks, as listed in clock_gettime(2), are supported:
    CLOCK_REALTIME, CLOCK_MONOTONIC, CLOCK_MONOTONIC_RAW,
    CLOCK_REALTIME_COARSE, CLOCK_MONOTONIC_COARSE, CLOCK_BOOTTIME and
    CLOCK_TAI.

    Signed-off-by: Gregor Boirie
    Acked-by: Sanchayan Maity
    Signed-off-by: Jonathan Cameron

    Gregor Boirie
     

30 Jun, 2016

2 commits


20 Jun, 2016

1 commit


19 Jun, 2016

1 commit

  • Pull USB fixes from Greg KH:
    "Here are a bunch (65) of USB fixes for 4.7-rc4. Sorry about the
    quantity, I've been slow in getting these out.

    The majority are the "normal" gadget, musb, and xhci fixes, that we
    all are used to. There are also a few other tiny fixes resolving a
    number of reported issues that showed up in 4.7-rc1.

    All of these have been in linux-next"

    * tag 'usb-4.7-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb: (65 commits)
    usbip: rate limit get_frame_number message
    usb: musb: sunxi: Remove bogus "Frees glue" comment
    usb: musb: sunxi: Fix NULL ptr deref when gadget is registered before musb
    usb: echi-hcd: Add ehci_setup check before echi_shutdown
    usb: host: ehci-msm: Conditionally call ehci suspend/resume
    MAINTAINERS: Add file patterns for usb device tree bindings
    usb: host: ehci-tegra: Avoid getting the same reset twice
    usb: host: ehci-tegra: Grab the correct UTMI pads reset
    USB: mos7720: delete parport
    USB: OHCI: Don't mark EDs as ED_OPER if scheduling fails
    phy: ti-pipe3: Program the DPLL even if it was already locked
    usb: musb: Stop bulk endpoint while queue is rotated
    usb: musb: Ensure rx reinit occurs for shared_fifo endpoints
    usb: musb: host: correct cppi dma channel for isoch transfer
    usb: musb: only restore devctl when session was set in backup
    usb: phy: Check initial state for twl6030
    usb: musb: Use normal module_init for 2430 glue
    usb: musb: Remove pm_runtime_set_irq_safe
    usb: musb: Remove extra PM runtime calls from 2430 glue layer
    usb: musb: Return error value from musb_mailbox
    ...

    Linus Torvalds
     

10 Jun, 2016

2 commits

  • Allow a user to read PWM capture results from sysfs. To start a capture
    and read the result, simply read the file:

    $ cat $PWMCHIP/capture

    The output format is " ".

    Signed-off-by: Lee Jones
    Signed-off-by: Thierry Reding

    Lee Jones
     
  • …iio into staging-next

    Jonathan writes:

    First round of IIO new device support, features and cleanups for the 4.8 cycle.

    New device support
    * ads1015
    - add ads1115 support
    * bma220 accelerometer
    - new driver
    - triggered buffer support.
    * bmc150
    - add bmm150 support.
    * bmp280
    - bme280 support with addition of humidity channel.
    * max5487 potentiometer
    - new driver
    * MMA7660FC accelerometer.
    - New driver
    * st-pressure
    - support for the lps22hb
    * loop trigger.
    - This one is *nasty* but we have real applications (parrot drones) where
    it is useful. The trigger basically spins as hard as it can firing off
    a new trigger each time all triggered devices come back to say they are
    done. It doesn't hang a machine even when doing it on a dummy driver.
    A lot nicer than having this implemented within lots of device drivers
    anyway.

    Core stuff
    * Add support to create IIO devices via configfs (similar to we did for
    triggers a while back) + docs.
    * New channel types
    - IIO_ELECTRICAL_CONDUCTIVITY
    * Couple of MAINTAINERS patches to list the device tree bindings.
    * Make trigger ops structure non optional (comment fix). It hasn't been for
    an awful long time, but that's not what the description said.

    New features
    * ak8975
    - support adapters that are limited to byte data only by allowing the
    emulated block read i2c function that was recently introduced.
    * atlas-ph
    - support atlas-ec (electrical conductivity sensor)
    * bmi160
    - add available frequency and scale attributes to make the driver
    more user friendly (and avoid having to read the datasheet to know
    what will work).
    * dummy
    - move creation to configfs interface. It's not real hardware so we
    are not that worried about the ABI breakage ;)
    * mma8452
    - oversampling ration support
    * nau7802
    - expose available gains to make life easier for userspace.
    * st-sensors
    - allow use of emulation for SMBus block reads as all the st parts support
    it.
    * ti-ads1015
    - list datasheet names to allow their use by inkernel consumers.
    * Various module alias additions to help auto probing. Drop one redundant one
    as well.

    Cleanups
    * ad7266, ad7476, ad7887, ad7923, ad799x
    - use direct mode claim function rather than open coding it during sensor
    read (prevents switching on buffers mid read).
    * ad7793, ad7791
    - use direct mode claim to prevent frequency changes when buffers running.
    * afe440x - These are ABI breaking but the driver requires custom userspace
    code to do anything useful anyway and that is still being written and under
    control of TI. Ultimately we may have other libraries to do pulse
    oximetry with these devices but we aren't aware of any yet.
    - kernel-doc format fixes
    - drop ifdef fun around of_match_ptr - it's not worth the mess to save
    a tiny amount of space.
    - drop some unnecessary register initializations.
    - drop the weird locked gain modes as they gain us nothing (can just set
    all gains separately).
    - remove handling of offset attributes seeing as no channels actually have
    them (oops)
    - Drop the LED3 input channel as it's an alias for ALED2.
    - *big one* remove channel names - an experiment that turned out to not
    make sense - see patch for details.
    - use regmap fields to clean up code.
    - tie the tia gain stages to appropriate channels in the ABI as that is
    what they really effect. Same with the LED currents.
    - cleanout some unused defines and fix a missnamed one.
    * atlas-ph
    - reorganise to allow support of other similar parts.
    * bmc150
    - document supported chips in kconfig help.
    * jsa1212
    - drop an unneeded i2c functionality check for functionality the driver
    doesn't use.
    * mxs-lradc
    - simply touch screen registration code.
    - remove the touch screen unregister as all devm based now.
    - disable only those channels that are masked in hardware stop (others
    are already dealt with elsewhere)
    * st-sensors
    - unexport st_sensors_get_buffer_element as nothing outside the st-sensors
    core driver uses it.
    - fix handling of failure to start up regulators.
    * tpl0102
    - drop an i2c functionality test for features that aren't needed.
    * ti-am335x
    - use variable name rather than type in sizeof for clarity.
    - use SIMPLE_DEV_PM_OPS helper macro to tidy up a bit.

    Tools
    * Add install / uninstall to makefile. Someone cares, so presumably
    some people will find it useful!
    * generic_buffer
    - rename to iio_generic_buffer to line up with other tools.
    - handle cleanup when receiving signals
    - Add a --device-num option and a --trigger-num option rather than
    relying on naming which doesn't work if you have two of the same part.

    Greg Kroah-Hartman
     

08 Jun, 2016

1 commit

  • …jic23/iio into staging-linus

    Jonathan writes:

    First round of iio fixes for the 4.7 cycle.

    A slightly bumper set due to travel delaying the pull request and a fair few
    issues with the recent merge window patches. Patches all over the place.
    The st-sensors one is probably the most involved, but definitly solves the
    issues seen. Note there are some other issues around that handler
    (and the fact that a lot of boards tie a level interrupt chip to an
    edge interrupt only irq chip). These are not regressions however, so
    will turn up the slow route.

    * core
    - iio_trigger_attach_pollfunc had some really badly wrong error handling.
    Another nasty triggered whilst chasing down issues with the st sensors
    rework below.
    * ad5592r
    - fix an off by one error when allocating channels.
    * am2315
    - a stray mutex unlock before we ever take the lock.
    * apds9960
    - missing a parent in the driver model (which should be the i2c device).
    Result is it doesn't turn up under /sys/bus/i2c/devices which some
    userspace code uses for repeatable device identification.
    * as3935
    - ABI usage bug which meant a processed value was reported as raw. Now
    reporting scale as well to ensure userspace has the info it needs.
    - Don't return processed value via the buffer - it doesn't conform to
    the ABI and will overflow in some cases.
    - Fix a wrongly sized buffer which would overflow trashing part of the
    stack. Also move it onto the heap as part of the fix.
    * bh1780
    - a missing return after write in debugfs lead to an incorrect read and
    a null pointer dereference.
    - dereferencing the wrong pointer in suspend and resume leading to
    unpredictable results.
    - assign a static name to avoid accidentally ending up with no name if
    loaded via device tree.
    * bmi160
    - output data rate for the accelerometer was incorrectly reported. Fix it.
    - writing the output data rate was also wrong due to reverse parameters.
    * bmp280
    - error message for wrong chip ID gave the wrong expected value.
    * hdc100x
    - mask for writing the integration time was wrong allowin g us to get
    'stuck' in a particular value with no way back.
    - temperature reported in celsius rather than millicelsius as per the
    ABI.
    - Get rid of some incorrect data shifting which lead to readings being
    rather incorrect.
    * max44000
    - drop scale attribute for proximity as it is an unscaled value (depends
    on what is in range rather than anything knowable at the detector).
    * st-pressure
    - ABI compliance fixes - units were wrong.
    * st-sensors
    - We introduced some nasty issues with the recent switch over to a
    a somewhat threaded handler in that we broke using a software trigger
    with these devices. Now do it properly. It's a larger patch than ideal
    for a fix, but the logic is straight forward.
    - Make sure the trigger is initialized before requesting the interrupt.
    This matters now the interrupt can be shared. Before it was ugly and wrong
    but short of flakey hardware could not be triggered.
    - Hammer down the dataready pin at boot - otherwise with really
    unlucky timing things could get interestingly wedged requiring a hard power
    down of the chip.

    Greg Kroah-Hartman
     

31 May, 2016

1 commit


30 May, 2016

1 commit


28 May, 2016

1 commit

  • Pull UBI/UBIFS updates from Richard Weinberger:
    "This contains mostly cleanups and minor improvements of UBI and UBIFS"

    * tag 'upstream-4.7-rc1' of git://git.infradead.org/linux-ubifs:
    ubifs: ubifs_dump_inode: Fix dumping field bulk_read
    UBI: Fix static volume checks when Fastmap is used
    UBI: Set free_count to zero before walking through erase list
    UBI: Silence an unintialized variable warning
    UBI: Clean up return in ubi_remove_volume()
    UBI: Modify wrong comment in ubi_leb_map function.
    UBI: Don't read back all data in ubi_eba_copy_leb()
    UBI: Add ro-mode sysfs attribute

    Linus Torvalds
     

24 May, 2016

1 commit

  • On serious situations, UBI may detect serious device corruption,
    and switch to read-only mode to protect the data and allow debugging.
    This commit exposes this ro-mode on sysfs, so it can be obtained
    by userspace tools.

    Signed-off-by: Ezequiel Garcia
    Signed-off-by: Richard Weinberger

    Ezequiel Garcia
     

23 May, 2016

1 commit


21 May, 2016

6 commits

  • Merge more updates from Andrew Morton:

    - the rest of MM

    - KASAN updates

    - procfs updates

    - exit, fork updates

    - printk updates

    - lib/ updates

    - radix-tree testsuite updates

    - checkpatch updates

    - kprobes updates

    - a few other misc bits

    * emailed patches from Andrew Morton : (162 commits)
    samples/kprobes: print out the symbol name for the hooks
    samples/kprobes: add a new module parameter
    kprobes: add the "tls" argument for j_do_fork
    init/main.c: simplify initcall_blacklisted()
    fs/efs/super.c: fix return value
    checkpatch: improve --git shortcut
    checkpatch: reduce number of `git log` calls with --git
    checkpatch: add support to check already applied git commits
    checkpatch: add --list-types to show message types to show or ignore
    checkpatch: advertise the --fix and --fix-inplace options more
    checkpatch: whine about ACCESS_ONCE
    checkpatch: add test for keywords not starting on tabstops
    checkpatch: improve CONSTANT_COMPARISON test for structure members
    checkpatch: add PREFER_IS_ENABLED test
    lib/GCD.c: use binary GCD algorithm instead of Euclidean
    radix-tree: free up the bottom bit of exceptional entries for reuse
    dax: move RADIX_DAX_ definitions to dax.c
    radix-tree: make radix_tree_descend() more useful
    radix-tree: introduce radix_tree_replace_clear_tags()
    radix-tree: tidy up __radix_tree_create()
    ...

    Linus Torvalds
     
  • Pull staging and IIO driver updates from Greg KH:
    "Here's the big staging and iio driver update for 4.7-rc1.

    I think we almost broke even with this release, only adding a few more
    lines than we removed, which isn't bad overall given that there's a
    bunch of new iio drivers added.

    The Lustre developers seem to have woken up from their sleep and have
    been doing a great job in cleaning up the code and pruning unused or
    old cruft, the filesystem is almost readable :)

    Other than that, just a lot of basic coding style cleanups in the
    churn. All have been in linux-next for a while with no reported
    issues"

    * tag 'staging-4.7-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging: (938 commits)
    Staging: emxx_udc: emxx_udc: fixed coding style issue
    staging/gdm724x: fix "alignment should match open parenthesis" issues
    staging/gdm724x: Fix avoid CamelCase
    staging: unisys: rename misleading var ii with frag
    staging: unisys: visorhba: switch success handling to error handling
    staging: unisys: visorhba: main path needs to flow down the left margin
    staging: unisys: visorinput: handle_locking_key() simplifications
    staging: unisys: visorhba: fail gracefully for thread creation failures
    staging: unisys: visornic: comment restructuring and removing bad diction
    staging: unisys: fix format string %Lx to %llx for u64
    staging: unisys: remove unused struct members
    staging: unisys: visorchannel: correct variable misspelling
    staging: unisys: visorhba: replace functionlike macro with function
    staging: dgnc: Need to check for NULL of ch
    staging: dgnc: remove redundant condition check
    staging: dgnc: fix 'line over 80 characters'
    staging: dgnc: clean up the dgnc_get_modem_info()
    staging: lustre: lnet: enable configuration per NI interface
    staging: lustre: o2iblnd: properly set ibr_why
    staging: lustre: o2iblnd: remove last of kiblnd_tunables_fini
    ...

    Linus Torvalds
     
  • Pull char / misc driver updates from Greg KH:
    "Here's the big char and misc driver update for 4.7-rc1.

    Lots of different tiny driver subsystems have updates here with new
    drivers and functionality. Details in the shortlog.

    All have been in linux-next with no reported issues for a while"

    * tag 'char-misc-4.7-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc: (125 commits)
    mcb: Delete num_cells variable which is not required
    mcb: Fixed bar number assignment for the gdd
    mcb: Replace ioremap and request_region with the devm version
    mcb: Implement bus->dev.release callback
    mcb: export bus information via sysfs
    mcb: Correctly initialize the bus's device
    mei: bus: call mei_cl_read_start under device lock
    coresight: etb10: adjust read pointer only when needed
    coresight: configuring ETF in FIFO mode when acting as link
    coresight: tmc: implementing TMC-ETF AUX space API
    coresight: moving struct cs_buffers to header file
    coresight: tmc: keep track of memory width
    coresight: tmc: make sysFS and Perf mode mutually exclusive
    coresight: tmc: dump system memory content only when needed
    coresight: tmc: adding mode of operation for link/sinks
    coresight: tmc: getting rid of multiple read access
    coresight: tmc: allocating memory when needed
    coresight: tmc: making prepare/unprepare functions generic
    coresight: tmc: splitting driver in ETB/ETF and ETR components
    coresight: tmc: cleaning up header file
    ...

    Linus Torvalds
     
  • Pull USB updates from Greg KH:
    "Here's the big pull request for USB and PHY drivers for 4.7-rc1

    Full details in the shortlog, but it's the normal major gadget driver
    updates, phy updates, new usbip code, as well as a bit of lots of
    other stuff.

    All have been in linux-next with no reported issues"

    * tag 'usb-4.7-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb: (164 commits)
    USB: serial: ti_usb_3410_5052: add MOXA UPORT 11x0 support
    USB: serial: fix minor-number allocation
    USB: serial: quatech2: fix use-after-free in probe error path
    USB: serial: mxuport: fix use-after-free in probe error path
    USB: serial: keyspan: fix debug and error messages
    USB: serial: keyspan: fix URB unlink
    USB: serial: keyspan: fix use-after-free in probe error path
    USB: serial: io_edgeport: fix memory leaks in probe error path
    USB: serial: io_edgeport: fix memory leaks in attach error path
    usb: Remove unnecessary space before operator ','.
    usb: Remove unnecessary space before open square bracket.
    USB: FHCI: avoid redundant condition
    usb: host: xhci-rcar: Avoid long wait in xhci_reset()
    usb/host/fotg210: remove dead code in create_sysfs_files
    usb: wusbcore: Do not initialise statics to 0.
    usb: wusbcore: Remove space before ',' and '(' .
    USB: serial: cp210x: clean up CRTSCTS flag code
    USB: serial: cp210x: get rid of magic numbers in CRTSCTS flag code
    USB: serial: cp210x: fix hardware flow-control disable
    USB: serial: option: add even more ZTE device ids
    ...

    Linus Torvalds
     
  • debug_stat sysfs is read-only and represents various debugging data that
    zram developers may need. This file is not meant to be used by anyone
    else: its content is not documented and will change any time w/o any
    notice. Therefore, the output of debug_stat file contains a version
    string. To avoid any confusion, we will increase the version number
    every time we modify the output.

    At the moment this file exports only one value -- the number of
    re-compressions, IOW, the number of times compression fast path has
    failed. This stat is temporary any will be useful in case if any
    per-cpu compression streams regressions will be reported.

    Link: http://lkml.kernel.org/r/20160513230834.GB26763@bbox
    Link: http://lkml.kernel.org/r/20160511134553.12655-1-sergey.senozhatsky@gmail.com
    Signed-off-by: Sergey Senozhatsky
    Signed-off-by: Minchan Kim
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Sergey Senozhatsky
     
  • Pull powerpc updates from Michael Ellerman:
    "Highlights:
    - Support for Power ISA 3.0 (Power9) Radix Tree MMU from Aneesh Kumar K.V
    - Live patching support for ppc64le (also merged via livepatching.git)

    Various cleanups & minor fixes from:
    - Aaro Koskinen, Alexey Kardashevskiy, Andrew Donnellan, Aneesh Kumar K.V,
    Chris Smart, Daniel Axtens, Frederic Barrat, Gavin Shan, Ian Munsie,
    Lennart Sorensen, Madhavan Srinivasan, Mahesh Salgaonkar, Markus Elfring,
    Michael Ellerman, Oliver O'Halloran, Paul Gortmaker, Paul Mackerras,
    Rashmica Gupta, Russell Currey, Suraj Jitindar Singh, Thiago Jung
    Bauermann, Valentin Rothberg, Vipin K Parashar.

    General:
    - Update LMB associativity index during DLPAR add/remove from Nathan
    Fontenot
    - Fix branching to OOL handlers in relocatable kernel from Hari Bathini
    - Add support for userspace Power9 copy/paste from Chris Smart
    - Always use STRICT_MM_TYPECHECKS from Michael Ellerman
    - Add mask of possible MMU features from Michael Ellerman

    PCI:
    - Enable pass through of NVLink to guests from Alexey Kardashevskiy
    - Cleanups in preparation for powernv PCI hotplug from Gavin Shan
    - Don't report error in eeh_pe_reset_and_recover() from Gavin Shan
    - Restore initial state in eeh_pe_reset_and_recover() from Gavin Shan
    - Revert "powerpc/eeh: Fix crash in eeh_add_device_early() on Cell"
    from Guilherme G Piccoli
    - Remove the dependency on EEH struct in DDW mechanism from Guilherme
    G Piccoli

    selftests:
    - Test cp_abort during context switch from Chris Smart
    - Add several tests for transactional memory support from Rashmica
    Gupta

    perf:
    - Add support for sampling interrupt register state from Anju T
    - Add support for unwinding perf-stackdump from Chandan Kumar

    cxl:
    - Configure the PSL for two CAPI ports on POWER8NVL from Philippe
    Bergheaud
    - Allow initialization on timebase sync failures from Frederic Barrat
    - Increase timeout for detection of AFU mmio hang from Frederic
    Barrat
    - Handle num_of_processes larger than can fit in the SPA from Ian
    Munsie
    - Ensure PSL interrupt is configured for contexts with no AFU IRQs
    from Ian Munsie
    - Add kernel API to allow a context to operate with relocate disabled
    from Ian Munsie
    - Check periodically the coherent platform function's state from
    Christophe Lombard

    Freescale:
    - Updates from Scott: "Contains 86xx fixes, minor device tree fixes,
    an erratum workaround, and a kconfig dependency fix."

    * tag 'powerpc-4.7-1' of git://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux: (192 commits)
    powerpc/86xx: Fix PCI interrupt map definition
    powerpc/86xx: Move pci1 definition to the include file
    powerpc/fsl: Fix build of the dtb embedded kernel images
    powerpc/fsl: Fix rcpm compatible string
    powerpc/fsl: Remove FSL_SOC dependency from FSL_LBC
    powerpc/fsl-pci: Add a workaround for PCI 5 errata
    powerpc/fsl: Fix SPI compatible on t208xrdb and t1040rdb
    powerpc/powernv/npu: Add PE to PHB's list
    powerpc/powernv: Fix insufficient memory allocation
    powerpc/iommu: Remove the dependency on EEH struct in DDW mechanism
    Revert "powerpc/eeh: Fix crash in eeh_add_device_early() on Cell"
    powerpc/eeh: Drop unnecessary label in eeh_pe_change_owner()
    powerpc/eeh: Ignore handlers in eeh_pe_reset_and_recover()
    powerpc/eeh: Restore initial state in eeh_pe_reset_and_recover()
    powerpc/eeh: Don't report error in eeh_pe_reset_and_recover()
    Revert "powerpc/powernv: Exclude root bus in pnv_pci_reset_secondary_bus()"
    powerpc/powernv/npu: Enable NVLink pass through
    powerpc/powernv/npu: Rework TCE Kill handling
    powerpc/powernv/npu: Add set/unset window helpers
    powerpc/powernv/ioda2: Export debug helper pe_level_printk()
    ...

    Linus Torvalds
     

20 May, 2016

2 commits

  • Pull Documentation updates from Jon Corbet:
    "A bit busier this time around.

    The most interesting thing (IMO) this time around is some beginning
    infrastructural work to allow documents to be written using
    restructured text. Maybe someday, in a galaxy far far away, we'll be
    able to eliminate the DocBook dependency and have a much better
    integrated set of kernel docs. Someday.

    Beyond that, there's a new document on security hardening from Kees,
    the movement of some sample code over to samples/, a number of
    improvements to the serial docs from Geert, and the usual collection
    of corrections, typo fixes, etc"

    * tag 'docs-for-linus' of git://git.lwn.net/linux: (55 commits)
    doc: self-protection: provide initial details
    serial: doc: Use port->state instead of info
    serial: doc: Always refer to tty_port->mutex
    Documentation: vm: Spelling s/paltform/platform/g
    Documentation/memcg: update kmem limit doc as codes behavior
    docproc: print a comment about autogeneration for rst output
    docproc: add support for reStructuredText format via --rst option
    docproc: abstract terminating lines at first space
    docproc: abstract docproc directive detection
    docproc: reduce unnecessary indentation
    docproc: add variables for subcommand and filename
    kernel-doc: use rst C domain directives and references for types
    kernel-doc: produce RestructuredText output
    kernel-doc: rewrite usage description, remove duplicated comments
    Doc: correct the location of sysrq.c
    Documentation: fix common spelling mistakes
    samples: v4l: from Documentation to samples directory
    samples: connector: from Documentation to samples directory
    Documentation: xillybus: fix spelling mistake
    Documentation: x86: fix spelling mistakes
    ...

    Linus Torvalds
     
  • Pull dmaengine updates from Vinod Koul:
    "This time round the update brings in following changes:

    - new tegra driver for ADMA device

    - support for Xilinx AXI Direct Memory Access Engine and Xilinx AXI
    Central Direct Memory Access Engine and few updates to this driver

    - new cyclic capability to sun6i and few updates

    - slave-sg support in bcm2835

    - updates to many drivers like designware, hsu, mv_xor, pxa, edma,
    qcom_hidma & bam"

    * tag 'dmaengine-4.7-rc1' of git://git.infradead.org/users/vkoul/slave-dma: (84 commits)
    dmaengine: ioatdma: disable relaxed ordering for ioatdma
    dmaengine: of_dma: approximate an average distribution
    dmaengine: core: Use IS_ENABLED() instead of checking for built-in or module
    dmaengine: edma: Re-evaluate errors when ccerr is triggered w/o error event
    dmaengine: qcom_hidma: add support for object hierarchy
    dmaengine: qcom_hidma: add debugfs hooks
    dmaengine: qcom_hidma: implement lower level hardware interface
    dmaengine: vdma: Add clock support
    Documentation: DT: vdma: Add clock support for dmas
    dmaengine: vdma: Add config structure to differentiate dmas
    MAINTAINERS: Update Tegra DMA maintainers
    dmaengine: tegra-adma: Add support for Tegra210 ADMA
    Documentation: DT: Add binding documentation for NVIDIA ADMA
    dmaengine: vdma: Add Support for Xilinx AXI Central Direct Memory Access Engine
    Documentation: DT: vdma: update binding doc for AXI CDMA
    dmaengine: vdma: Add Support for Xilinx AXI Direct Memory Access Engine
    Documentation: DT: vdma: update binding doc for AXI DMA
    dmaengine: vdma: Rename xilinx_vdma_ prefix to xilinx_dma
    dmaengine: slave means at least one of DMA_SLAVE, DMA_CYCLIC
    dmaengine: mv_xor: Allow selecting mv_xor for mvebu only compatible SoC
    ...

    Linus Torvalds
     

19 May, 2016

1 commit

  • Pull iscsi_ibft updates from Konrad Rzeszutek Wilk:
    "The pull has two features - both of them expand the SysFS entries:

    - 'prefix-len' - which is subnet_mask_prefix of the iBFT header.

    - 'acpi_header' dir with: 'iBFT', OEM-ID (whatever it extracts from
    the iBFT header) and OEM_TABLE_ID (also whatever it extracts from
    the iBFT header). This is to help NIC drivers to figure out during
    bootup how to deal with BIOS created iBFT tables (like by TianoCore
    UEFI implemenation)"

    * 'stable/for-linus-4.7' of git://git.kernel.org/pub/scm/linux/kernel/git/konrad/ibft:
    ibft: Expose iBFT acpi header via sysfs
    iscsi_ibft: Add prefix-len attr and display netmask

    Linus Torvalds
     

16 May, 2016

1 commit

  • Some ethernet adapter vendors are supplying products which support optional
    (payed license) features. On some adapters this includes a hardware iscsi
    initiator. The same adapters in a normal (no extra licenses) mode of
    operation can be used as a software iscsi initiator. In addition, software
    iscsi boot initiators are becoming a standard part of many vendors uefi
    implementations. This is creating difficulties during early boot/install
    determining the proper configuration method for these adapters when they
    are used as a boot device.

    The attached patch creates sysfs entries to expose information from the
    acpi header of the ibft table. This information allows for a method to
    easily determining if an ibft table was created by a ethernet card's
    firmware or the system uefi/bios. In the case of a hardware initiator this
    information in combination with the pci vendor and device id can be used
    to ascertain any vendor specific behaviors that need to be accommodated.

    Reviewed-by: Lee Duncan
    Signed-off-by: David Bond
    Signed-off-by: Konrad Rzeszutek Wilk

    David Bond
     

14 May, 2016

1 commit

  • In order to create a relationship model between the channels and the
    management object, we are adding support for object hierarchy to the
    drivers. This patch simplifies the userspace application development.
    We will not have to traverse different firmware paths based on device
    tree or ACPI based kernels.

    No matter what flavor of kernel is used, objects will be represented as
    platform devices.

    The new layout is as follows:

    hidmam_10: hidma-mgmt@0x5A000000 {
    compatible = "qcom,hidma-mgmt-1.0";
    ...

    hidma_10: hidma@0x5a010000 {
    compatible = "qcom,hidma-1.0";
    ...
    }
    }

    The hidma_mgmt_init detects each instance of the hidma-mgmt-1.0 objects
    in device tree and calls into the channel driver to create platform devices
    for each child of the management object.

    Signed-off-by: Sinan Kaya
    Signed-off-by: Vinod Koul

    Sinan Kaya
     

04 May, 2016

7 commits

  • Signed-off-by: Daniel Baluta
    Signed-off-by: Jonathan Cameron

    Daniel Baluta
     
  • Currently the TIA gain settings are exported to userspace as sysfs
    entries that do not clearly represent their internal relation to the
    sampling stages. The gain settings are enabled on a per-stage basis,
    this can be seen in figure 24 of the current AFE4404 datasheet.
    These gain settings should therefore be tied to the channels that are
    read during these stages. Make this change here.

    Signed-off-by: Andrew F. Davis
    Signed-off-by: Jonathan Cameron

    Andrew F. Davis
     
  • These AFEs have 4 ADC mesuring stages (called LED2, ALED2, LED1, and
    ALED1 in the datasheet), we map these as channels, these stages can serve
    different purposes depending on the application. For instance the AFE4404
    has an additional LED (LED3), this LED can be timed to be active during
    stage 2 (or anystage, but the datasheet describes this case and the name
    of the stage reflects this use). This ability is used further in upcoming
    parts that tie the front-end gain and the LED timings together. For these
    reasons we remove explicit naming the channels.

    Without channel names it is best that the index numbers are in order to
    match the stage number, reorder the channel numbers.

    Signed-off-by: Andrew F. Davis
    Signed-off-by: Jonathan Cameron

    Andrew F. Davis
     
  • Locking the two gain stages to the same setting adds no value for us,
    so initialize them as unlocked and remove the sysfs for unlocking them.
    This also allows us to greatly simplify showing and setting the gain
    registers.

    Signed-off-by: Andrew F. Davis
    Signed-off-by: Jonathan Cameron

    Andrew F. Davis
     
  • Export information about the bus stored in the FPGA's header to userspace via
    sysfs, instead of hiding it in pr_debug()s from everyone.

    Signed-off-by: Johannes Thumshirn
    Reviewed-by: Andreas Werner
    Tested-by: Andreas Werner
    Signed-off-by: Greg Kroah-Hartman

    Johannes Thumshirn
     
  • Adding management registers that convey implementation
    specific characteristics. Those are useful for trace
    configuration and collection along with general trouble
    shooting.

    Signed-off-by: Mathieu Poirier
    Signed-off-by: Greg Kroah-Hartman

    Mathieu Poirier
     
  • This driver adds support for the STM CoreSight IP block, allowing any
    system compoment (HW or SW) to log and aggregate messages via a
    single entity.

    The CoreSight STM exposes an application defined number of channels
    called stimulus port. Configuration is done using entries in sysfs
    and channels made available to userspace via configfs.

    Signed-off-by: Pratik Patel
    Signed-off-by: Mathieu Poirier
    Reviewed-by: Michael Williams
    Signed-off-by: Chunyan Zhang
    Signed-off-by: Greg Kroah-Hartman

    Pratik Patel