Subject: Re: [PATCH 1/1] drivers: net : cpsw: Use netdev_name while requesting irq

From: Mugunthan V N <[email-masked]>
Date: Mon, 9 Dec 2013 14:59:05 +0530

On Saturday 07 December 2013 02:16 AM, David Miller wrote:
> From: Mugunthan V N <[email-masked]>
> Date: Fri, 6 Dec 2013 12:28:27 +0530
>
>> From: George Cherian <[email-masked]>
>>
>> Use netdev_name while requesting irq so that eth* name is shown
>> in /proc/interrupts. Previously it was showing device name as (null)
>> for cpsw interrupts. For using netdev_name register_netdev and then
>> call devm_request_irq.
>>
>> Signed-off-by: George Cherian <[email-masked]>
>> Signed-off-by: Mugunthan V N <[email-masked]>
> Why is it showing "(null)" as the name, is dev_name() not working
> properly for this device?
>
> The only change you are making is passing netdev_name() instead
> of dev_name().  dev_name() giving NULL doesn't make much sense
> to me.
priv->dev is a network device which is registered to network stack after
request interrupt, so dev name is null, with this patch request
interrupt is moved below after registering the network device with the
network

Initial driver was using DT node name for the interrupts, but with the
devm changes by Daniel Mack in commit 50a5fb068 it was changed to ndev
name which introduced this issue.

Regards
Mugunthan V N