06 Sep, 2013

1 commit


20 Aug, 2013

1 commit

  • ACPI 5.0 specification requires the fourth parameter to the _DSM (Device
    Specific Method) to be of type package instead of integer. Failing to do
    that we get following warning on the console:

    ACPI Warning: \_SB_.PCI0.I2C1.TPL0._DSM: Argument #4 type mismatch - Found [Integer],
    ACPI requires [Package] (20130517/nsarguments-95)

    Fix this by passing an empty package to the _DSM method. The HID over I2C
    specification doesn't require any specific values to be passed with this
    parameter.

    Signed-off-by: Mika Westerberg
    Reviewed-by: Benjamin Tissoires
    Signed-off-by: Jiri Kosina

    Mika Westerberg
     

05 Aug, 2013

1 commit


31 Jul, 2013

2 commits


04 Jul, 2013

1 commit

  • The current i2c hid driver does not support sending HID output reports using
    the output register for devices which support receiving reports through this
    method. This patch determines which method to use to send output reports based
    on the value of wMaxOutputLength in the device's HID descriptor.

    Signed-off-by: Andrew Duggan
    Reviewed-by: Benjamin Tissoires
    Signed-off-by: Jiri Kosina

    Andrew Duggan
     

04 Apr, 2013

1 commit

  • With the current i2c hid driver set/get report does not work
    as expected, for e.g sensor hub properties like power state,
    frequency etc is not set properly on the device as a result
    we do not get events.
    The problem is that i2c hid driver in function i2c_hid_request
    sets length equal to default buffer size for which the sensor
    hub does not respond on get/set commands. Use report length
    and calculate it based on report size and id.

    Reviewed-by: Mika Westerberg
    Reviewed-by: Benjamin Tissoires
    Signed-off-by: Huzefa Kankroliwala
    Signed-off-by: Jiri Kosina

    Huzefa Kankroliwala
     

25 Feb, 2013

1 commit


21 Feb, 2013

1 commit


01 Feb, 2013

2 commits

  • PullHID fixes from Jiri Kosina:

    - fix i2c-hid and hidraw interaction, by Benjamin Tissoires

    - a quirk to make a particular device (Formosa IR receiver) work
    properly, by Nicholas Santos

    * 'for-3.8/upstream-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/jikos/hid:
    HID: i2c-hid: fix i2c_hid_output_raw_report
    HID: usbhid: quirk for Formosa IR receiver
    HID: remove x bit from sensor doc

    Linus Torvalds
     
  • i2c_hid_output_raw_report is used by hidraw to forward set_report requests.
    The current implementation of i2c_hid_set_report needs to take the
    report_id as an argument. The report_id is stored in the first byte
    of the buffer in argument of i2c_hid_output_raw_report.

    Not removing the report_id from the given buffer adds this byte 2 times
    in the command, leading to a non working command.

    Reported-by: Andrew Duggan
    Signed-off-by: Benjamin Tissoires
    Signed-off-by: Jiri Kosina

    Benjamin Tissoires
     

18 Jan, 2013

1 commit

  • The HID over I2C protocol specification states that when the device is
    enumerated from ACPI the HID descriptor address can be obtained by
    executing "_DSM" for the device with function 1. Enable this.

    Signed-off-by: Mika Westerberg
    Reviewed-by: Benjamin Tissoires
    Signed-off-by: Jiri Kosina

    Mika Westerberg
     

04 Jan, 2013

1 commit

  • CONFIG_HOTPLUG is going away as an option. As a result, the __dev*
    markings need to be removed.

    This change removes the use of __devinit, __devexit_p, __devinitdata,
    __devinitconst, and __devexit from these drivers.

    Based on patches originally written by Bill Pemberton, but redone by me
    in order to handle some of the coding style issues better, by hand.

    Cc: Bill Pemberton
    Signed-off-by: Greg Kroah-Hartman

    Greg Kroah-Hartman
     

13 Dec, 2012

1 commit


06 Dec, 2012

5 commits


05 Dec, 2012

10 commits


21 Nov, 2012

1 commit


19 Nov, 2012

1 commit

  • Microsoft published the protocol specification of HID over i2c:
    http://msdn.microsoft.com/en-us/library/windows/hardware/hh852380.aspx

    This patch introduces an implementation of this protocol.

    This implementation does not includes the ACPI part of the specification.
    This will come when ACPI 5.0 devices enumeration will be available.

    Once the ACPI part is done, OEM will not have to declare HID over I2C
    devices in their platform specific driver.

    Signed-off-by: Benjamin Tissoires
    Signed-off-by: Jiri Kosina

    Benjamin Tissoires