1. 09 Dec, 2014 8 commits
    • Linus Torvalds's avatar
      Merge tag 'scsi-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi · f3f62a38
      Linus Torvalds authored
      Pull SCSI updates from James Bottomley:
       "This patch is the usual mix of driver updates (srp, ipr, scsi_debug,
        NCR5380, fnic, 53c974, ses, wd719x, hpsa, megaraid_sas).
      
        Of those, wd7a9x is new and 53c974 is a rewrite of the old tmscsim
        driver and the extensive work by Finn Thain rewrites all the NCR5380
        based drivers.
      
        There's also extensive infrastructure updates: a new logging
        infrastructure for sense information and a rewrite of the tagged
        command queue API and an assortment of minor updates"
      
      * tag 'scsi-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi: (183 commits)
        scsi: set fmt to NULL scsi_extd_sense_format() by default
        libsas: remove task_collector mode
        wd719x: remove dma_cache_sync call
        scsi_debug: add Report supported opcodes+tmfs; Compare and write
        scsi_debug: change SCSI command parser to table driven
        scsi_debug: add Capacity Changed Unit Attention
        scsi_debug: append inject error flags onto scsi_cmnd object
        scsi_debug: pinpoint invalid field in sense data
        wd719x: Add firmware documentation
        wd719x: Introduce Western Digital WD7193/7197/7296 PCI SCSI card driver
        eeprom-93cx6: Add (read-only) support for 8-bit mode
        esas2r: fix an oversight in setting return value
        esas2r: fix an error path in esas2r_ioctl_handler
        esas2r: fir error handling in do_fm_api
        scsi: add SPC-3 command definitions
        scsi: rename SERVICE_ACTION_IN to SERVICE_ACTION_IN_16
        scsi: remove scsi_driver owner field
        scsi: move scsi_dispatch_cmd to scsi_lib.c
        scsi: stop passing a gfp_mask argument down the command setup path
        scsi: remove scsi_next_command
        ...
      f3f62a38
    • Linus Torvalds's avatar
      Merge tag 'dm-3.19-changes' of git://git.kernel.org/pub/scm/linux/kernel/git/device-mapper/linux-dm · 140dfc92
      Linus Torvalds authored
      Pull device mapper updates from Mike Snitzer:
      
       - Significant DM thin-provisioning performance improvements to meet
         performance requirements that were requested by the Gluster
         distributed filesystem.
      
         Specifically, dm-thinp now takes care to aggregate IO that will be
         issued to the same thinp block before issuing IO to the underlying
         devices.  This really helps improve performance on HW RAID6 devices
         that have a writeback cache because it avoids RMW in the HW RAID
         controller.
      
       - Some stable fixes: fix leak in DM bufio if integrity profiles were
         enabled, use memzero_explicit in DM crypt to avoid any potential for
         information leak, and a DM cache fix to properly mark a cache block
         dirty if it was promoted to the cache via the overwrite optimization.
      
       - A few simple DM persistent data library fixes
      
       - DM cache multiqueue policy block promotion improvements.
      
       - DM cache discard improvements that take advantage of range
         (multiblock) discard support in the DM bio-prison.  This allows for
         much more efficient bulk discard processing (e.g.  when mkfs.xfs
         discards the entire device).
      
       - Some small optimizations in DM core and RCU deference cleanups
      
       - DM core changes to suspend/resume code to introduce the new internal
         suspend/resume interface that the DM thin-pool target now uses to
         suspend/resume active thin devices when the thin-pool must
         suspend/resume.
      
         This avoids forcing userspace to track all active thin volumes in a
         thin-pool when the thin-pool is suspended for the purposes of
         metadata or data space resize.
      
      * tag 'dm-3.19-changes' of git://git.kernel.org/pub/scm/linux/kernel/git/device-mapper/linux-dm: (49 commits)
        dm crypt: use memzero_explicit for on-stack buffer
        dm space map metadata: fix sm_bootstrap_get_count()
        dm space map metadata: fix sm_bootstrap_get_nr_blocks()
        dm bufio: fix memleak when using a dm_buffer's inline bio
        dm cache: fix spurious cell_defer when dealing with partial block at end of device
        dm cache: dirty flag was mistakenly being cleared when promoting via overwrite
        dm cache: only use overwrite optimisation for promotion when in writeback mode
        dm cache: discard block size must be a multiple of cache block size
        dm cache: fix a harmless race when working out if a block is discarded
        dm cache: when reloading a discard bitset allow for a different discard block size
        dm cache: fix some issues with the new discard range support
        dm array: if resizing the array is a noop set the new root to the old one
        dm: use rcu_dereference_protected instead of rcu_dereference
        dm thin: fix pool_io_hints to avoid looking at max_hw_sectors
        dm thin: suspend/resume active thin devices when reloading thin-pool
        dm: enhance internal suspend and resume interface
        dm thin: do not allow thin device activation while pool is suspended
        dm: add presuspend_undo hook to target_type
        dm: return earlier from dm_blk_ioctl if target doesn't implement .ioctl
        dm thin: remove stale 'trim' message in block comment above pool_message
        ...
      140dfc92
    • Linus Torvalds's avatar
      Merge tag 'regulator-v3.19' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator · f94784bd
      Linus Torvalds authored
      Pull regulator updates from Mark Brown:
       "The main thing this time around is support for suspend mode
        configuration from DT which will enable some very useful power savings
        on systems where we can't rely on the bootloader configuration.  We
        still don't really support dynamic configuration of this at runtime,
        that may come later if there is any demand.
      
        Summary:
         - Support for specifying the target regulation mode and voltage
           during system suspend via DT, enabling power savings in that mode.
         - Reduce the default verbosity of the logging on boot, improving boot
           times especially for systems with very large numbers of regulators.
         - Lots of cleanups and fixes for Maxim PMIC drivers.
         - New driver for Richtek RT5033"
      
      * tag 'regulator-v3.19' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator: (62 commits)
        regulator: core: Fix regualtor_ena_gpio_free not to access pin after freeing
        regulator: sky81452: Modify Device Tree structure
        regulator: sky81452: Modify Device Tree structure
        dt-bindings: Update documentation for "system-power-controller" and fix misspellings
        of: Rename "poweroff-source" property to "system-power-controller"
        regulator: max77686: Remove support for board files
        regulator: max77802: Remove support for board files
        regulator: max77802: Fill regulator modes translation callback
        regulator: max77802: Document binding for regulator operating modes
        regulator: of: Add support for parsing initial and suspend modes
        regulator: of: Pass the regulator description in the match table
        regulator: of: Add regulator desc param to of_get_regulator_init_data()
        regulator: Add mode mapping function to struct regulator_desc
        regulator: Document binding for initial and suspend modes
        regulator: core: Add PRE_DISABLE notification
        regulator: gpio: fix parsing of gpio list
        regulator: rpm: add support for RPM-controller SMB208
        regulator: da9063: Do not transform local IRQ to virtual
        regulator: sky81452: Modify dependent Kconfig symbol
        regulator: rt5033: Add RT5033 Regulator device driver
        ...
      f94784bd
    • Linus Torvalds's avatar
      Merge tag 'regmap-v3.19' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/regmap · de740386
      Linus Torvalds authored
      Pull regmap updates from Mark Brown:
       "A couple of new features this time around, nothing that should have
        any impact on most users:
      
         - Cleanups and optimization of the path for reading back the register
           defaults from the hardware at startup, reducing boot times for
           devices that use this (most don't, either populating on demand or
           providing defaults).
         - A bus implementation for AC'97 devices"
      
      * tag 'regmap-v3.19' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/regmap:
        regmap: ac97: Add generic AC'97 callbacks
        regmap: cache: Sort include headers alphabetically
        regmap: cache: Fix possible ZERO_SIZE_PTR pointer dereferencing error.
        regmap: cache: use kmalloc_array instead of kmalloc
        regmap: cache: speed regcache_hw_init() up.
        regmap: cache: fix errno in regcache_hw_init()
        regmap: cache: cleanup regcache_hw_init()
        regmap: cache: fix errno in regcache_hw_init()
      de740386
    • Linus Torvalds's avatar
      Merge tag 'hwmon-for-linus-3.19' of... · 177808cd
      Linus Torvalds authored
      Merge tag 'hwmon-for-linus-3.19' of git://git.kernel.org/pub/scm/linux/kernel/git/groeck/linux-staging
      
      Pull hwmon updates from Guenter Roeck:
       "Notable changes:
         - new driver for NCT7802Y
         - support for TMP435, LM95233, LM95235, NCT6792D, and NXP LM75B
         - regulator support for PMBus chips, specifically LTX2978
         - support for humidity sensors to iio-hwmon bridge driver
      
      * tag 'hwmon-for-linus-3.19' of git://git.kernel.org/pub/scm/linux/kernel/git/groeck/linux-staging: (21 commits)
        hwmon: (tmp401) Detect TMP435 on all addresses it supports
        hwmon: (lm75) Strengthen detect function
        hwmon: (gpio-fan) Add a shutdown handler to poweroff the fans
        hwmon: (gpio-fan) Allow usage of gpio operations that may sleep
        hwmon: (tmp401) Bail out from tmp401_probe() in case of write errors
        hwmon: (tmp401) Add support for TI TMP435
        hwmon: (lm95234) Add support for LM95233
        hwmon: (lm95245) Add support for LM95235
        hwmon: (ina2xx) bail-out from ina2xx_probe() in case of configuration errors
        hwmon: (nct6775) Add blank lines after declarations
        hwmon: (nct6775) Add support for NCT6792D
        hwmon: (nct6775) Documentation updates
        hwmon: (lm75) Add support for the NXP LM75B
        hwmon: Driver for Nuvoton NCT7802Y
        hwmon: (ibmpowernv) Convert to module_platform_driver
        hwmon: (ibmpowernv) Use platform 'id_table' to probe the device
        hwmon: (iio_hwmon) Add support for humidity sensors
        hwmon: (ltc2978) Add regulator support
        hwmon: (pmbus) Add regulator support
        hwmon: (pmbus) add helpers for byte write and read modify write
        ...
      177808cd
    • Linus Torvalds's avatar
      Merge tag 'edac_for_3.19' of git://git.kernel.org/pub/scm/linux/kernel/git/bp/bp · 0160928e
      Linus Torvalds authored
      Pull EDAC updates from Borislav Petkov:
       "EDAC updates all over the place:
      
         - Enablement for AMD F15h models 0x60 CPUs.  Most notably DDR4 RAM
           support.  Out of tree stuff is adding the required PCI IDs.  From
           Aravind Gopalakrishnan.
      
         - Enable amd64_edac for 32-bit due to popular demand.  From Tomasz
           Pala.
      
         - Convert the AMD MCE injection module to debugfs, where it belongs.
      
         - Misc EDAC cleanups"
      
      * tag 'edac_for_3.19' of git://git.kernel.org/pub/scm/linux/kernel/git/bp/bp:
        EDAC, MCE, AMD: Correct formatting of decoded text
        EDAC, mce_amd_inj: Add an injector function
        EDAC, mce_amd_inj: Add hw-injection attributes
        EDAC, mce_amd_inj: Enable direct writes to MCE MSRs
        EDAC, mce_amd_inj: Convert mce_amd_inj module to debugfs
        EDAC: Delete unnecessary check before calling pci_dev_put()
        EDAC, pci_sysfs: remove unneccessary ifdef around entire file
        ghes_edac: Use snprintf() to silence a static checker warning
        amd64_edac: Build module on x86-32
        EDAC, MCE, AMD: Add decoding table for MC6 xec
        amd64_edac: Add F15h M60h support
        {mv64x60,ppc4xx}_edac,: Remove deprecated IRQF_DISABLED
        EDAC: Sync memory types and names
        EDAC: Add DDR3 LRDIMM entries to edac_mem_types
        x86, amd_nb: Add device IDs to NB tables for F15h M60h
        pci_ids: Add PCI device IDs for F15h M60h
      0160928e
    • Linus Torvalds's avatar
      Merge tag 'mfd-for-linus-3.19' of git://git.kernel.org/pub/scm/linux/kernel/git/lee/mfd · 3a7dbed7
      Linus Torvalds authored
      Pull MFD updates from Lee Jones:
       "Changes to the core:
         - Honour PLATFORM_DEVID_NONE and PLATFORM_DEVID_AUTO dev IDs
      
        Changes to existing drivers:
         - IRQ additions/fixes; axp20x, da9063-core
         - Code simplification; i2c-dln2
         - Regmap additions/fixes; max77693
         - Error checking/handling improvements; dln2, db8500-prcmu
         - Bug fixes; dln2, wm8350-core
         - DT support/documentation; max77693, max77686, tps65217, twl4030-power,
                                     gpio-tc3589x
         - Decouple syscon interface from platform devices
         - Use MFD hotplug registration; rtsx_usb, viperboard, hid-sensor-hub
         - Regulator fixups; sec-core
         - Power Management additions/fixes; rts5227, tc6393xb
         - Remove relic/redundant code; ab8500-sysctrl, lpc_sch, max77693-private
         - Clean-up/coding style changes; tps65090
         - Clk additions/fixes; tc6393xb, tc6387xb, t7l66xb
         - Add USB-SPI support; dln2
         - Trivial changes; max14577, arizona-spi, lpc_sch, wm8997-tables, wm5102-tables
                            wm5110-tables, axp20x, atmel-hlcdc, rtsx_pci
      
        New drivers/supported devices:
         - axp288 PMIC support added to axp20x
         - s2mps13 support added to sec-core
         - New support for Diolan DLN-2
         - New support for atmel-hlcdc"
      
      * tag 'mfd-for-linus-3.19' of git://git.kernel.org/pub/scm/linux/kernel/git/lee/mfd: (55 commits)
        mfd: rtsx: Add func to split u32 into register
        mfd: atmel-hlcdc: Add Kconfig option description and name
        mfd: da9063: Get irq base dynamically before registering device
        mfd: max14577: Fix obvious typo in company name in copyright
        mfd: axp20x: Constify axp20x_acpi_match and rid unused warning
        mfd: t7l66xb: prepare/unprepare clocks
        mfd: tc6387xb: prepare/unprepare clocks
        mfd: dln2: add support for USB-SPI module
        mfd: wm5110: Add missing registers for AIF2 channels 3-6
        mfd: tc3589x: get rid of static base
        mfd: arizona: Document HP_CTRL_1L and HP_CTRL_1R registers
        mfd: wm8997: Mark INTERRUPT_STATUS_2_MASK as readable
        mfd: tc6393xb: Prepare/unprepare clocks
        mfd: tps65090: Fix bonkers indenting strategy
        mfd: tc6393xb: Fail ohci suspend if full state restore is required
        mfd: lpc_sch: Don't call mfd_remove_devices()
        mfd: wm8350-core: Fix probable mask then right shift defect
        mfd: ab8500-sysctrl: Drop ab8500_restart
        mfd: db8500-prcmu: Provide sane error path values
        mfd: db8500-prcmu: Check return of devm_ioremap for error
        ...
      3a7dbed7
    • Linus Torvalds's avatar
      Merge tag 'mmc-v3.19-1' of git://git.linaro.org/people/ulf.hansson/mmc · f2fb3804
      Linus Torvalds authored
      Pull MMC updates from Ulf Hansson:
       "MMC core:
         - Consolidation and cleanups.
         - Some improvements regarding error handling.
         - Increase maximum amount of block devices.
         - Use correct OCR mask for SDIO when restoring power.
         - Fix prepared requests while doing BKOPS.
         - Convert to modern PM ops.
         - Add mmc_send_tuning() API and convert some hosts to use it.
      
        MMC host:
         - toshsd: New Toshiba PCI SD controller driver.
         - sdhci: 64-bit ADMA support.
         - sdhci: Some regulator fixes.
         - sdhci: HS400 support.
         - sdhci: Various fixes cleanups.
         - atmel-mci: Modernization and cleanups.
         - atmel-mci: Runtime PM support.
         - omap_hsmmc: Modernization and cleanups.
         - omap_hsmmc: Fix UHS card with DDR50 support.
         - dw_mmc: Support for ARM64 and Exynos 7 variant.
         - dw_mmc: Add support for IMG Pistachio variant.
         - dw_mmc: Various fixes and cleanups.
         - mvsdio: DMA fixes.
         - mxs-mmc: Modernization and cleanups.
         - mxcmmc: Various fixes"
      
      * tag 'mmc-v3.19-1' of git://git.linaro.org/people/ulf.hansson/mmc: (126 commits)
        mmc: sdhci-msm: Convert to mmc_send_tuning()
        mmc: sdhci-esdhc-imx: Convert to mmc_send_tuning()
        mmc: core: Let mmc_send_tuning() to take struct mmc_host* as parameter
        mmc: queue: Improve error handling during allocation of bounce buffers
        mmc: sdhci-acpi: Add two host capabilities for Intel
        mmc: sdhci-pci: Add two host capabilities for BYT
        mmc: sdhci-acpi: Add SDHCI_QUIRK_NO_ENDATTR_IN_NOPDESC
        mmc: sdhci-pci: Add SDHCI_QUIRK_NO_ENDATTR_IN_NOPDESC to BYT
        mmc: atmel-mci: use probe deferring if dma controller is not ready yet
        mmc: atmel-mci: stop using specific initcall
        mmc: atmel-mci: remove __init/__exit attributes
        mmc: atmel-mci: remove useless DMA stuff for non-dt devices
        mmc: omap_hsmmc: Fix UHS card with DDR50 support
        mmc: core: add core-level function for sending tuning commands
        mmc: core: hold SD Clock before CMD11 during Signal
        mmc: mxs-mmc: Check for clk_prepare_enable() error
        mmc: mxs-mmc: Propagate the real error
        mmc: mxs-mmc: No need to do NULL check on 'iores'
        mmc: dw_mmc: Add support for IMG Pistachio
        mmc: mxs-mmc: Simplify PM hooks
        ...
      f2fb3804
  2. 08 Dec, 2014 7 commits
  3. 07 Dec, 2014 2 commits
  4. 06 Dec, 2014 2 commits
  5. 05 Dec, 2014 16 commits
  6. 04 Dec, 2014 5 commits
    • Masahiro Yamada's avatar
      uapi: fix to export linux/vm_sockets.h · d0747f10
      Masahiro Yamada authored
      A typo "header=y" was introduced by commit 7071cf7f ("uapi: add
      missing network related headers to kbuild").
      Signed-off-by: default avatarMasahiro Yamada <yamada.m@jp.panasonic.com>
      Cc: Stephen Hemminger <stephen@networkplumber.org>
      Cc: David Miller <davem@davemloft.net>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      d0747f10
    • Seung-Woo Kim's avatar
      regulator: core: Fix regualtor_ena_gpio_free not to access pin after freeing · 60a2362f
      Seung-Woo Kim authored
      After freeing pin from regulator_ena_gpio_free, loop can access
      the pin. So this patch fixes not to access pin after freeing.
      Signed-off-by: default avatarSeung-Woo Kim <sw0312.kim@samsung.com>
      Signed-off-by: default avatarMark Brown <broonie@kernel.org>
      60a2362f
    • Nishanth Menon's avatar
      hwmon: (gpio-fan) Add a shutdown handler to poweroff the fans · b95579cd
      Nishanth Menon authored
      Poweroff the fans when shutting down the system. Else,
      echo '1' > /sys/class/hwmon/hwmon0/fan1_target; poweroff leaves the
      fan running if the System power off does not drive the gpio expander
      which might control the fan power supply.
      Signed-off-by: default avatarNishanth Menon <nm@ti.com>
      Signed-off-by: default avatarGuenter Roeck <linux@roeck-us.net>
      b95579cd
    • Nishanth Menon's avatar
      hwmon: (gpio-fan) Allow usage of gpio operations that may sleep · 52a95c11
      Nishanth Menon authored
      Certain I2C based GPIO expanders could be used in sleepable context,
      this results in:
      [  115.890569] ------------[ cut here ]------------
      [  115.895422] WARNING: CPU: 0 PID: 1115 at drivers/gpio/gpiolib.c:1370 gpiod_set_raw_value+0x40/0x4c()
      [  115.905024] Modules linked in:
      [  115.908229] CPU: 0 PID: 1115 Comm: sh Tainted: G        W      3.18.0-rc7-next-20141203-dirty #1
      [  115.917461] Hardware name: Generic DRA74X (Flattened Device Tree)
      [  115.923876] [<c0015368>] (unwind_backtrace) from [<c00119f4>] (show_stack+0x10/0x14)
      [  115.932013] [<c00119f4>] (show_stack) from [<c05b78e8>] (dump_stack+0x78/0x94)
      [  115.939594] [<c05b78e8>] (dump_stack) from [<c003de28>] (warn_slowpath_common+0x7c/0xb4)
      [  115.948094] [<c003de28>] (warn_slowpath_common) from [<c003de7c>] (warn_slowpath_null+0x1c/0x24)
      [  115.957315] [<c003de7c>] (warn_slowpath_null) from [<c03461e8>] (gpiod_set_raw_value+0x40/0x4c)
      [  115.966457] [<c03461e8>] (gpiod_set_raw_value) from [<c04866f4>] (set_fan_speed+0x4c/0x64)
      [  115.975145] [<c04866f4>] (set_fan_speed) from [<c04868a8>] (set_rpm+0x98/0xac)
      [  115.982742] [<c04868a8>] (set_rpm) from [<c039fb4c>] (dev_attr_store+0x18/0x24)
      [  115.990426] [<c039fb4c>] (dev_attr_store) from [<c01b0a28>] (sysfs_kf_write+0x4c/0x50)
      [  115.998742] [<c01b0a28>] (sysfs_kf_write) from [<c01afe1c>] (kernfs_fop_write+0xbc/0x19c)
      [  116.007333] [<c01afe1c>] (kernfs_fop_write) from [<c0148cc4>] (vfs_write+0xb0/0x1a0)
      [  116.015461] [<c0148cc4>] (vfs_write) from [<c0148fbc>] (SyS_write+0x44/0x84)
      [  116.022881] [<c0148fbc>] (SyS_write) from [<c000e5c0>] (ret_fast_syscall+0x0/0x48)
      [  116.030833] ---[ end trace 3a0b636123acab82 ]---
      
      So, switch over to sleepable GPIO operations as there is no mandatory
      need for non-sleepable gpio operations in the fan driver.
      
      This allows the fan driver to be used with i2c based gpio expanders such
      as palmas_gpio.
      Signed-off-by: default avatarNishanth Menon <nm@ti.com>
      Signed-off-by: default avatarGuenter Roeck <linux@roeck-us.net>
      52a95c11
    • Bartosz Golaszewski's avatar
      hwmon: (tmp401) Bail out from tmp401_probe() in case of write errors · 90652efe
      Bartosz Golaszewski authored
      The return value of i2c_smbus_read_byte_data() is checked in
      tmp401_init_client(), but only a warning is printed and the device is
      registered anyway. This leads to devices being registered even if they
      cannot be physically detected.
      
      Bail out from probe in case of write errors and notify the user.
      Signed-off-by: default avatarBartosz Golaszewski <bgolaszewski@baylibre.com>
      Signed-off-by: default avatarGuenter Roeck <linux@roeck-us.net>
      90652efe