drivers/usb/chipidea/ci_hdrc_imx.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-)
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>
---
Changs in v2:
- check return value
---
drivers/usb/chipidea/ci_hdrc_imx.c | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/drivers/usb/chipidea/ci_hdrc_imx.c b/drivers/usb/chipidea/ci_hdrc_imx.c
index d4ee9e16332f..56d2ba824a0b 100644
--- a/drivers/usb/chipidea/ci_hdrc_imx.c
+++ b/drivers/usb/chipidea/ci_hdrc_imx.c
@@ -385,6 +385,7 @@ static int ci_hdrc_imx_probe(struct platform_device *pdev)
const struct ci_hdrc_imx_platform_flag *imx_platform_flag;
struct device_node *np = pdev->dev.of_node;
struct device *dev = &pdev->dev;
+ const char *irq_name;
imx_platform_flag = of_device_get_match_data(&pdev->dev);
@@ -525,10 +526,16 @@ static int ci_hdrc_imx_probe(struct platform_device *pdev)
data->wakeup_irq = platform_get_irq_optional(pdev, 1);
if (data->wakeup_irq > 0) {
+ irq_name = devm_kasprintf(dev, GFP_KERNEL, "%s:wakeup", pdata.name);
+ if (!irq_name) {
+ dev_err_probe(dev, -ENOMEM, "failed to create irq_name\n");
+ goto err_clk;
+ }
+
ret = devm_request_threaded_irq(dev, data->wakeup_irq,
NULL, ci_wakeup_irq_handler,
IRQF_ONESHOT | IRQF_NO_AUTOEN,
- pdata.name, data);
+ irq_name, data);
if (ret)
goto err_clk;
}
--
2.34.1
On 26-01-12 19:04:08, Xu Yang wrote:
> 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>
Acked-by: Peter Chen <peter.chen@kernel.org>
Peter
>
> ---
> Changs in v2:
> - check return value
> ---
> drivers/usb/chipidea/ci_hdrc_imx.c | 9 ++++++++-
> 1 file changed, 8 insertions(+), 1 deletion(-)
>
> diff --git a/drivers/usb/chipidea/ci_hdrc_imx.c b/drivers/usb/chipidea/ci_hdrc_imx.c
> index d4ee9e16332f..56d2ba824a0b 100644
> --- a/drivers/usb/chipidea/ci_hdrc_imx.c
> +++ b/drivers/usb/chipidea/ci_hdrc_imx.c
> @@ -385,6 +385,7 @@ static int ci_hdrc_imx_probe(struct platform_device *pdev)
> const struct ci_hdrc_imx_platform_flag *imx_platform_flag;
> struct device_node *np = pdev->dev.of_node;
> struct device *dev = &pdev->dev;
> + const char *irq_name;
>
> imx_platform_flag = of_device_get_match_data(&pdev->dev);
>
> @@ -525,10 +526,16 @@ static int ci_hdrc_imx_probe(struct platform_device *pdev)
>
> data->wakeup_irq = platform_get_irq_optional(pdev, 1);
> if (data->wakeup_irq > 0) {
> + irq_name = devm_kasprintf(dev, GFP_KERNEL, "%s:wakeup", pdata.name);
> + if (!irq_name) {
> + dev_err_probe(dev, -ENOMEM, "failed to create irq_name\n");
> + goto err_clk;
> + }
> +
> ret = devm_request_threaded_irq(dev, data->wakeup_irq,
> NULL, ci_wakeup_irq_handler,
> IRQF_ONESHOT | IRQF_NO_AUTOEN,
> - pdata.name, data);
> + irq_name, data);
> if (ret)
> goto err_clk;
> }
> --
> 2.34.1
>
--
Best regards,
Peter
On Mon, Jan 12, 2026 at 07:04:08PM +0800, Xu Yang wrote:
> 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>
>
> ---
> Changs in v2:
> - check return value
> ---
> drivers/usb/chipidea/ci_hdrc_imx.c | 9 ++++++++-
Reviewed-by: Frank Li <Frank.Li@nxp.com>
> 1 file changed, 8 insertions(+), 1 deletion(-)
>
> diff --git a/drivers/usb/chipidea/ci_hdrc_imx.c b/drivers/usb/chipidea/ci_hdrc_imx.c
> index d4ee9e16332f..56d2ba824a0b 100644
> --- a/drivers/usb/chipidea/ci_hdrc_imx.c
> +++ b/drivers/usb/chipidea/ci_hdrc_imx.c
> @@ -385,6 +385,7 @@ static int ci_hdrc_imx_probe(struct platform_device *pdev)
> const struct ci_hdrc_imx_platform_flag *imx_platform_flag;
> struct device_node *np = pdev->dev.of_node;
> struct device *dev = &pdev->dev;
> + const char *irq_name;
>
> imx_platform_flag = of_device_get_match_data(&pdev->dev);
>
> @@ -525,10 +526,16 @@ static int ci_hdrc_imx_probe(struct platform_device *pdev)
>
> data->wakeup_irq = platform_get_irq_optional(pdev, 1);
> if (data->wakeup_irq > 0) {
> + irq_name = devm_kasprintf(dev, GFP_KERNEL, "%s:wakeup", pdata.name);
> + if (!irq_name) {
> + dev_err_probe(dev, -ENOMEM, "failed to create irq_name\n");
> + goto err_clk;
> + }
> +
> ret = devm_request_threaded_irq(dev, data->wakeup_irq,
> NULL, ci_wakeup_irq_handler,
> IRQF_ONESHOT | IRQF_NO_AUTOEN,
> - pdata.name, data);
> + irq_name, data);
> if (ret)
> goto err_clk;
> }
> --
> 2.34.1
>
© 2016 - 2026 Red Hat, Inc.