[PATCHv2 1/2] ttusbir: NOIO during resume

Oliver Neukum
2022-05-12T13:41:55Z

During resume we must assume tat devices are
not ready for block IO. Use GFP_NOIO.

v2: Resending due to typo in CC

Signed-off-by: Oliver Neukum <oneukum@suse.com>
---
drivers/media/rc/ttusbir.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/media/rc/ttusbir.c b/drivers/media/rc/ttusbir.c
index 629787d53ee1..a8009dc958be 100644
--- a/drivers/media/rc/ttusbir.c
+++ b/drivers/media/rc/ttusbir.c
@@ -402,7 +402,7 @@ static int ttusbir_resume(struct usb_interface *intf)
led_classdev_resume(&tt->led);

for (i = 0; i < NUM_URBS; i++) {
- rc = usb_submit_urb(tt->urb[i], GFP_KERNEL);
+ rc = usb_submit_urb(tt->urb[i], GFP_NOIO);
if (rc) {
dev_warn(tt->dev, "failed to submit urb: %d\n", rc);
break;
--
2.35.3