1. 25 5月, 2015 1 次提交
    • H
      HID: usbhid: add Chicony/Pixart usb optical mouse that needs QUIRK_ALWAYS_POLL · 7250dc3f
      Herton R. Krzesinski 提交于
      I received a report from an user of following mouse which needs this quirk:
      
      usb 1-1.6: USB disconnect, device number 58
      usb 1-1.6: new low speed USB device number 59 using ehci_hcd
      usb 1-1.6: New USB device found, idVendor=04f2, idProduct=1053
      usb 1-1.6: New USB device strings: Mfr=1, Product=2, SerialNumber=0
      usb 1-1.6: Product: USB Optical Mouse
      usb 1-1.6: Manufacturer: PixArt
      usb 1-1.6: configuration #1 chosen from 1 choice
      input: PixArt USB Optical Mouse as /devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.6/1-1.6:1.0/input/input5887
      generic-usb 0003:04F2:1053.16FE: input,hidraw2: USB HID v1.11 Mouse [PixArt USB Optical Mouse] on usb-0000:00:1a.0-1.6/input0
      
      The quirk was tested by the reporter and it fixed the frequent disconnections etc.
      
      [jkosina@suse.cz: reorder the position in hid-ids.h]
      Signed-off-by: NHerton R. Krzesinski <herton@redhat.com>
      Reviewed-by: NBenjamin Tissoires <benjamin.tissoires@redhat.com>
      Signed-off-by: NJiri Kosina <jkosina@suse.cz>
      7250dc3f
  2. 20 5月, 2015 1 次提交
  3. 13 5月, 2015 1 次提交
  4. 12 5月, 2015 1 次提交
    • S
      HID: hid-sensor-hub: Fix debug lock warning · 2d94e522
      Srinivas Pandruvada 提交于
      When CONFIG_DEBUG_LOCK_ALLOC is defined, mutex magic is compared and
      warned for (l->magic != l), here l is the address of mutex pointer.
      In hid-sensor-hub as part of hsdev creation, a per hsdev mutex is
      initialized during MFD cell creation. This hsdev, which contains, mutex
      is part of platform data for the a cell. But platform_data is copied
      in platform_device_add_data() in platform.c. This copy will copy the
      whole hsdev structure including mutex. But once copied the magic
      will no longer match. So when client driver call
      sensor_hub_input_attr_get_raw_value, this will trigger mutex warning.
      So to avoid this allocate mutex dynamically. This will be same even
      after copy.
      Signed-off-by: NSrinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
      Signed-off-by: NJiri Kosina <jkosina@suse.cz>
      2d94e522
  5. 07 5月, 2015 1 次提交
    • B
      Revert "HID: logitech-hidpp: support combo keyboard touchpad TK820" · 5006c105
      Benjamin Tissoires 提交于
      This reverts commit 3a61e975.
      
      The Logitech TK820 seems to be affected by a firmware bug which
      delays the sending of the keys (pressed, or released, which triggers
      a key-repeat) while holding fingers on the touch sensor.
      This behavior can be observed while using the mouse emulation mode
      if the user moves the finger while typing (highly improbable though).
      Holding the finger still while in the mouse emulation mode does
      not trigger the key repeat problem.
      So better keep things in their previous state to not have to
      explain users that the new key-repeat bug they see is a "feature".
      
      Furthermore, I noticed that I disabled the media keys whith
      this patch. Sorry, my bad.
      
      I think it is best to revert the patch, in all the current
      versions it has been shipped.
      
      Cc: <stable@vger.kernel.org> # v3.19 and above
      Signed-off-by: NBenjamin Tissoires <benjamin.tissoires@redhat.com>
      Signed-off-by: NJiri Kosina <jkosina@suse.cz>
      5006c105
  6. 23 4月, 2015 1 次提交
  7. 15 4月, 2015 1 次提交
  8. 13 4月, 2015 1 次提交
  9. 12 4月, 2015 1 次提交
  10. 11 4月, 2015 9 次提交
    • F
      dmaengine: cppi41: add missing bitfields · ffeb13aa
      Felipe Balbi 提交于
      Add missing directions, residue_granularity,
      srd_addr_widths and dst_addr_widths bitfields.
      
      Without those we will see a kernel WARN()
      when loading musb on am335x devices.
      Signed-off-by: NFelipe Balbi <balbi@ti.com>
      Signed-off-by: NVinod Koul <vinod.koul@intel.com>
      ffeb13aa
    • C
      ipmi_ssif: Use interruptible completion for waiting in the thread · d0acf734
      Corey Minyard 提交于
      The code was using an normal completion, but that caused stuck
      task errors after a while.  Use an interruptible one to avoid that.
      Signed-off-by: NCorey Minyard <cminyard@mvista.com>
      d0acf734
    • A
      ipmi/powernv: Fix minor locking bug · ad1ed2a9
      Alistair Popple 提交于
      If ipmi_powernv_recv(...) is called without a current message it
      prints a warning and returns. However it fails to release the message
      lock causing the system to dead lock during any subsequent IPMI
      operations.
      
      This error path should never normally be taken unless there are bugs
      elsewhere in the system.
      Signed-off-by: NAlistair Popple <alistair@popple.id.au>
      Signed-off-by: NCorey Minyard <cminyard@mvista.com>
      ad1ed2a9
    • C
      ipmi: Handle BMCs that don't allow clearing the rcv irq bit · 1e7d6a45
      Corey Minyard 提交于
      Some BMCs don't let you clear the receive irq bit in the global
      enables.  This is kind of silly, but they give an error if you
      try to clear it.  Compensate for this by detecting the situation
      and working around it.
      Signed-off-by: NCorey Minyard <cminyard@mvista.com>
      Tested-by: NThomas D <whissi@whissi.de>
      Reviewed-by: NThomas D <whissi@whissi.de>
      1e7d6a45
    • S
      HID: sensor: Custom and Generic sensor support · 4a7de051
      Srinivas Pandruvada 提交于
      HID Sensor Spec defines two usage ids for custom sensors
      
      	HID_USAGE_SENSOR_TYPE_OTHER_CUSTOM (0x09, 0xE1)
      	HID_USAGE_SENSOR_TYPE_OTHER_GENERIC(0x09, 0xE2)
      
      	In addition the standard also defines usage ids for custom fields.
      The purpose of these sensors is to extend the functionality or provide a way to
      obfuscate the data being communicated by a sensor. Without knowing the mapping
      between the data and its encapsulated form, it is difficult for an driver to
      determine what data is being communicated by the sensor.  This allows some
      differentiating use cases, where vendor can provide applications.  Since these
      can't be represented by standard sensor interfaces like IIO, we present these
      as fields with
      
      - type (input/output)
      - units
      - min/max
      - get/set value
      
      In addition an dev interface to transfer report events. Details about this
      interface is described in /Documentation/hid/hid-sensor.txt.  Manufacturers
      should not use these ids for any standard sensors, otherwise the the
      product/vendor id can be added to black list.
      Signed-off-by: NSrinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
      Reviewed-by: NJonathan Cameron <jic23@kernel.org>
      Signed-off-by: NJiri Kosina <jkosina@suse.cz>
      4a7de051
    • M
      iscsi target: fix oops when adding reject pdu · b815fc12
      Mike Christie 提交于
      This fixes a oops due to a double list add when adding a reject PDU for
      iscsit_allocate_iovecs allocation failures. The cmd has already been
      added to the conn_cmd_list in iscsit_setup_scsi_cmd, so this has us call
      iscsit_reject_cmd.
      
      Note that for ERL0 the reject PDU is not actually sent, so this patch
      is not completely tested. Just verified we do not oops. The problem is the
      add reject functions return -1 which is returned all the way up to
      iscsi_target_rx_thread which for ERL0 will drop the connection.
      Signed-off-by: NMike Christie <michaelc@cs.wisc.edu>
      Cc: <stable@vger.kernel.org> # v3.10+
      Signed-off-by: NNicholas Bellinger <nab@linux-iscsi.org>
      b815fc12
    • M
      spi: bcm2835: enabling polling mode for transfers shorter than 30us · 704f32d4
      Martin Sperl 提交于
      In cases of short transfer times the CPU is spending lots of time
      in the interrupt handler and scheduler to reschedule the worker thread.
      
      Measurements show that we have times where it takes 29.32us to between
      the last clock change and the time that the worker-thread is running again
      returning from wait_for_completion_timeout().
      
      During this time the interrupt-handler is running calling complete()
      and then also the scheduler is rescheduling the worker thread.
      
      This time can vary depending on how much of the code is still in
      CPU-caches, when there is a burst of spi transfers the subsequent delays
      are in the order of 25us, so the value of 30us seems reasonable.
      
      With polling the whole transfer of 4 bytes at 10MHz finishes after 6.16us
      (CS down to up) with the real transfer (clock running) taking 3.56us.
      So the efficiency has much improved and is also freeing CPU cycles,
      reducing interrupts and context switches.
      
      Because of the above 30us seems to be a reasonable limit for polling.
      Signed-off-by: NMartin Sperl <kernel@martin.sperl.org>
      Signed-off-by: NMark Brown <broonie@kernel.org>
      704f32d4
    • M
      spi: bcm2835: transform native-cs to gpio-cs on first spi_setup · a30a555d
      Martin Sperl 提交于
      Transforms the bcm-2835 native SPI-chip select to their gpio-cs equivalent.
      
      This allows for some support of some optimizations that are not
      possible due to HW-gliches on the CS line - especially filling
      the FIFO before enabling SPI interrupts (by writing to CS register)
      while the transfer is already in progress (See commit: e3a2be30)
      
      This patch also works arround some issues in bcm2835-pinctrl which does not
      set the value when setting the GPIO as output - it just sets up output and
      (typically) leaves the GPIO as low.  When a fix for this is merged then this
      gpio_set_value can get removed from bcm2835_spi_setup.
      Signed-off-by: NMartin Sperl <kernel@martin.sperl.org>
      Signed-off-by: NMark Brown <broonie@kernel.org>
      a30a555d
    • M
      regulator: max8660: Handle empty regulator data · c0cf5a59
      Markus Pargmann 提交于
      It is not necessary to have regulator init data for a regulator. This
      patch removes the necessity of this data and handles a NULL pointer
      properly.
      Signed-off-by: NMarkus Pargmann <mpa@pengutronix.de>
      Signed-off-by: NMark Brown <broonie@kernel.org>
      c0cf5a59
  11. 10 4月, 2015 17 次提交
  12. 09 4月, 2015 5 次提交