HID: sony: do not rely on hid_output_raw_report
[firefly-linux-kernel-4.4.55.git] / drivers / hid / hidraw.c
index 2cc484c0017b51e00ad8f0b714c4c3d40600e518..ffa648ce002ec859260ddaf623aee1986e309fc3 100644 (file)
@@ -149,7 +149,8 @@ static ssize_t hidraw_send_report(struct file *file, const char __user *buffer,
                goto out_free;
        }
 
-       if (report_type == HID_OUTPUT_REPORT) {
+       if ((report_type == HID_OUTPUT_REPORT) &&
+           !(dev->quirks & HID_QUIRK_NO_OUTPUT_REPORTS_ON_INTR_EP)) {
                ret = hid_hw_output_report(dev, buf, count);
                /*
                 * compatibility with old implementation of USB-HID and I2C-HID: