22 Aug, 2019
1 commit
-
This is a common pattern in the HID drivers to reset the drvdata. Some
do it properly, some do it only in case of failure.But, this is actually already handled by driver core, so there is no need
to do it manually.[for hid-sensor-hub.c]
Acked-by: Srinivas Pandruvada
[For hid-picolcd_core.c]
Acked-by: Bruno Prémont
Signed-off-by: Benjamin Tissoires
05 Jun, 2019
1 commit
-
Based on 1 normalized pattern(s):
this program is free software you can redistribute it and or modify
it under the terms of the gnu general public license as published by
the free software foundation version 2 of the license this driver is
distributed in the hope that it will be useful but without any
warranty without even the implied warranty of merchantability or
fitness for a particular purpose see the gnu general public license
for more details you should have received a copy of the gnu general
public license along with this software if not see http www gnu org
licensesextracted by the scancode license scanner the SPDX license identifier
GPL-2.0-only
has been chosen to replace the boilerplate/reference in 8 file(s).
Signed-off-by: Thomas Gleixner
Reviewed-by: Richard Fontana
Reviewed-by: Allison Randal
Reviewed-by: Alexios Zavras
Cc: linux-spdx@vger.kernel.org
Link: https://lkml.kernel.org/r/20190529141333.861653206@linutronix.de
Signed-off-by: Greg Kroah-Hartman
27 Mar, 2019
1 commit
-
Convert to use sysfs_streq() instead of custom approach.
Signed-off-by: Andy Shevchenko
Signed-off-by: Jiri Kosina
28 Aug, 2014
1 commit
-
picolcd device is not expected to send any report with size larger than
64 bytes.If this impossible event happens (sic!), print also a report ID to allow
for easier debugging.Suggested-by: Bruno Prémont
Signed-off-by: Jiri Kosina
27 Aug, 2014
1 commit
-
The report passed to us from transport driver could potentially be
arbitrarily large, therefore we better sanity-check it so that raw_data
that we hold in picolcd_pending structure are always kept within proper
bounds.Cc: stable@vger.kernel.org
Reported-by: Steven Vittitoe
Signed-off-by: Jiri Kosina
04 Sep, 2013
1 commit
-
A HID device could send a malicious output report that would cause the
picolcd HID driver to trigger a NULL dereference during attr file writing.[jkosina@suse.cz: changed
report->maxfield < 1
to
report->maxfield != 1
as suggested by Bruno].
CVE-2013-2899
Signed-off-by: Kees Cook
Cc: stable@kernel.org
Reviewed-by: Bruno Prémont
Acked-by: Bruno Prémont
Signed-off-by: Jiri Kosina
25 Feb, 2013
1 commit
-
This allows the hid drivers to be independent from the transport layer.
The patch was constructed by replacing all occurences of
usbhid_submit_report() by its hid_hw_request() counterpart.
Then, drivers not requiring USB_HID anymore have their USB_HID
dependency cleaned in the Kconfig file.Finally, few drivers still depends on USB_HID. Many of them
are requiring the io wait callback. They are found in the next patch.Signed-off-by: Benjamin Tissoires
Reviewed-by: Mika WesterbergFor the sensor-hub part:
Tested-by: Mika Westerberg
Signed-off-by: Jiri Kosina
03 Jan, 2013
1 commit
-
Use the new module_hid_driver macro in all HID drivers that have
a simple register/unregister init/exit.This also converts the hid drivers that test for a failure of
hid_register_driver() and report the failure. Using module_hid_driver
in those drivers removes the failure message.Signed-off-by: H Hartley Sweeten
Signed-off-by: Jiri Kosina
19 Sep, 2012
2 commits
-
Current implementation of hid_hw_start() allows connect_mask to be 0.
Setting hdev->claimed = HID_CLAIMED_INPUT before calling hid_hw_start() is not
necessary. Remove it.Signed-off-by: Axel Lin
Acked-By: Bruno Prémont
Signed-off-by: Jiri Kosina -
Commit 4ea5454203d991ec85264f64f89ca8855fce69b0
[HID: Fix race condition between driver core and ll-driver] introduced
new locking around probe/remove functions that prevents any report/reply
from hardware to reach driver until it returned from probe.As such, the ask-reply way to checking picoLCD firmware version during
probe is bound to timeout and let probe fail.Drop the check to let driver successfully probe again (until locking issues
are resolved allowing to reinstate the check).Signed-off-by: Bruno Prémont
Signed-off-by: Jiri Kosina
05 Sep, 2012
3 commits
-
Signed-off-by: Bruno Prémont
Signed-off-by: Jiri Kosina -
Implement support for picoLCD's CIR header using RC_CORE for decoding
the IR event stream.Signed-off-by: Bruno Prémont
Signed-off-by: Jiri Kosina -
Driver code expects to get access to struct picolcd_data from hiddev
and is not prepared to find a NULL pointer there. Most prominent
candidate to trip on it is picolcd_fb_deferred_io().
Delay removing struct picolcd_data from hiddev until all sub-devices
have been unregistered.Signed-off-by: Bruno Prémont
Signed-off-by: Jiri Kosina
15 Aug, 2012
3 commits
-
Stop earlier attempting to submit new reports/URBs (though locking and
usbhid still prevents to bail out early enough to not produce multiple
hid-picolcd 0003:04D8:C002.0003: usb_submit_urb(out) failed: -19
messages in kernel log.Strengthen framebuffer removal to be less racy.
Signed-off-by: Bruno Prémont
Signed-off-by: Jiri Kosina -
Signed-off-by: Bruno Prémont
Signed-off-by: Jiri Kosina -
In order to make code maintenance easier, split the vairous
functions into individial files (this removes a bunch of #ifdefs).Signed-off-by: Bruno Prémont
Signed-off-by: Jiri Kosina