<feed xmlns='http://www.w3.org/2005/Atom'>
<title>linux/drivers/hid, branch v4.2</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/
</subtitle>
<id>https://git.shady.money/linux/atom?h=v4.2</id>
<link rel='self' href='https://git.shady.money/linux/atom?h=v4.2'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/'/>
<updated>2015-08-10T22:16:48Z</updated>
<entry>
<title>Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jikos/hid</title>
<updated>2015-08-10T22:16:48Z</updated>
<author>
<name>Linus Torvalds</name>
<email>torvalds@linux-foundation.org</email>
</author>
<published>2015-08-10T22:16:48Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=7a834ba5e26e9e4afabf3cce9ca8cd1c6c3dce50'/>
<id>urn:sha1:7a834ba5e26e9e4afabf3cce9ca8cd1c6c3dce50</id>
<content type='text'>
Pull HID fixes from Jiri Kosina:

 - fix for bounds limit calculation in uclogic driver, by Dan Carpenter

 - fix for use-after-free during device removal, by Krzysztof Kozlowski

 - fix for userspace regression (that became apparent only with shiny
   new libinput, so it's not that bad, but I still consider it 4.2
   material), in wacom driver, by Jason Gerecke

* 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jikos/hid:
  HID: wacom: Report correct device resolution when using the wireless adapater
  HID: hid-input: Fix accessing freed memory during device disconnect
  HID: uclogic: fix limit in uclogic_tablet_enable()
</content>
</entry>
<entry>
<title>HID: wacom: Report correct device resolution when using the wireless adapater</title>
<updated>2015-08-10T21:49:56Z</updated>
<author>
<name>Jason Gerecke</name>
<email>killertofu@gmail.com</email>
</author>
<published>2015-08-05T22:44:53Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=0be017120b80f0fe3da9a8239f989a27e54828f2'/>
<id>urn:sha1:0be017120b80f0fe3da9a8239f989a27e54828f2</id>
<content type='text'>
The 'wacom_wireless_work' function does not recalculate the tablet's
resolution, causing the value contained in the 'features' struct to
always be reported to userspace. This value is valid only for the pen
interface, meaning that the value will be incorrect for the touchpad (if
present). This in particular causes problems for libinput which relies
on the reported resolution being correct.

This patch adds the necessary calls to recalculate the resolution for
each interface. This requires a little bit of code shuffling since both
the 'wacom_set_default_phy' and 'wacom_calculate_res' are declared below
their new first point of use in 'wacom_wireless_work'.

Signed-off-by: Jason Gerecke &lt;jason.gerecke@wacom.com&gt;
Signed-off-by: Jiri Kosina &lt;jkosina@suse.cz&gt;
</content>
</entry>
<entry>
<title>HID: hid-input: Fix accessing freed memory during device disconnect</title>
<updated>2015-08-04T13:45:44Z</updated>
<author>
<name>Krzysztof Kozlowski</name>
<email>k.kozlowski@samsung.com</email>
</author>
<published>2015-08-03T05:57:30Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=0621809e37936e7c2b3eac9165cf2aad7f9189eb'/>
<id>urn:sha1:0621809e37936e7c2b3eac9165cf2aad7f9189eb</id>
<content type='text'>
During unbinding the driver was dereferencing a pointer to memory
already freed by power_supply_unregister().

Driver was freeing its internal description of battery through pointers
stored in power_supply structure. However, because the core owns the
power supply instance, after calling power_supply_unregister() this
memory is freed and the driver cannot access these members.

Fix this by storing the pointer to internal description of battery in a
local variable before calling power_supply_unregister(), so the pointer
remains valid.

Signed-off-by: Krzysztof Kozlowski &lt;k.kozlowski@samsung.com&gt;
Reported-by: H.J. Lu &lt;hjl.tools@gmail.com&gt;
Fixes: 297d716f6260 ("power_supply: Change ownership from driver to core")
Cc: &lt;stable@vger.kernel.org&gt;
Reviewed-by: Dmitry Torokhov &lt;dmitry.torokhov@gmail.com&gt;
Signed-off-by: Jiri Kosina &lt;jkosina@suse.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input</title>
<updated>2015-07-30T18:03:04Z</updated>
<author>
<name>Linus Torvalds</name>
<email>torvalds@linux-foundation.org</email>
</author>
<published>2015-07-30T18:03:04Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=dbe08116b87cdc2217f11a78b5b70e29068b7efd'/>
<id>urn:sha1:dbe08116b87cdc2217f11a78b5b70e29068b7efd</id>
<content type='text'>
Pull input fixes from Dmitry Torokhov:
 "The main change is support for keyboards and touchpads found in 2015
  editions of Macbooks"

* 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input:
  Revert "Input: zforce - don't overwrite the stack"
  Input: bcm5974 - add support for the 2015 Macbook Pro
  HID: apple: Add support for the 2015 Macbook Pro
  Input: bcm5974 - prepare for a new trackpad generation
  Input: synaptics - dump ext10 capabilities as well
</content>
</entry>
<entry>
<title>HID: uclogic: fix limit in uclogic_tablet_enable()</title>
<updated>2015-07-29T12:05:15Z</updated>
<author>
<name>Dan Carpenter</name>
<email>dan.carpenter@oracle.com</email>
</author>
<published>2015-07-29T10:16:06Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=4a8e70f5d0d80675fc17b9ba1e62db8ca6b91775'/>
<id>urn:sha1:4a8e70f5d0d80675fc17b9ba1e62db8ca6b91775</id>
<content type='text'>
The limit should be ARRAY_SIZE(params) (5 elements) here instead of
sizeof(params) (20 bytes).

Fixes: 08177f40bd00 ('HID: uclogic: merge hid-huion driver in hid-uclogic')
Signed-off-by: Dan Carpenter &lt;dan.carpenter@oracle.com&gt;
Reviewed-by: Nikolai Kondrashov &lt;spbnick@gmail.com&gt;
Signed-off-by: Jiri Kosina &lt;jkosina@suse.com&gt;
</content>
</entry>
<entry>
<title>HID: apple: Add support for the 2015 Macbook Pro</title>
<updated>2015-07-27T22:43:46Z</updated>
<author>
<name>Henrik Rydberg</name>
<email>rydberg@bitmath.org</email>
</author>
<published>2015-07-24T21:45:05Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=a4a2c54560f2c57b88ba0283f141b44f594c2337'/>
<id>urn:sha1:a4a2c54560f2c57b88ba0283f141b44f594c2337</id>
<content type='text'>
This patch adds keyboard support for MacbookPro12,1 as WELLSPRING9
(0x0272, 0x0273, 0x0274). The touchpad is handled in a separate
bcm5974 patch, as usual.

Tested-by: John Horan &lt;knasher@gmail.com&gt;
Tested-by: Jochen Radmacher &lt;jradmacher@gmx.de&gt;
Tested-by: Yang Hongyang &lt;burnef@gmail.com&gt;
Tested-by: Yen-Chin, Lee &lt;coldnew.tw@gmail.com&gt;
Tested-by: George Hilios &lt;ghilios@gmail.com&gt;
Tested-by: Janez Urevc &lt;janez@janezurevc.name&gt;
Signed-off-by: Henrik Rydberg &lt;rydberg@bitmath.org&gt;
Acked-by: Jiri Kosina &lt;jkosina@suse.com&gt;
Signed-off-by: Dmitry Torokhov &lt;dmitry.torokhov@gmail.com&gt;</content>
</entry>
<entry>
<title>HID: cp2112: fix to force single data-report reply</title>
<updated>2015-07-08T10:40:23Z</updated>
<author>
<name>Antonio Borneo</name>
<email>borneo.antonio@gmail.com</email>
</author>
<published>2015-06-21T06:20:25Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=6debce6f4e787a8eb4cec94e7afa85fb4f40db27'/>
<id>urn:sha1:6debce6f4e787a8eb4cec94e7afa85fb4f40db27</id>
<content type='text'>
Current implementation of cp2112_raw_event() only accepts one data report at a
time. If last received data report is not fully handled yet, a new incoming
data report will overwrite it. In such case we don't guaranteed to propagate
the correct incoming data.

The trivial fix implemented here forces a single report at a time by requesting
in cp2112_read() no more than 61 byte of data, which is the payload size of a
single data report.

Cc: stable@vger.kernel.org
Signed-off-by: Antonio Borneo &lt;borneo.antonio@gmail.com&gt;
Tested-by: Ellen Wang &lt;ellen@cumulusnetworks.com&gt;
Signed-off-by: Jiri Kosina &lt;jkosina@suse.com&gt;
</content>
</entry>
<entry>
<title>HID: wacom: Enable pad device for older Bamboo Touch tablets</title>
<updated>2015-07-08T09:40:59Z</updated>
<author>
<name>Jason Gerecke</name>
<email>killertofu@gmail.com</email>
</author>
<published>2015-07-01T20:01:00Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=9633920e5ef65f81d30f2acd642d6d1c25cf7bc7'/>
<id>urn:sha1:9633920e5ef65f81d30f2acd642d6d1c25cf7bc7</id>
<content type='text'>
Commit 862cf55 ("HID: wacom: Introduce a new WACOM_DEVICETYPE_PAD device_type")
neglected to set the WACOM_DEVICETYPE_PAD flag for older two-finger Bamboo
Touch tablets. Not only does this result in the pad device not appearing when
such a tablet is plugged in, but also causes a segfault when 'wacom_bpt_touch'
tries to send pad events. This patch adds the flag to resolve these issues.

Signed-off-by: Jason Gerecke &lt;jason.gerecke@wacom.com&gt;
Signed-off-by: Jiri Kosina &lt;jkosina@suse.com&gt;
</content>
</entry>
<entry>
<title>HID: multitouch: Fix fields from pen report ID being interpreted for multitouch</title>
<updated>2015-07-08T09:30:00Z</updated>
<author>
<name>Brent Adam</name>
<email>brentadamdev@gmail.com</email>
</author>
<published>2015-06-19T16:53:35Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=1cc1cc92c4c4891abc48a777fb9fbc69077d5673'/>
<id>urn:sha1:1cc1cc92c4c4891abc48a777fb9fbc69077d5673</id>
<content type='text'>
Fields like HID_DG_CONTACTCOUNT are outside of the physical collection,
but within the application collection and report ID.  Make sure to catch
those fields that are not part of the mt_report_id and return 0 so they
can be processed with the pen.  Otherwise, the wrong HID_DG_CONTACTCOUNT
will be applied to cc_index and result in dereferencing a null pointer in
mt_touch_report.

Signed-off-by: Brent Adam &lt;brentadam@smarttech.com&gt;
Signed-off-by: Jiri Kosina &lt;jkosina@suse.com&gt;
</content>
</entry>
<entry>
<title>HID: microsoft: Add quirk for MS Surface Type/Touch cover</title>
<updated>2015-06-29T12:28:25Z</updated>
<author>
<name>Reyad Attiyat</name>
<email>reyad.attiyat@gmail.com</email>
</author>
<published>2015-06-29T00:22:37Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/linux/commit/?id=c5b2b809cee8db018ac68566fe2114c175d79b5b'/>
<id>urn:sha1:c5b2b809cee8db018ac68566fe2114c175d79b5b</id>
<content type='text'>
The newer firmware on MS Surface 2 tablets causes the type and touch cover keyboards to timeout when waiting for reports.
The quirk HID_QUIRK_NO_INIT_REPORTS allows them to function normally.

Signed-off-by: Reyad Attiyat &lt;reyad.attiyat@gmail.com&gt;
Signed-off-by: Jiri Kosina &lt;jkosina@suse.cz&gt;
</content>
</entry>
</feed>
