Re: [PATCH] usb: chipidea: set unique names to requested irqs

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Oct 19, 2015 at 07:00:26PM +0300, Vladimir Zapolskiy wrote:
> This change allows to get a driver instance of usb controller, which
> registers an irq, now the interrupt names are unique:
> 
>     # cat /proc/interrupts | grep ci_
>      72:       0       0       0       0    GIC  72  ci_hdrc.0
>      75:    2096       0       0       0    GIC  75  ci_hdrc.1
> 
> Signed-off-by: Vladimir Zapolskiy <vladimir_zapolskiy@xxxxxxxxxx>
> ---
>  drivers/usb/chipidea/core.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/usb/chipidea/core.c b/drivers/usb/chipidea/core.c
> index 3feebf7..f2d2e5c 100644
> --- a/drivers/usb/chipidea/core.c
> +++ b/drivers/usb/chipidea/core.c
> @@ -917,7 +917,7 @@ static int ci_hdrc_probe(struct platform_device *pdev)
>  
>  	platform_set_drvdata(pdev, ci);
>  	ret = devm_request_irq(dev, ci->irq, ci_irq, IRQF_SHARED,
> -			ci->platdata->name, ci);
> +			       dev_name(dev), ci);
>  	if (ret)
>  		goto stop;
>  
> -- 
> 2.5.0
> 

The current code uses glue layer's device name, what's the problem
for that?

root@imx6qpsabreauto:~# cat /proc/interrupts | grep usb
74:          0       GIC  74  2184200.usb
75:          3       GIC  75  2184000.usb

-- 

Best Regards,
Peter Chen
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux