1. 07 11月, 2016 7 次提交
    • D
      staging: unisys: visorbus: bus_create no longer calls bus_epilog · 8f334e30
      David Kershner 提交于
      Have bus_create call chipset_bus_create directly instead of going
      through the function bus_epilog.
      Signed-off-by: NDavid Kershner <david.kershner@unisys.com>
      Reviewed-by: NTim Sell <Timothy.Sell@unisys.com>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      8f334e30
    • D
      staging: unisys: visorbus: fix double response · ca1cbf90
      David Kershner 提交于
      This patch addresses the problem that we were sending double responses
      back to the s-Par Firmware when processing CONTROLVM Messages. Every
      message responds individually and the epilog functions would send a
      response as well.
      
      Since a message could delay the response, it was decided to remove the
      extra response from the epilog function.
      Signed-off-by: NDavid Kershner <david.kershner@unisys.com>
      Reviewed-by: NTim Sell <Timothy.Sell@unisys.com>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      ca1cbf90
    • S
      staging: unisys: visorbus: remove unused initializations · c4fe36cd
      Sameer Wadgaonkar 提交于
      Removed intializations from visorchipset_open(), visorchipset_init()
      and moved the memset in initialize_controlvm_payload_info() down in
      case of early returns from the function.
      Signed-off-by: NSameer Wadgaonkar <sameer.wadgaonkar@unisys.com>
      Signed-off-by: NDavid Kershner <david.kershner@unisys.com>
      Reported-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      c4fe36cd
    • T
      staging: unisys: visorbus: convert client_bus_info sysfs to debugfs · 8217becc
      Tim Sell 提交于
      Previously, the sysfs entry (assuming traditional sysfs mountpoint):
      
          /sys/bus/visorbus/devices/visorbus<n>/client_bus_info
      
      violated kernel conventions by printing more than one item.  This along
      with the fact that the data emitted was diagnostic data (intended to
      shadow the client driver info provided via s-Par livedumps) made it a
      logical candidate for debugfs.  So this patch moves this sysfs entry to
      debugfs as (assuming traditional debugfs mountpoint):
      
          /sys/kernel/debug/visorbus/visorbus<n>/client_bus_info
      
      Data for this debugfs is emitted using the preferred seq_file interface,
      which allowed a vastly-simplified version of vbuschannel_print_devinfo()
      to format the individual output components.
      
      Functionality was verified as follows:
      
        [root@sparguest visorbus]# mount | grep debug
        debugfs on /sys/kernel/debug type debugfs (rw)
        [root@sparguest visorbus]# pwd
        /sys/kernel/debug/visorbus
        [root@sparguest visorbus]# l visorbus1/
        total 0
        drwxr-xr-x 2 root root 0 Sep 28 16:36 .
        drwxr-xr-x 4 root root 0 Sep 28 16:36 ..
        -r--r----- 1 root root 0 Sep 28 16:36 client_bus_info
        [root@sparguest visorbus]# l visorbus2
        total 0
        drwxr-xr-x 2 root root 0 Sep 28 16:36 .
        drwxr-xr-x 4 root root 0 Sep 28 16:36 ..
        -r--r----- 1 root root 0 Sep 28 16:36 client_bus_info
        [root@sparguest visorbus]# cat visorbus1/client_bus_info
        Client device / client driver info for s-Par Console partition (vbus #1):
           chipset          visorchipset     kernel ver. 4.8.0-rc6-ARCH+
           clientbus        visorbus         kernel ver. 4.8.0-rc6-ARCH+
        [2]keyboard         visorinput       kernel ver. 4.8.0-rc6-ARCH+
        [3]mouse            visorinput       kernel ver. 4.8.0-rc6-ARCH+
        [root@sparguest visorbus]# cat visorbus2/client_bus_info
        Client device / client driver info for s-Par IOVM partition (vbus #2):
           chipset          visorchipset     kernel ver. 4.8.0-rc6-ARCH+
           clientbus        visorbus         kernel ver. 4.8.0-rc6-ARCH+
        [0]ultravnic        visornic         kernel ver. 4.8.0-rc6-ARCH+
        [1]ultravnic        visornic         kernel ver. 4.8.0-rc6-ARCH+
        [2]sparvhba         visorhba         kernel ver. 4.8.0-rc6-ARCH+
      Signed-off-by: NTim Sell <Timothy.Sell@unisys.com>
      Reported-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      Signed-off-by: NDavid Kershner <david.kershner@unisys.com>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      8217becc
    • T
      staging: unisys: visorbus: move DEVICE_ATTR_RO defs as-per conventions · a25280b3
      Tim Sell 提交于
      The kernel convention is for DEVICE_ATTR_RO(<attr>) definitions to occur
      immediately after the functions that implement the attribute behaviors.
      DEVICE_ATTR_RO definitions in visorbus_main.c have been moved to comply
      with this convention.
      Signed-off-by: NTim Sell <Timothy.Sell@unisys.com>
      Signed-off-by: NDavid Kershner <david.kershner@unisys.com>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      a25280b3
    • S
      Staging: speakup: Remove unnecessary space after cast · d290effe
      Shiva Kerdel 提交于
      The affected files have been modified to remove redundant spaces after
      casts to solve checkpatch.pl checks.
      Signed-off-by: NShiva Kerdel <shiva@exdev.nl>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      d290effe
    • G
      Merge tag 'iio-for-4.10b' of... · 7970b9e6
      Greg Kroah-Hartman 提交于
      Merge tag 'iio-for-4.10b' of git://git.kernel.org/pub/scm/linux/kernel/git/jic23/iio into staging-testing
      
      Jonathan writes:
      
      Second round of new device support, cleanups and fixes for IIO in the 4.10 cycle
      
      This includes two branch merges for elements that may also go via MFD.
      
      New device support
      * cros_ec
        - new driver to support these Chrome OS contiguous sensors which are behind
          the Chrome OS embedded controller.  Requires a few minor MFD and chrome
          platform changes.  One follow up fix deals with some dependency issues in
          Kconfig.
      * mpu-3050
        - new driver and device tree bindings for this venerable device.
      * st_accel
        - support for the lng2dm an
      
      Driver features
      * ad7192
        - Add DVdd regulator handling
      * ad9832
        - Add DVDD regulator handling
      * at91
        - Suspend and resume support
      * si7020
        - Device tree bindings
      * ti-am335x
        - DMA support - uses dma to accelerate short bursts of read back rather
        than full blown DMA buffer support.  Greatly improved performance.
        Includes an MFD addition to give access to the address needed for DMA.
      * tsl2583
        - Device tree bindings
      
      Cleanups and minor fixes
      * ad7192
        - Fix regulator naming to match datasheet
        - Handle regulator errors correctly (so as to not break deferred probing)
        - Rename reg variable to reflect which regulator it is
      * ad5933
        - Fix regulator naming to match datasheet
        - Handle regulator errors correctly (so as to not break deferred probing)
      * ad7746
        - Fix a missing return value (fallout from previous patch set)
      * ad7780
        - Fix regulator naming to match datasheet
        - Handle regulator errors correctly (so as to not break deferred probing)
      * ad9832
        - Fix regulator naming to match datasheet
        - Handle regulator errors correctly (so as to not break deferred probing)
        - Rename reg regulator to reflect which one it is
      * ad9834
        - Fix regulator naming to match datasheet
        - Handle regulator errors correctly (so as to not break deferred probing)
      * hts221
        - Remove a duplicated include
      * maxim thermocouple
        - Handle a wrong storage side in read function.  Prevent any problems that
        might be introduced by additions to this driver in future.
      * tsl2583 - big set from Brian Masney to drive this towards a staging
        graduation.
        - Convert to iio_chan_spec and read_raw / write_raw (in a couple of steps)
        - Improved error handling in various functions
        - Drop redundant power_state custom sysfs attribute.
        - Use IIO_*_ATTR* macros for remaining attributes.
        - Return an error code to userspace on invalid parameters being writen to
          sysfs files.
        - Add locking to various attribute accesses to remove possible races.
        - Add defines for various magic numbers.
        - Use smbus_read_byte_data instead of a write_byte followed by read_byte.
        - Query only relevant registers in probe.
        - Tidy up ordering of code comments.
        - Remove a pointless power off sequence in taos_chip_on.
        - Don't bother shutting down the chip when updating the lux table.
        The table is held entirely in the driver and doesn't effect the chip at all.
        - Drop a redundant i2c call in taos_als_calibrate where the same register
        is read twice in a row.
      7970b9e6
  2. 06 11月, 2016 17 次提交
  3. 02 11月, 2016 16 次提交