Commit b50b9d3d authored by Jiri Kosina's avatar Jiri Kosina

Merge branch 'for-4.15/sony' into for-linus

- SHANWAN PS3 rumble fix from Bastien Nocera
Signed-off-by: default avatarJiri Kosina <jkosina@suse.cz>
parents ea3bbd0a 492ca83c
...@@ -1439,11 +1439,17 @@ static int sixaxis_set_operational_usb(struct hid_device *hdev) ...@@ -1439,11 +1439,17 @@ static int sixaxis_set_operational_usb(struct hid_device *hdev)
goto out; goto out;
} }
/*
* But the USB interrupt would cause SHANWAN controllers to
* start rumbling non-stop.
*/
if (strcmp(hdev->name, "SHANWAN PS3 GamePad")) {
ret = hid_hw_output_report(hdev, buf, 1); ret = hid_hw_output_report(hdev, buf, 1);
if (ret < 0) { if (ret < 0) {
hid_info(hdev, "can't set operational mode: step 3, ignoring\n"); hid_info(hdev, "can't set operational mode: step 3, ignoring\n");
ret = 0; ret = 0;
} }
}
out: out:
kfree(buf); kfree(buf);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment