09 Sep, 2015

1 commit

  • Pull xen updates from David Vrabel:
    "Xen features and fixes for 4.3:

    - Convert xen-blkfront to the multiqueue API
    - [arm] Support binding event channels to different VCPUs.
    - [x86] Support > 512 GiB in a PV guests (off by default as such a
    guest cannot be migrated with the current toolstack).
    - [x86] PMU support for PV dom0 (limited support for using perf with
    Xen and other guests)"

    * tag 'for-linus-4.3-rc0-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/xen/tip: (33 commits)
    xen: switch extra memory accounting to use pfns
    xen: limit memory to architectural maximum
    xen: avoid another early crash of memory limited dom0
    xen: avoid early crash of memory limited dom0
    arm/xen: Remove helpers which are PV specific
    xen/x86: Don't try to set PCE bit in CR4
    xen/PMU: PMU emulation code
    xen/PMU: Intercept PMU-related MSR and APIC accesses
    xen/PMU: Describe vendor-specific PMU registers
    xen/PMU: Initialization code for Xen PMU
    xen/PMU: Sysfs interface for setting Xen PMU mode
    xen: xensyms support
    xen: remove no longer needed p2m.h
    xen: allow more than 512 GB of RAM for 64 bit pv-domains
    xen: move p2m list if conflicting with e820 map
    xen: add explicit memblock_reserve() calls for special pages
    mm: provide early_memremap_ro to establish read-only mapping
    xen: check for initrd conflicting with e820 map
    xen: check pre-allocated page tables for conflict with memory map
    xen: check for kernel memory conflicting with memory layout
    ...

    Linus Torvalds
     

05 Sep, 2015

1 commit

  • Pull GPIO updates from Linus Walleij:
    "This is the bulk of GPIO changes for the v4.3 kernel cycle.

    There is quite a lot going on in the GPIO subsystem this merge window,
    so the main matter is decribed below.

    The hits in other subsystems when making the GPIO flags optional are
    all ACKed by their respective subsystem maintainers.

    Core changes:

    - Root out the wrapper devm_gpiod_get() and gpiod_get() etc versions
    of the descriptor calls that did not use the flags argument on the
    end. This was around for too long and eventually Uwe Kleine-König
    took the time to clean it out and the last users are removed along
    with the macros in this tag. In several cases the use of flags
    simplifies the code. For this reason we have (ACKed) patches
    hitting in DRM, IIO, media, NFC, USB+PHY up until we hammer in the
    nail with removing the macros.

    - Add a fat document describing how much ready-made GPIO stuff we
    have i the kernel to discourage people from reinventing a square
    wheel in userspace, as so often happens.

    - Create a separate lockdep class for each instance of a GPIO IRQ
    chip instead of using one class for all chips, as the current code
    will not work with systems with several GPIO chips doing lockdep
    debugging.

    - Protect against driver unloading also when a GPIO line is only used
    as IRQ for the GPIOLIB_IRQCHIP helpers.

    - If the GPIO chip has no designated owner, assign the parent device
    driver owner as owner.

    - Consolidation of chained IRQ handler install/remove replacing all
    call sites where irq_set_handler_data() and
    irq_set_chained_handler() were done in succession with a combined
    call to irq_set_chained_handler_and_data().

    This series was created by Thomas Gleixner after the problem was
    observed by Russell King.

    - Tglx also made another series of patches switching
    __irq_set_handler_locked() for irq_set_handler_locked() which is
    way cleaner.

    - Tglx and Jiang Liu wrote a good bunch of patches to make use of
    irq_desc_get_xxx() accessors and avoid looking up irq_descs from
    IRQ numbers. The goal is to get rid of the irq number from the
    handlers in the IRQ flow which is nice.

    - Rob Herring killed off the set_irq_flags() for all GPIO drivers.
    This was an ARM specific function that is replaced with the generic
    irq_modify_status() where special flags are actually needed.

    - When an OF node has a pin range for its GPIOs, return -EPROBE_DEFER
    if the pin controller isn't available. Pretty logical, yet needed
    to be fixed.

    - If a driver using GPIOLIB_IRQCHIP has its own irq_*_resources call
    back, then call these instead of the defaults provided by the
    GPIOLIB.

    - Fix an undocumented ABI hole: named GPIOs were not properly
    documented.

    Driver improvements:

    - Add get_direction() support to the generic GPIO driver, it's
    strange that we didn't have that before.

    - Make it possible to have input-only GPIO chips using the generic
    GPIO driver.

    - Clean out platform data support from the Emma Mobile (EM) driver

    - Finegrained runtime PM support for the RCAR driver.

    - Support r8a7795 (R-car H3) in the RCAR driver.

    - Support interrupts on GPIOs 16 thru 31 in the DaVinci driver.

    - Some consolidation and new support in the MPC8xxx driver, we now
    support MPC5125.

    - Preempt-RT-friendly patches: the OMAP, MPC8xxx, drivers uses raw
    spinlocks making it work better with the realime patches.

    - Interrupt support for the EXTRAXFS GPIO driver.

    - Make the ETRAXFS GPIO driver support also ARTPEC-3.

    - Interrupt and wakeup support for the BRCMSTB driver, also for
    wakeup from S5 cold boot.

    - Mask MXC IRQs during suspend.

    - Improve OMAP2 GPIO set_debounce() to work according to spec.

    - The VF610 driver handles IRQs properly.

    New drivers:

    - ZTE ZX GPIO driver"

    * tag 'gpio-v4.3-1' of git://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-gpio: (87 commits)
    Revert "gpio: extraxfs: fix returnvar.cocci warnings"
    gpio: tc3589x: use static container helper
    gpio: xlp: fix error return code
    gpio: vf610: handle level IRQ's properly
    gpio: max732x: Fix error handling in probe()
    gpio: omap: fix clk_prepare/unprepare usage
    gpio: omap: protect regs access in omap_gpio_irq_handler
    gpio: omap: fix omap2_set_gpio_debounce
    gpio: omap: switch to use platform_get_irq
    gpio: omap: remove wrong irq_domain_remove usage in probe
    gpiolib: add description for gpio irqchip fields in struct gpio_chip
    gpio: extraxfs: fix returnvar.cocci warnings
    gpiolib: irqchip: use different lockdep class for each gpio irqchip
    gpio/grgpio: fix deadlock in grgpio_irq_unmap()
    Documentation: gpio: consumer: describe active low property
    gpio: mxc: fix section mismatch warning
    gpio/mxc: mask gpio interrupts in suspend
    gpio: omap: Fix missing raw locks conversion
    gpio: brcmstb: support wakeup from S5 cold boot
    gpio: brcmstb: Add interrupt and wakeup source support
    ...

    Linus Torvalds
     

04 Sep, 2015

1 commit

  • Pull powerpc updates from Michael Ellerman:

    - support "hybrid" iommu/direct DMA ops for coherent_mask < dma_mask
    from Benjamin Herrenschmidt

    - EEH fixes for SRIOV from Gavin

    - introduce rtas_get_sensor_fast() for IRQ handlers from Thomas Huth

    - use hardware RNG for arch_get_random_seed_* not arch_get_random_*
    from Paul Mackerras

    - seccomp filter support from Michael Ellerman

    - opal_cec_reboot2() handling for HMIs & machine checks from Mahesh
    Salgaonkar

    - add powerpc timebase as a trace clock source from Naveen N. Rao

    - misc cleanups in the xmon, signal & SLB code from Anshuman Khandual

    - add an inline function to update POWER8 HID0 from Gautham R. Shenoy

    - fix pte_pagesize_index() crash on 4K w/64K hash from Michael Ellerman

    - drop support for 64K local store on 4K kernels from Michael Ellerman

    - move dma_get_required_mask() from pnv_phb to pci_controller_ops from
    Andrew Donnellan

    - initialize distance lookup table from drconf path from Nikunj A
    Dadhania

    - enable RTC class support from Vaibhav Jain

    - disable automatically blocked PCI config from Gavin Shan

    - add LEDs driver for PowerNV platform from Vasant Hegde

    - fix endianness issues in the HVSI driver from Laurent Dufour

    - kexec endian fixes from Samuel Mendoza-Jonas

    - fix corrupted pdn list from Gavin Shan

    - fix fenced PHB caused by eeh_slot_error_detail() from Gavin Shan

    - Freescale updates from Scott: Highlights include 32-bit memcpy/memset
    optimizations, checksum optimizations, 85xx config fragments and
    updates, device tree updates, e6500 fixes for non-SMP, and misc
    cleanup and minor fixes.

    - a ton of cxl updates & fixes:
    - add explicit precision specifiers from Rasmus Villemoes
    - use more common format specifier from Rasmus Villemoes
    - destroy cxl_adapter_idr on module_exit from Johannes Thumshirn
    - destroy afu->contexts_idr on release of an afu from Johannes
    Thumshirn
    - compile with -Werror from Daniel Axtens
    - EEH support from Daniel Axtens
    - plug irq_bitmap getting leaked in cxl_context from Vaibhav Jain
    - add alternate MMIO error handling from Ian Munsie
    - allow release of contexts which have been OPENED but not STARTED
    from Andrew Donnellan
    - remove use of macro DEFINE_PCI_DEVICE_TABLE from Vaishali Thakkar
    - release irqs if memory allocation fails from Vaibhav Jain
    - remove racy attempt to force EEH invocation in reset from Daniel
    Axtens
    - fix + cleanup error paths in cxl_dev_context_init from Ian Munsie
    - fix force unmapping mmaps of contexts allocated through the kernel
    api from Ian Munsie
    - set up and enable PSL Timebase from Philippe Bergheaud

    * tag 'powerpc-4.3-1' of git://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux: (140 commits)
    cxl: Set up and enable PSL Timebase
    cxl: Fix force unmapping mmaps of contexts allocated through the kernel api
    cxl: Fix + cleanup error paths in cxl_dev_context_init
    powerpc/eeh: Fix fenced PHB caused by eeh_slot_error_detail()
    powerpc/pseries: Cleanup on pci_dn_reconfig_notifier()
    powerpc/pseries: Fix corrupted pdn list
    powerpc/powernv: Enable LEDS support
    powerpc/iommu: Set default DMA offset in dma_dev_setup
    cxl: Remove racy attempt to force EEH invocation in reset
    cxl: Release irqs if memory allocation fails
    cxl: Remove use of macro DEFINE_PCI_DEVICE_TABLE
    powerpc/powernv: Fix mis-merge of OPAL support for LEDS driver
    powerpc/powernv: Reset HILE before kexec_sequence()
    powerpc/kexec: Reset secondary cpu endianness before kexec
    powerpc/hvsi: Fix endianness issues in the HVSI driver
    leds/powernv: Add driver for PowerNV platform
    powerpc/powernv: Create LED platform device
    powerpc/powernv: Add OPAL interfaces for accessing and modifying system LED states
    powerpc/powernv: Fix the log message when disabling VF
    cxl: Allow release of contexts which have been OPENED but not STARTED
    ...

    Linus Torvalds
     

02 Sep, 2015

1 commit

  • Pull HID updates from Jiri Kosina:
    "to receive patches queued for 4.3 merge window in HID tree. Highlights:

    - a lot of improvements (regarding supported features and devices) to
    Wacom driver, from Aaron Skomra and Jason Gerecke
    - a lot of functional fixes and support for large I2C transfer to
    cp2112 driver, from Ellen Wang
    - HW support improvements to RMI driver, from Andrew Duggan
    - quite some small fixes and device ID additions all over the place"

    * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jikos/hid: (44 commits)
    HID: wacom: wacom_setup_numbered_buttons is local to wacom_wac
    HID: wacom: Add support for Express Key Remote.
    HID: wacom: Set button bits based on a new numbered_buttons
    HID: quirks: add QUIRK_NOGET for an other TPV touchscreen
    HID: usbhid: Fix the check for HID_RESET_PENDING in hid_io_error
    HID: i2c-hid: Only disable irq wake if it was successfully enabled during suspend
    HID: wacom: Use tablet-provided touch height/width values for INTUOSHT
    HID: gembird: add new driver to fix Gembird JPD-DualForce 2
    HID: lenovo: Hide middle-button press until release
    HID: lenovo: Add missing return-value check
    HID: lenovo: Use constants for axes names
    HID: wacom: Simplify 'wacom_pl_irq'
    HID: wacom: Do not repeatedly attempt to set device mode on error
    HID: wacom: Do not repeatedly attempt to set device mode on error
    HID: wacom: Remove WACOM_QUIRK_NO_INPUT
    HID: wacom: Replace WACOM_QUIRK_MONITOR with WACOM_DEVICETYPE_WL_MONITOR
    HID: wacom: Use calculated pkglen for wireless touch interface
    HID: sony: Fix DS4 controller reporting rate issues
    HID: chicony: Add support for Acer Aspire Switch 12
    HID: hid-lg: Add USBID for Logitech G29 Wheel
    ...

    Linus Torvalds
     

01 Sep, 2015

4 commits

  • …lenovo', 'for-4.3/logitech', 'for-4.3/multitouch', 'for-4.3/picolcd', 'for-4.3/rmi', 'for-4.3/sensor-hub', 'for-4.3/sony' and 'for-4.3/wacom' into for-linus

    Jiri Kosina
     
  • Pull power supply and reset changes from Sebastian Reichel:
    - new reset driver for ZTE SoCs
    - add support for sama5d3 reset handling
    - overhaul of twl4030 charger driver
    - misc fixes and cleanups

    * tag 'for-v4.3' of git://git.kernel.org/pub/scm/linux/kernel/git/sre/linux-power-supply: (35 commits)
    bq2415x_charger: Allow to load and use driver even if notify device is not registered yet
    twl4030_charger: fix compile error when TWL4030_MADC not available.
    power: bq24190_charger: Fix charge type sysfs property
    power: Allow compile test of GPIO consumers if !GPIOLIB
    power: Export I2C module alias information in missing drivers
    twl4030_charger: Increase current carefully while watching voltage.
    twl4030_charger: add ac/mode to match usb/mode
    twl4030_charger: add software controlled linear charging mode.
    twl4030_charger: enable manual enable/disable of usb charging.
    twl4030_charger: allow max_current to be managed via sysfs.
    twl4030_charger: distinguish between USB current and 'AC' current
    twl4030_charger: allow fine control of charger current.
    twl4030_charger: split uA calculation into a function.
    twl4030_charger: trust phy to determine when USB power is available.
    twl4030_charger: correctly handle -EPROBE_DEFER from devm_usb_get_phy_by_node
    twl4030_charger: convert to module_platform_driver instead of ..._probe.
    twl4030_charger: use runtime_pm to keep usb phy active while charging.
    rx51-battery: Set name to rx51-battery
    MAINTAINERS: AVS is not maintained via power supply tree
    power: olpc_battery: clean up eeprom read function
    ...

    Linus Torvalds
     
  • Pull USB updates from Greg KH:
    "Here's the big USB and PHY patchset for 4.3-rc1.

    As usual, the majority of the changes are in the USB gadget portion of
    the tree, lots of little changes all over the place for bugs and new
    hardware. Other than that, the normal mix of new hardware support and
    bugfixes.

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

    * tag 'usb-4.3-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb: (261 commits)
    USB: qcserial: add HP lt4111 LTE/EV-DO/HSPA+ Gobi 4G Module
    USB: ftdi_sio: Added custom PID for CustomWare products
    USB: usb_wwan: silence read errors on disconnect
    USB: option: silence interrupt errors
    USB: symbolserial: Correct transferred data size
    USB: symbolserial: Use usb_get_serial_port_data
    usb: misc: usbtest: format max packet size for iso transfer
    usb: host: ehci-sys: delete useless bus_to_hcd conversion
    Revert "usb: interface authorization: Declare authorized attribute"
    Revert "usb: interface authorization: Introduces the default interface authorization"
    Revert "usb: interface authorization: Control interface probing and claiming"
    Revert "usb: interface authorization: Introduces the USB interface authorization"
    Revert "usb: interface authorization: SysFS part of USB interface authorization"
    Revert "usb: interface authorization: Documentation part"
    Revert "usb: interface authorization: Use a flag for the default device authorization"
    usb: core: hub: Removed some warnings generated by checkpatch.pl
    USB: host: ohci-at91: merge loops in ohci_hcd_at91_drv_probe
    USB: host: ohci-at91: merge ohci_at91_of_init in ohci_hcd_at91_drv_probe
    USB: host: ohci-at91: depend on OF
    USB: host: ohci-at91: move at91_usbh_data definition in c file
    ...

    Linus Torvalds
     
  • Pull staging driver updates from Greg KH:
    "Here is the big staging driver updates for 4.3-rc1.

    Lots of things all over the place, almost all of them trivial fixups
    and changes. The usual IIO updates and new drivers and we have added
    the MOST driver subsystem which is getting cleaned up in the tree.
    The ozwpan driver is finally being deleted as it is obviously
    abandoned and no one cares about it.

    Full details are in the shortlog, and all of these have been in
    linux-next with no reported issues"

    * tag 'staging-4.3-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging: (912 commits)
    staging/lustre/o2iblnd: remove references to ib_reg_phsy_mr()
    staging: wilc1000: fix build warning with setup_timer()
    staging: wilc1000: remove DECLARE_WILC_BUFFER()
    staging: wilc1000: remove void function return statements that are not useful
    staging: wilc1000: coreconfigurator.c: fix kmalloc error check
    staging: wilc1000: coreconfigurator.c: use kmalloc instead of WILC_MALLOC
    staging: wilc1000: remove unused codes of gps8ConfigPacket
    staging: wilc1000: remove unnecessary void pointer cast
    staging: wilc1000: remove WILC_NEW and WILC_NEW_EX
    staging: wilc1000: use kmalloc instead of WILC_NEW
    staging: wilc1000: Process WARN, INFO options of debug levels from user
    staging: wilc1000: remove unneeded tstrWILC_MsgQueueAttrs typedef
    staging: wilc1000: delete wilc_osconfig.h
    staging: wilc1000: delete wilc_log.h
    staging: wilc1000: delete wilc_timer.h
    staging: wilc1000: remove WILC_TimerStart()
    staging: wilc1000: remove WILC_TimerCreate()
    staging: wilc1000: remove WILC_TimerDestroy()
    staging: wilc1000: remove WILC_TimerStop()
    staging: wilc1000: remove tstrWILC_TimerAttrs typedef
    ...

    Linus Torvalds
     

29 Aug, 2015

1 commit


20 Aug, 2015

1 commit


19 Aug, 2015

1 commit


15 Aug, 2015

2 commits

  • This part adds the documentation for the interface authorization.

    Signed-off-by: Stefan Koch
    Signed-off-by: Greg Kroah-Hartman

    Stefan Koch
     
  • Felipe writes:

    usb: patches for v4.3 merge window

    New support for Allwinne SoC on the MUSB driver has been added to the list of
    glue layers. MUSB also got support for building all DMA engines in one binary;
    this will be great for distros.

    DWC3 now has no trace of dev_dbg()/dev_vdbg() usage. We will rely solely on
    tracing to debug DWC3. There was also a fix for memory corruption with EP0 when
    maxpacket size transfers are > 512 bytes.

    Robert's EP capabilities flags is making EP selection a lot simpler. UDCs are
    now required to set these flags up when adding endpoints to the framework.

    Other than these, we have the usual set of miscelaneous cleanups and minor
    fixes.

    Signed-off-by: Felipe Balbi

    Greg Kroah-Hartman
     

14 Aug, 2015

1 commit

  • Provide a kernel API and a sysfs entry which allow a user to specify
    that when a card is PERSTed, it's image will stay the same, allowing
    it to participate in EEH.

    cxl_reset is used to reflash the card. In that case, we cannot safely
    assert that the image will not change. Therefore, disallow cxl_reset
    if the flag is set.

    Signed-off-by: Daniel Axtens
    Signed-off-by: Michael Ellerman

    Daniel Axtens
     

13 Aug, 2015

3 commits

  • Linux 4.2-rc4

    Linus Walleij
     
  • commit 926b663ce8215ba448960e1ff6e58b67a2c3b99b
    "gpiolib: allow GPIOs to be named" added the ability to
    name GPIO lines by an array of names stored in the GPIO
    chip. This was in 2009 and has been an ABI since. Let's
    document it properly.

    Cc: Daniel Silverstone
    Cc: Markus Pargmann
    Cc: Johan Hovold
    Cc: Uwe Kleine-König
    Signed-off-by: Linus Walleij

    Linus Walleij
     
  • …3/iio into staging-next

    Jonathan writes:

    Second set of new device support, features and cleanup for the 4.3 cycle.
    Take 2 also includes a fix set that was too late for the 4.2 cycle.

    As we had a lot of tools and docs work in this set, I have broken those
    out into their own categories in this description.

    Fixes from the pull request '4th set of IIO fixes for the 4.2 cycle'.
    * Poll functions for both event chardev and the buffer one were returning
    negative error codes (via a positive value).
    * A recent change to lsiio adding some error handling that was wrong and
    stopped the tool working.
    * bmg160 was missing some dependencies in Kconfig
    * berlin2-adc had a misshandled register (wrote a value rather than a bitmap)

    New device support
    * TI opt3001 light sensor
    * TXC PA12 ALS and proximity sensor.
    * mcp3301 ADC support (in mcp320x driver)
    * ST lsm303agr accelerometer and magnetometer drivers (plus some st-sensors
    common support to allow different WHOAMI register addresses, devices with
    fixed scale and allow interrupt equiped magnetometers).
    * ADIS16305, ADIS16367, ADIS16445IMUs (in the adis16400 driver)
    * ADIS16266 gyro (in the adis16260 driver)
    * ADIS16137 gyro (in the adis16136 driver)

    New functionality
    * mmc35240 DT bindings.
    * Inverse unit conversion macros to aid handing of values written to sysfs
    attributes.

    Core cleanup
    * Forward declaration of struct iio_trigger to avoid a compile warning.

    Driver cleanup / fixes
    * mxs-lradc
    - Clarify which parts are supported.
    - Fix spelling erorrs.
    - Missing/extra includes
    - reorder includes
    - add datasheet name listings for all usable channels (to allow them
    to be bound by name from consumer drivers)
    * acpi-als - add some function prefixes as per general iio style.
    * bmc150_magn - replace a magic value with the existing define.
    * vf610 - determine possible sample frequencies taking into account the
    electrical characteristics (defining a minimum sample time)
    * dht11
    - whitespace
    - additional docs
    - avoid mulitple assignments in one line
    - Use the new funciton ktime_get_resolution_ns to cleanup a nasty trick
    previously used for timing.
    * Fix all drivers that consider 0 a valid IRQ for historical reasons.
    * Export I2C module alias info where previously missing (to allow autoprobing)
    * Export OF module alias info where previously missing.
    * mmc35240 - switch some variables into arrays to improve readability.
    * mlx90614 - define some magic numbers for readability.
    * bmc150_magn
    - expand area locked by a mutex to cover all the use of the
    data->buffer.
    - use descriptive naming for a mask instead of a magic value.
    * berin2-adc
    - pass up an error code rather that a generic error
    - constify the iio_chan_spec
    - some other little tidy ups.
    * stk8312
    - fix a dependency on triggered buffers in kconfig
    - add a check for invalid attribute values
    - improve error handling by returning error codes where possible and
    return immediately where relevant
    - rework macro defs to use GENMASK etc
    - change some variable types to reduce unnecessary casting
    - clean up code style
    - drop a local buffer copy for bulk reads and use the one in data->buffer
    instead.
    * adis16400 - the adis16448 gyroscope scale was wrong.
    * adis16480 - some more wrong scales for various parts.
    * adis16300 - has an undocumented product id and serial number registers so
    use them.
    * iio_simple_dummy - fix some wrong code indentation.
    * bmc150-accel - use the chip ID to detect the chip present rather than
    verifying the expected part was there. This was in response to a wrong
    ACPI entry on the WinBook TW100.
    * mma8452
    - fix _get_hp_filter_index
    - drop a double include
    - pass up an error code rather than rewriting it
    - range check input values to attribute writes
    - register defs tidy up using GENMASK and reordering them to be easier to
    follow.
    - various coding style cleanups
    - put the Kconfig entry in the write place (alphabetically).

    Tools related
    * Tools cleanup - drop an explicity NULL comparison, some unnecessary braces,
    use the ARRAY_SIZE macro, send error messages to stderr instead of dropping
    them in the middle of normal output.
    * Fix tools to allow that scale and offset attributes are optional.
    * More tools fixes including allowing true 32bit data (previously an overflow
    prevented more than 31bits)
    * Drop a stray header guard that ended up in a c file.
    * Make calc_digits static as it isn't exported or in the header.
    * Set ci_array pointer to NULL after free as a protection against non safe
    usage of the tools core code. Also convert a double pointer to a single
    one as the extra level of indirection was unnecessary.

    Docs
    * DocBook introduction by Daniel Baluta. Glad we are beginning to
    draw together some more introductory docs to suplement the various
    tools / examples.
    * Drop bytes_per_datum sysfs attribute docs as it no longer exists.
    * A whole load of missing / fixing of kernel-doc for the core of IIO.
    * Document the trigger name sysfs attribute in the ABI docs.
    * Minor typos in the ABI docs related to power down modes.

    Greg Kroah-Hartman
     

09 Aug, 2015

1 commit


08 Aug, 2015

1 commit


06 Aug, 2015

4 commits

  • Now that we have the nvmem framework, we can consolidate the common
    driver code. Move the driver to the framework, and hopefully, it will
    fix the sysfs file creation race.

    Signed-off-by: Maxime Ripard
    [srinivas.kandagatla: Moved to regmap based EEPROM framework]
    Signed-off-by: Srinivas Kandagatla
    Tested-by: Philipp Zabel
    Tested-by: Rajendra Nayak
    Signed-off-by: Greg Kroah-Hartman

    Maxime Ripard
     
  • 'ctxid_val' array was used to store the value of ETM context ID comparator
    which actually stores the process ID to be traced, so using 'ctxid_pid' as
    its name instead make it easier to understand.

    This patch also changes the ABI, it is normally not allowed, but
    fortunately it is a testing ABI and very new for now. Nevertheless,
    if you don't think it should be changed, we could always add an alias
    for userspace.

    Signed-off-by: Chunyan Zhang
    Reviewed-by: Mark Brown
    Signed-off-by: Mathieu Poirier
    Signed-off-by: Greg Kroah-Hartman

    Chunyan Zhang
     
  • 'ctxid_val' array was used to store the value of ETM context ID comparator
    which actually stores the process ID to be traced, so using 'ctxid_pid' as
    its name instead make it easier to understand.

    This patch also changes the ABI, it is normally not allowed, but
    fortunately it is a testing ABI and very new for now. Nevertheless,
    if you don't think it should be changed, we could always add an alias
    for userspace.

    Signed-off-by: Chunyan Zhang
    Reviewed-by: Mark Brown
    Signed-off-by: Mathieu Poirier
    Signed-off-by: Greg Kroah-Hartman

    Chunyan Zhang
     
  • The 4 sysfs files should be stable ABIs to the user space.

    Signed-off-by: Dexuan Cui
    Signed-off-by: K. Y. Srinivasan
    Signed-off-by: Greg Kroah-Hartman

    Dexuan Cui
     

05 Aug, 2015

4 commits

  • This allows AC charging to be turned off, much like usb charging.
    "continuous" mode is not available though.

    Acked-by: Pavel Machek
    Signed-off-by: NeilBrown
    Signed-off-by: Sebastian Reichel

    NeilBrown
     
  • Add a 'continuous' option for usb charging which enables
    the "linear" charging mode of the twl4030.

    Linear charging does a good job with not-so-reliable power sources.
    Auto mode does not work well as it switches off when voltage drops
    momentarily. Care must be taken not to over-charge.

    It was used with a bike hub dynamo since a year or so. In that case
    there are automatically charging stops when the cyclist needs a break.

    Original-by: Andreas Kemnade
    Signed-off-by: NeilBrown
    Signed-off-by: Sebastian Reichel

    NeilBrown
     
  • 'off' or 'auto' to

    /sys/class/power/twl4030_usb/mode

    will now enable or disable charging from USB port. Normally this is
    enabled on 'plug' and disabled on 'unplug'.
    Unplug will still disable charging. 'plug' will only enable it if
    'auto' if selected.

    Acked-by: Pavel Machek
    Signed-off-by: NeilBrown
    Signed-off-by: Sebastian Reichel

    NeilBrown
     
  • 'max_current' sysfs attributes are created which allow the
    max to be set.
    Whenever a current source changes, the default is restored.
    This will be followed by a uevent, so user-space can decide to
    update again.

    Acked-by: Pavel Machek
    Signed-off-by: NeilBrown
    Signed-off-by: Sebastian Reichel

    NeilBrown
     

04 Aug, 2015

1 commit


31 Jul, 2015

2 commits


23 Jul, 2015

1 commit


21 Jul, 2015

1 commit


19 Jul, 2015

1 commit


16 Jul, 2015

1 commit

  • …iio into staging-next

    Jonathan writes:

    First round of new drivers, cleanups and functionality for IIO in the 4.3 cycle.

    Core and tools new stuff
    * Allow explicit flush of hardware fifo by using an non blocking read.
    This is needed to support some of the Android requirements for HW fifo
    devices - also makes sense generally and clarifies a corner of the ABI.
    * Add some missing modifier names. Mostly these exist for weird and
    wonderful event types, but should still be present in the name array.
    * Update iio_event_monitor to cope with new channel types.
    * generic_buffer gains support for single byte scan elements (no idea
    how this never got implemented before!)

    New device support
    * ROHM rpr0521 light and proximity sensor driver.
    * bmc150 gains bmc156 support.
    * ms5611 gains ms5607 temperature and pressure sensor support.

    Driver functionality
    * inv-mpu - add scale_available attributes to aid userspace in
    configuring these devices.
    * isl29125 - add scale_available attributes.
    * stk8ba50 - sampling frequency control, triggered buffer support.
    * stk8312 - sampling frequency control, triggered buffer support.
    * cc10001 - ensure ADC powered up at probe time if shared by non linux
    running CPUs.
    * bmc150-magn - decouple the buffer and trigger allowing other triggers
    to be used to drive this device's sampling.
    Documentation
    * Add some previously missed *scale_available attributes to the ABI docs.

    Cleanups
    * Clarify some crazy naming in iio_triggered_buffer_setup that seems to
    have somehow ended up backwards (dates back a long way). Avoid the top
    half and bottom half naming entirely given we are how dealing with a
    handler and a thread in all cases.
    * Tools cleanup including coding style, variable naming improvements, also
    a new sanity check on a full event having been read.
    * stk8ba50 - replace the scale table with a struct for clarity. Also suspend
    the sensor if an error occurs in init.
    * hid-sensor-prox - drop uneeded line break.
    * mma9551 - use size in words for word read / write avoiding accidental
    sending of an odd number of bytes.
    * mma9553 - fix code alignment and document the use of a mutex.
    * light/Kconfig - typo fix in commment.
    * cm3323 - don't eat an error value, replace an unneeded local variable with
    a generic local variable with the same use, add some blank lines for clarity.
    * pressure/Kconfig - typo in Measurement Specialties name.
    * bmc150-accel - actually use a mask definition rather than repeating the
    value inline, code style cleanup.
    * adc/Kconfig - general help description cleanup.
    * ssp_sensors - drop redundant spi driver bus initialization (done in the
    spi core)
    * tmp006 - use genmask rather than hand generated masks.
    * ms5611 - drop IIO_CHAN_INFO_SCALE as this driver provides a processed
    output and as such the read only scale adds nothing useful.
    * kxcjk-1013, adf4350, dummy - drop unwanted blank lines.
    * Drop all owner assignments from i2c_drivers and this is done in the
    i2c core.

    Greg Kroah-Hartman
     

14 Jul, 2015

1 commit

  • …jic23/iio into staging-linus

    Jonathan writes:

    First set of IIO fixes for the 4.2 cycle.

    * Fix a regression in hid sensors suspend time as a result of adding runtime
    pm. The normal flow of waking up devices in order to go into suspend
    (given the devices are normally suspended when not reading) to a regression
    in suspend time on some laptops (reports of an additional 8 seconds).
    Fix this by checking to see if a user action resulting in the wake up, and
    make it a null operation if it didn't. Note that for hid sensors, there is
    nothing useful to be done when moving into a full suspend from a runtime
    suspend so they might as well be left alone.
    * rochip_saradc: fix some missing MODULE_* data including the licence so that
    the driver does not taint the kernel incorrectly and can build as a module.
    * twl4030 - mark irq as oneshot as it always should have been.
    * inv-mpu - write formats for attributes not specified, leading to miss
    interpretation of the gyro scale channel when written.
    * Proximity ABI clarification. This had snuck through as a mess. Some
    drivers thought proximity went in one direction, some the other. We went
    with the most common option, documented it and fixed up the drivers going
    the other way. Fix for sx9500 included in this set.
    * ad624r - fix a wrong shift in the output data.
    * at91_adc - remove a false limit on the value of the STARTUP register
    applied by too small a type for the device tree parameter.
    * cm3323 - clear the bits when setting the integration time (otherwise
    we can only ever set more bits in the relevant field).
    * bmc150-accel - multiple triggers are registered, but on error were not being
    unwound in the opposite order leading to removal of triggers that had not
    yet successfully been registered (count down instead of up when unwinding).
    * tcs3414 - ensure right part of val / val2 pair read so that the integration
    time is not always 0.
    * cc10001_adc - bug in kconfig dependency. Use of OR when AND was intended.

    Greg Kroah-Hartman
     

02 Jul, 2015

1 commit

  • …linux-platform-drivers-x86

    Pull x86 platform driver updates from Darren Hart:
    "Fairly routine update for platform-drivers-x86.

    Mostly fixes and cleanups, with a significant refactoring of toshiba*
    drivers. Includes the addition of the dell-rbtn driver.

    Details:

    asus-wmi:
    - fan control

    dell*:
    - add Dell airplane mode switch driver

    ideapad-laptop:
    - platform rfkill fixes, and regression fix

    pvpanic:
    - handle missing _STA correctly

    toshiba*:
    - rafactor bluetooth support
    - haps documentation
    - driver cleanup

    other:
    - Use acpi_video_unregister_backlight instead of
    acpi_video_unregister in serveral drivers.
    - Orphan msi-wmi.

    * tag 'platform-drivers-x86-v4.2-1' of git://git.infradead.org/users/dvhart/linux-platform-drivers-x86: (24 commits)
    MAINTAINERS: Orphan x86 driver msi-wmi
    ideapad: fix software rfkill setting
    dell-laptop: Use dell-rbtn instead i8042 filter when possible
    dell-rbtn: Export notifier for other kernel modules
    dell-rbtn: Dell Airplane Mode Switch driver
    samsung-laptop: Use acpi_video_unregister_backlight instead of acpi_video_unregister
    asus-wmi: Use acpi_video_unregister_backlight instead of acpi_video_unregister
    apple_gmux: Use acpi_video_unregister_backlight instead of acpi_video_unregister
    pvpanic: handle missing _STA correctly
    ideapad_laptop: Lenovo G50-30 fix rfkill reports wireless blocked
    asus-wmi: add fan control
    Documentation/ABI: Add file describing the sysfs entries for toshiba_haps
    toshiba_haps: Make use of DEVICE_ATTR_{RW, WO} macros
    toshiba_haps: Replace sscanf with kstrtoint
    toshiba_acpi: Bump driver version to 0.22
    toshiba_acpi: Remove TOS_FAILURE check from some functions
    toshiba_acpi: Comments cleanup
    toshiba_acpi: Rename hci_{read, write}1 functions
    toshiba_acpi: Remove no longer needed hci_{read, write}2 functions
    toshiba_bluetooth: Change BT status message to debug
    ...

    Linus Torvalds
     

28 Jun, 2015

1 commit

  • Pull security subsystem updates from James Morris:
    "The main change in this kernel is Casey's generalized LSM stacking
    work, which removes the hard-coding of Capabilities and Yama stacking,
    allowing multiple arbitrary "small" LSMs to be stacked with a default
    monolithic module (e.g. SELinux, Smack, AppArmor).

    See
    https://lwn.net/Articles/636056/

    This will allow smaller, simpler LSMs to be incorporated into the
    mainline kernel and arbitrarily stacked by users. Also, this is a
    useful cleanup of the LSM code in its own right"

    * 'next' of git://git.kernel.org/pub/scm/linux/kernel/git/jmorris/linux-security: (38 commits)
    tpm, tpm_crb: fix le64_to_cpu conversions in crb_acpi_add()
    vTPM: set virtual device before passing to ibmvtpm_reset_crq
    tpm_ibmvtpm: remove unneccessary message level.
    ima: update builtin policies
    ima: extend "mask" policy matching support
    ima: add support for new "euid" policy condition
    ima: fix ima_show_template_data_ascii()
    Smack: freeing an error pointer in smk_write_revoke_subj()
    selinux: fix setting of security labels on NFS
    selinux: Remove unused permission definitions
    selinux: enable genfscon labeling for sysfs and pstore files
    selinux: enable per-file labeling for debugfs files.
    selinux: update netlink socket classes
    signals: don't abuse __flush_signals() in selinux_bprm_committed_creds()
    selinux: Print 'sclass' as string when unrecognized netlink message occurs
    Smack: allow multiple labels in onlycap
    Smack: fix seq operations in smackfs
    ima: pass iint to ima_add_violation()
    ima: wrap event related data to the new ima_event_data structure
    integrity: add validity checks for 'path' parameter
    ...

    Linus Torvalds
     

27 Jun, 2015

3 commits

  • Pull USB updates from Greg KH:
    "Here's the big USB patchset for 4.2-rc1. As is normal these days, the
    majority of changes are in the gadget drivers, with a bunch of other
    small driver changes.

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

    * tag 'usb-4.2-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb: (175 commits)
    usb: dwc3: Use ASCII space in Kconfig
    usb: chipidea: add work-around for Marvell HSIC PHY startup
    usb: chipidea: allow multiple instances to use default ci_default_pdata
    dt-bindings: Consolidate ChipIdea USB ci13xxx bindings
    phy: add Marvell HSIC 28nm PHY
    phy: Add Marvell USB 2.0 OTG 28nm PHY
    dt-bindings: Add Marvell PXA1928 USB and HSIC PHY bindings
    USB: ssb: use devm_kzalloc
    USB: ssb: fix error handling in ssb_hcd_create_pdev()
    usb: isp1760: check for null return from kzalloc
    cdc-acm: Add support of ATOL FPrint fiscal printers
    usb: chipidea: usbmisc_imx: Remove unneeded semicolon
    USB: usbtmc: add device quirk for Rigol DS6104
    USB: serial: mos7840: Use setup_timer
    phy: twl4030-usb: add ABI documentation
    phy: twl4030-usb: remove incorrect pm_runtime_get_sync() in probe function.
    phy: twl4030-usb: remove pointless 'suspended' test in 'suspend' callback.
    phy: twl4030-usb: make runtime pm more reliable.
    drivers:usb:fsl: Fix compilation error for fsl ehci drv
    usb: renesas_usbhs: Don't disable the pipe if Control write status stage
    ...

    Linus Torvalds
     
  • Pull staging driver updates from Greg KH:
    "Here's the big, really big, staging tree patches for 4.2-rc1.

    Loads of stuff in here, almost all just coding style fixes / churn,
    and a few new drivers as well, one of which I just disabled from the
    build a few minutes ago due to way too many build warnings.

    Other than the one "disable this driver" patch, all of these have been
    in linux-next for quite a while with no reported issues"

    * tag 'staging-4.2-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging: (1163 commits)
    staging: wilc1000: disable driver due to build warnings
    Staging: rts5208: fix CHANGE_LINK_STATE value
    Staging: sm750fb: ddk750_swi2c.c: Insert spaces before parenthesis
    Staging: sm750fb: ddk750_swi2c.c: Place braces on correct lines
    Staging: sm750fb: ddk750_swi2c.c: Insert spaces around operators
    Staging: sm750fb: ddk750_swi2c.c: Replace spaces with tabs
    Staging: sm750fb: ddk750_swi2c.h: Shorten lines to under 80 characters
    Staging: sm750fb: ddk750_swi2c.h: Replace spaces with tabs
    Staging: sm750fb: modedb.h: Shorten lines to under 80 characters
    Staging: sm750fb: modedb.h: Replace spaces with tabs
    staging: comedi: addi_apci_3120: rename 'this_board' variables
    staging: comedi: addi_apci_1516: rename 'this_board' variables
    staging: comedi: ni_atmio: cleanup ni_getboardtype()
    staging: comedi: vmk80xx: sanity check context used to get the boardinfo
    staging: comedi: vmk80xx: rename 'boardinfo' variables
    staging: comedi: dt3000: rename 'this_board' variables
    staging: comedi: adv_pci_dio: rename 'this_board' variables
    staging: comedi: cb_pcidas64: rename 'thisboard' variables
    staging: comedi: cb_pcidas: rename 'thisboard' variables
    staging: comedi: me4000: rename 'thisboard' variables
    ...

    Linus Torvalds
     
  • Pull driver core updates from Greg KH:
    "Here is the driver core / firmware changes for 4.2-rc1.

    A number of small changes all over the place in the driver core, and
    in the firmware subsystem. Nothing really major, full details in the
    shortlog. Some of it is a bit of churn, given that the platform
    driver probing changes was found to not work well, so they were
    reverted.

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

    * tag 'driver-core-4.2-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core: (31 commits)
    Revert "base/platform: Only insert MEM and IO resources"
    Revert "base/platform: Continue on insert_resource() error"
    Revert "of/platform: Use platform_device interface"
    Revert "base/platform: Remove code duplication"
    firmware: add missing kfree for work on async call
    fs: sysfs: don't pass count == 0 to bin file readers
    base:dd - Fix for typo in comment to function driver_deferred_probe_trigger().
    base/platform: Remove code duplication
    of/platform: Use platform_device interface
    base/platform: Continue on insert_resource() error
    base/platform: Only insert MEM and IO resources
    firmware: use const for remaining firmware names
    firmware: fix possible use after free on name on asynchronous request
    firmware: check for file truncation on direct firmware loading
    firmware: fix __getname() missing failure check
    drivers: of/base: move of_init to driver_init
    drivers/base: cacheinfo: fix annoying typo when DT nodes are absent
    sysfs: disambiguate between "error code" and "failure" in comments
    driver-core: fix build for !CONFIG_MODULES
    driver-core: make __device_attach() static
    ...

    Linus Torvalds