21 Apr, 2012

1 commit


19 Apr, 2012

1 commit

  • Commit 4f5ca836b "HID: hid-input: add support for HID devices reporting
    Battery Strength" added the CONFIG_HID_BATTERY_STRENGTH option to report
    the battery strength of HID devices. The commit log explicitly mentions
    it not working properly with recent userspace, but it is default y
    anyway. This is rather odd, and actually causes problems on real
    systems.

    This works around Fedora bug
    https://bugzilla.redhat.com/show_bug.cgi?id=806295

    Signed-off-by: Josh Boyer
    Signed-off-by: Jiri Kosina

    Josh Boyer
     

06 Apr, 2012

1 commit

  • Many users of debugfs copy the implementation of default_open() when
    they want to support a custom read/write function op. This leads to a
    proliferation of the default_open() implementation across the entire
    tree.

    Now that the common implementation has been consolidated into libfs we
    can replace all the users of this function with simple_open().

    This replacement was done with the following semantic patch:

    @ open @
    identifier open_f != simple_open;
    identifier i, f;
    @@
    -int open_f(struct inode *i, struct file *f)
    -{
    (
    -if (i->i_private)
    -f->private_data = i->i_private;
    |
    -f->private_data = i->i_private;
    )
    -return 0;
    -}

    @ has_open depends on open @
    identifier fops;
    identifier open.open_f;
    @@
    struct file_operations fops = {
    ...
    -.open = open_f,
    +.open = simple_open,
    ...
    };

    [akpm@linux-foundation.org: checkpatch fixes]
    Signed-off-by: Stephen Boyd
    Cc: Greg Kroah-Hartman
    Cc: Al Viro
    Cc: Julia Lawall
    Acked-by: Ingo Molnar
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Stephen Boyd
     

30 Mar, 2012

1 commit


24 Mar, 2012

1 commit

  • Pull media updates from Mauro Carvalho Chehab:
    - V4L2 API additions to better support JPEG compression control
    - media API additions to properly support MPEG decoders
    - V4L2 API additions for image crop/scaling
    - a few other V4L2 API DocBook fixes/improvements
    - two new DVB frontend drivers: m88rs2000 and rtl2830
    - two new DVB drivers: az6007 and rtl28xxu
    - a framework for ISA drivers, that removed lots of common code found
    at the ISA radio drivers
    - a new FM transmitter driver (radio-keene)
    - a GPIO-based IR receiver driver
    - a new sensor driver: mt9m032
    - some new video drivers: adv7183, blackfin, mx2_emmaprp, sii9234_drv,
    vs6624
    - several new board additions, driver fixes, improvements and cleanups.

    * 'v4l_for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-media: (295 commits)
    [media] update CARDLIST.em28xx
    [media] partially reverts changeset fa5527c
    [media] stb0899: fix the limits for signal strength values
    [media] em28xx: support for 2304:0242 PCTV QuatroStick (510e)
    [media] em28xx: support for 2013:0251 PCTV QuatroStick nano (520e)
    [media] -EINVAL -> -ENOTTY
    [media] gspca - sn9c20x: Cleanup source
    [media] gspca - sn9c20x: Simplify register write for capture start/stop
    [media] gspca - sn9c20x: Add automatic JPEG compression mechanism
    [media] gspca - sn9c20x: Greater delay in case of sensor no response
    [media] gspca - sn9c20x: Optimize the code of write sequences
    [media] gspca - sn9c20x: Add the JPEG compression quality control
    [media] gspca - sn9c20x: Add a delay after Omnivision sensor reset
    [media] gspca - sn9c20x: Propagate USB errors to higher level
    [media] gspca - sn9c20x: Use the new video control mechanism
    [media] gspca - sn9c20x: Fix loss of frame start
    [media] gspca - zc3xx: Lack of register 08 value for sensor cs2102k
    [media] gspca - ov534_9: Add brightness to OmniVision 5621 sensor
    [media] gspca - zc3xx: Add V4L2_CID_JPEG_COMPRESSION_QUALITY control support
    [media] pvrusb2: fix 7MHz & 8MHz DVB-T tuner support for HVR1900 rev D1F5
    ...

    Linus Torvalds
     

23 Mar, 2012

1 commit

  • Pull input subsystem updates from Dmitry Torokhov:
    "- we finally merged driver for USB version of Synaptics touchpads
    (I guess most commonly found in IBM/Lenovo keyboard/touchpad combo);

    - a bunch of new drivers for embedded platforms (Cypress
    touchscreens, DA9052 OnKey, MAX8997-haptic, Ilitek ILI210x
    touchscreens, TI touchscreen);

    - input core allows clients to specify desired clock source for
    timestamps on input events (EVIOCSCLOCKID ioctl);

    - input core allows querying state of all MT slots for given event
    code via EVIOCGMTSLOTS ioctl;

    - various driver fixes and improvements."

    * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input: (45 commits)
    Input: ili210x - add support for Ilitek ILI210x based touchscreens
    Input: altera_ps2 - use of_match_ptr()
    Input: synaptics_usb - switch to module_usb_driver()
    Input: convert I2C drivers to use module_i2c_driver()
    Input: convert SPI drivers to use module_spi_driver()
    Input: omap4-keypad - move platform_data to
    Input: kxtj9 - who_am_i check value and initial data rate fixes
    Input: add driver support for MAX8997-haptic
    Input: tegra-kbc - revise device tree support
    Input: of_keymap - add device tree bindings for simple key matrices
    Input: wacom - fix physical size calculation for 3rd-gen Bamboo
    Input: twl4030-vibra - really switch from #if to #ifdef
    Input: hp680_ts_input - ensure arguments to request_irq and free_irq are compatible
    Input: max8925_onkey - avoid accessing input device too early
    Input: max8925_onkey - allow to be used as a wakeup source
    Input: atmel-wm97xx - convert to dev_pm_ops
    Input: atmel-wm97xx - set driver owner
    Input: add cyttsp touchscreen maintainer entry
    Input: cyttsp - remove useless checks in cyttsp_probe()
    Input: usbtouchscreen - add support for Data Modul EasyTouch TP 72037
    ...

    Linus Torvalds
     

21 Mar, 2012

2 commits

  • Pull HID updates from Jiri Kosina:
    "It contains HID driver updates all over the place -- a lot of new
    hardware support especially in the multitouch area, including generic
    handling of all multitouch devices by the hid-multitiouch driver
    automatically."

    * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jikos/hid: (42 commits)
    HID: multitouch: add PID for Fructel product
    HID: wacom: Add reporting of wheel for Intuos4 WL
    HID: wacom: Replace __set_bit with input_set_capability
    HID: tivo: add support for BT-version (0x1200)
    HID: wacom: Reset stylus buttons - Intuos4 WL
    HID: multitouch: detect serial protocol
    HID: handle all multitouch devices through hid-multitouch
    HID: multitouch: fix handling of buggy reports descriptors for Dell ST2220T
    HID: make it possible to force hid-core claim the device
    HID: multitouch: add support for eGalax 0x722a
    HID: usbhid: add quirk no_get for quanta 3008 devices
    HID: multitouch: add more eGalax devices
    HID: multitouch: add new PID from Ideacom
    HID: multitouch: add support for Atmel maXTouch 03eb:2118
    HID: waltop: Add support for tablet with PID 0038
    HID: waltop: Replace original rdescs with links
    HID: uclogic: Replace original rdescs with links
    HID: wacom: Add pad buttons reporting on Intuos4 WL
    HID: wacom: report distance for Intuos4 WL
    HID: kye: Add support for 3 tablets
    ...

    Linus Torvalds
     
  • Pull driver core patches for 3.4-rc1 from Greg KH:
    "Here's the big driver core merge for 3.4-rc1.

    Lots of various things here, sysfs fixes/tweaks (with the nlink
    breakage reverted), dynamic debugging updates, w1 drivers, hyperv
    driver updates, and a variety of other bits and pieces, full
    information in the shortlog."

    * tag 'driver-core-3.3' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core: (78 commits)
    Tools: hv: Support enumeration from all the pools
    Tools: hv: Fully support the new KVP verbs in the user level daemon
    Drivers: hv: Support the newly introduced KVP messages in the driver
    Drivers: hv: Add new message types to enhance KVP
    regulator: Support driver probe deferral
    Revert "sysfs: Kill nlink counting."
    uevent: send events in correct order according to seqnum (v3)
    driver core: minor comment formatting cleanups
    driver core: move the deferred probe pointer into the private area
    drivercore: Add driver probe deferral mechanism
    DS2781 Maxim Stand-Alone Fuel Gauge battery and w1 slave drivers
    w1_bq27000: Only one thread can access the bq27000 at a time.
    w1_bq27000 - remove w1_bq27000_write
    w1_bq27000: remove unnecessary NULL test.
    sysfs: Fix memory leak in sysfs_sd_setsecdata().
    intel_idle: Revert change of auto_demotion_disable_flags for Nehalem
    w1: Fix w1_bq27000
    driver-core: documentation: fix up Greg's email address
    powernow-k6: Really enable auto-loading
    powernow-k7: Fix CPU family number
    ...

    Linus Torvalds
     

20 Mar, 2012

5 commits

  • Conflicts:
    drivers/hid/Makefile

    Jiri Kosina
     
  • Adds multitouch support for the Gametel Android game controller.

    The multitouch events are emulated by the Gametel device. Each physical button
    is configured to generate a MT event on a specific coordinate. This seems to be
    the only way for us to support Android games that doesn't support HID gamepads.
    It is possible to inject MT events at Android level, but this requires root on
    the phone.

    Signed-off-by: Andreas Nielsen
    Signed-off-by: Jiri Kosina

    Andreas Nielsen
     
  • Jiri Kosina
     
  • Jiri Kosina
     
  • * tag 'v3.3': (1646 commits)
    Linux 3.3
    Don't limit non-nested epoll paths
    netfilter: ctnetlink: fix race between delete and timeout expiration
    ipv6: Don't dev_hold(dev) in ip6_mc_find_dev_rcu.
    nilfs2: fix NULL pointer dereference in nilfs_load_super_block()
    nilfs2: clamp ns_r_segments_percentage to [1, 99]
    afs: Remote abort can cause BUG in rxrpc code
    afs: Read of file returns EBADMSG
    C6X: remove dead code from entry.S
    wimax/i2400m: fix erroneous NETDEV_TX_BUSY use
    net/hyperv: fix erroneous NETDEV_TX_BUSY use
    net/usbnet: reserve headroom on rx skbs
    bnx2x: fix memory leak in bnx2x_init_firmware()
    bnx2x: fix a crash on corrupt firmware file
    sch_sfq: revert dont put new flow at the end of flows
    ipv6: fix icmp6_dst_alloc()
    MAINTAINERS: Add Serge as maintainer of capabilities
    drivers/video/backlight/s6e63m0.c: fix corruption storing gamma mode
    MAINTAINERS: add entry for exynos mipi display drivers
    MAINTAINERS: fix link to Gustavo Padovans tree
    ...

    Mauro Carvalho Chehab
     

16 Mar, 2012

2 commits


13 Mar, 2012

1 commit


12 Mar, 2012

4 commits


10 Mar, 2012

2 commits


09 Mar, 2012

2 commits


06 Mar, 2012

7 commits


05 Mar, 2012

1 commit

  • Allow array field values out of range as per HID 1.11 specification,
    section 6.2.25:

    Rather than returning a single bit for each button in the group, an
    array returns an index in each field that corresponds to the pressed
    button (like keyboard scan codes). An out-of range value in and array
    field is considered no controls asserted.

    Apparently, "and" above is a typo and should be "an".

    This fixes at least Waltop tablet pen clicks - otherwise BTN_TOUCH is never
    released.

    The relevant part of Waltop tablet report descriptors is this:

    0x09, 0x42, /* Usage (Tip Switch), */
    0x09, 0x44, /* Usage (Barrel Switch), */
    0x09, 0x46, /* Usage (Tablet Pick), */
    0x15, 0x01, /* Logical Minimum (1), */
    0x25, 0x03, /* Logical Maximum (3), */
    0x75, 0x04, /* Report Size (4), */
    0x95, 0x01, /* Report Count (1), */
    0x80, /* Input, */

    This is a regression fix for commit b4b583d ("HID: be more strict when
    ignoring out-of-range fields").

    Signed-off-by: Nikolai Kondrashov
    Signed-off-by: Jiri Kosina

    Nikolai Kondrashov
     

01 Mar, 2012

2 commits

  • This patch adds reporting of 1 wheel button and 8 strip buttons for Intuos4 WL.
    The buttons are reported as BTN_0 to BTN_9. The change of type butstate variable
    is required as the old type 'char' couldn't store state of 9 buttons. The change
    is not affecting Graphire tablet as it only uses first 2 bits of 'butstate'.

    Signed-off-by: Przemo Firszt
    Acked-by:Ping Cheng
    Signed-off-by: Jiri Kosina

    Przemo Firszt
     
  • This patch adds reporting of distance of tool to the tablet surface. Maximum
    reported value is 63 (0x3F).

    Signed-off-by: Przemo Firszt
    Acked-by: Peter Hutterer
    Signed-off-by: Jiri Kosina

    Przemo Firszt
     

28 Feb, 2012

2 commits


27 Feb, 2012

2 commits


23 Feb, 2012

1 commit


22 Feb, 2012

1 commit