Skip to content

Commit 8dc7d30

Browse files
bhaktipriyaFelipe Balbi
authored andcommitted
usb: dwc2: Remove deprecated create_singlethread_workqueue
alloc_ordered_workqueue replaces the deprecated create_singlethread_workqueue. There are multiple work items on the work queue, which require ordering. Hence, an ordered workqueue has been used. The workqueue "wq_otg" is not being used on a memory reclaim path. Hence, WQ_MEM_RECLAIM has not been set. Acked-by: John Youn <[email protected]> Signed-off-by: Bhaktipriya Shridhar <[email protected]> Signed-off-by: Felipe Balbi <[email protected]>
1 parent f510b5a commit 8dc7d30

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/usb/dwc2/hcd.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5040,7 +5040,7 @@ int dwc2_hcd_init(struct dwc2_hsotg *hsotg, int irq)
50405040

50415041
/* Create new workqueue and init work */
50425042
retval = -ENOMEM;
5043-
hsotg->wq_otg = create_singlethread_workqueue("dwc2");
5043+
hsotg->wq_otg = alloc_ordered_workqueue("dwc2", 0);
50445044
if (!hsotg->wq_otg) {
50455045
dev_err(hsotg->dev, "Failed to create workqueue\n");
50465046
goto error2;

0 commit comments

Comments
 (0)