Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

usb: chipidea: ci_hdrc_imx: use "wakeup" suffix for wakeup interrupt name

Currently the wakeup and controller interrupt name are same. It's not
easy to find the correct one in /proc/interrupt at the first glance.
Rename the wakeup interrupt name for better distinction.

Signed-off-by: Xu Yang <xu.yang_2@nxp.com>
Reviewed-by: Frank Li <Frank.Li@nxp.com>
Acked-by: Peter Chen <peter.chen@kernel.org>
Link: https://patch.msgid.link/20260112110408.3263954-1-xu.yang_2@nxp.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Xu Yang and committed by
Greg Kroah-Hartman
2e9762f4 ec06c803

+8 -1
+8 -1
drivers/usb/chipidea/ci_hdrc_imx.c
··· 385 385 const struct ci_hdrc_imx_platform_flag *imx_platform_flag; 386 386 struct device_node *np = pdev->dev.of_node; 387 387 struct device *dev = &pdev->dev; 388 + const char *irq_name; 388 389 389 390 imx_platform_flag = of_device_get_match_data(&pdev->dev); 390 391 ··· 526 525 527 526 data->wakeup_irq = platform_get_irq_optional(pdev, 1); 528 527 if (data->wakeup_irq > 0) { 528 + irq_name = devm_kasprintf(dev, GFP_KERNEL, "%s:wakeup", pdata.name); 529 + if (!irq_name) { 530 + dev_err_probe(dev, -ENOMEM, "failed to create irq_name\n"); 531 + goto err_clk; 532 + } 533 + 529 534 ret = devm_request_threaded_irq(dev, data->wakeup_irq, 530 535 NULL, ci_wakeup_irq_handler, 531 536 IRQF_ONESHOT | IRQF_NO_AUTOEN, 532 - pdata.name, data); 537 + irq_name, data); 533 538 if (ret) 534 539 goto err_clk; 535 540 }