So that the UVC device can remain runtime suspended when the system goes
into a sleep state, let the input device do the same.

Signed-off-by: Tomeu Vizoso <tomeu.viz...@collabora.com>
---
 drivers/media/usb/uvc/uvc_status.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/media/usb/uvc/uvc_status.c 
b/drivers/media/usb/uvc/uvc_status.c
index f552ab9..78647c0 100644
--- a/drivers/media/usb/uvc/uvc_status.c
+++ b/drivers/media/usb/uvc/uvc_status.c
@@ -39,6 +39,7 @@ static int uvc_input_init(struct uvc_device *dev)
        input->phys = dev->input_phys;
        usb_to_input_id(dev->udev, &input->id);
        input->dev.parent = &dev->intf->dev;
+       input->stay_runtime_suspended = true;
 
        __set_bit(EV_KEY, input->evbit);
        __set_bit(KEY_CAMERA, input->keybit);
-- 
2.3.4

--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to