1. 08 Jan, 2014 16 commits
  2. 24 Dec, 2013 2 commits
    • Greg Kroah-Hartman's avatar
      Merge tag 'iio-for-3.14b' of... · a6e8e3a4
      Greg Kroah-Hartman authored
      Merge tag 'iio-for-3.14b' of git://git.kernel.org/pub/scm/linux/kernel/git/jic23/iio into staging-next
      
      Jonathan writes:
      
      2nd round of new IIO drivers, features and cleanups for the 3.14 cycle.
      
      New drivers
      
      * HID inclinometer driver.
      
      * DHT11 humidity driver.  Note that previous humidity drivers have been in
        hwmon, but no one was ever entirely happy with that, and they should find
        a more comfortable home in IIO (their original placement in hwmon was my
        fault - oops).  As this is our first humidity driver, core support is also
        added.
      
      New features
      
      * Two of mxs-lradc channels are internally wired to a temperature sensor,
        make this explicit in the driver by providing the relevant temperature
        channel.
      
      * Add support for blocking IO on buffers.
      
      * Add a data_available call back to the interface between buffer implementations
        and the core.  This is much cleaner than the old, 'stufftoread' flag.
        Implemented in the kfifo buffer.
      
      Cleanups
      
      * Last user of the old event configuration interface is converted and the
        old interface dropped.  Nice to be rid of this thanks to Lars-Peter's hard
        work!
      
      * Replace all remaining instances of the IIO_ST macro with explicit filling
        of the scan_type structure within struct iio_chan_spec.  This macro was a
        bad idea, that rapidly ceased to cover all elements of the structure.
        Miss reading of the macro arguements has led to a number of bugs so lets
        just get rid of it. The final removal patch is awaiting for some fixes
        to make their way into mainline.
        In a couple of drivers, no elements of scan_type were even being used so
        in those case, it has been dropped entirely.
      
      * Drop a couple of of_match_ptr helper uses in drivers where devicetree is
        not optional and hence the structures being protected by this always exist.
      
      * Fix up some cases where data was read from a device in a particular
        byte order, but he code placed it into a s16 or similar.  These were
        highlighted by Sparse.
      
      * Use the new ATTRIBUTE_GROUPS macro to drop some boiler plate in the triggers
        core code.
      
      * ad7746 and ad7280a - stop storing buffers on the stack, giving cleaner code
        and possibly avoiding issues with i2c bus drivers that assume they can dma
        directly into the buffer.  Note that this cannot currently happen as the the
        i2c_smbus_read_i2c_block_data function has a memcpy from the buffer actually
        passed to the bus driver.  I missed this element of the commit message
        and don't think it is major enough to rebase the iio tree.
      
      * ad5791 and ad5504 stop storing buffers on the stack for an SPI driver.
        Unlike the i2c drivers, this is a real issue for SPI drivers which can dma
        directly into the buffer supplied.
      a6e8e3a4
    • Greg Kroah-Hartman's avatar
      Merge 3.13-rc5 into staging-next · 912cbd49
      Greg Kroah-Hartman authored
      This resolves a merge issue with drivers/staging/imx-drm/imx-drm-core.c
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      912cbd49
  3. 22 Dec, 2013 9 commits
  4. 21 Dec, 2013 3 commits
    • Benjamin LaHaise's avatar
      aio/migratepages: make aio migrate pages sane · 8e321fef
      Benjamin LaHaise authored
      The arbitrary restriction on page counts offered by the core
      migrate_page_move_mapping() code results in rather suspicious looking
      fiddling with page reference counts in the aio_migratepage() operation.
      To fix this, make migrate_page_move_mapping() take an extra_count parameter
      that allows aio to tell the code about its own reference count on the page
      being migrated.
      
      While cleaning up aio_migratepage(), make it validate that the old page
      being passed in is actually what aio_migratepage() expects to prevent
      misbehaviour in the case of races.
      Signed-off-by: default avatarBenjamin LaHaise <bcrl@kvack.org>
      8e321fef
    • Benjamin LaHaise's avatar
      aio: fix kioctx leak introduced by "aio: Fix a trinity splat" · 1881686f
      Benjamin LaHaise authored
      e34ecee2 reworked the percpu reference
      counting to correct a bug trinity found.  Unfortunately, the change lead
      to kioctxes being leaked because there was no final reference count to
      put.  Add that reference count back in to fix things.
      Signed-off-by: default avatarBenjamin LaHaise <bcrl@kvack.org>
      Cc: stable@vger.kernel.org
      1881686f
    • Linus Torvalds's avatar
      Don't set the INITRD_COMPRESS environment variable automatically · b7000ade
      Linus Torvalds authored
      Commit 1bf49dd4 ("./Makefile: export initial ramdisk compression
      config option") started setting the INITRD_COMPRESS environment variable
      depending on which decompression models the kernel had available.
      
      That is completely broken.
      
      For example, we by default have CONFIG_RD_LZ4 enabled, and are able to
      decompress such an initrd, but the user tools to *create* such an initrd
      may not be availble.  So trying to tell dracut to generate an
      lz4-compressed image just because we can decode such an image is
      completely inappropriate.
      
      Cc: J P <ppandit@redhat.com>
      Cc: Andrew Morton <akpm@linux-foundation.org>
      Cc: Jan Beulich <JBeulich@suse.com>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      b7000ade
  5. 20 Dec, 2013 10 commits