]> git.baikalelectronics.ru Git - kernel.git/commit
drivers: net : cpsw: pass proper device name while requesting irq
authorMugunthan V N <mugunthanvnm@ti.com>
Wed, 18 Dec 2013 16:03:50 +0000 (21:33 +0530)
committerDavid S. Miller <davem@davemloft.net>
Sun, 22 Dec 2013 23:22:15 +0000 (18:22 -0500)
commitb0d5b8ca11d67e3ff7d9e0d1d848a1ebcd9a413b
tree3ae6901aa9517b421f4a76c12ce9194334b563f7
parent4c9dafa7ecb79f7d1a3419fdf4ccf93ea2b0dc55
drivers: net : cpsw: pass proper device name while requesting irq

During checking the interrupts with "cat /proc/interrupts", it is showing
device name as (null), this change was done with commit id e70b1ce9b where
request_irq is changed to devm_request_irq also changing the irq name from
platform device name to net device name, but the net device is not
registered at this point with the network frame work, so devm_request_irq
is called with device name as NULL, by which it is showed as "(null)" in
"cat /proc/interrupts". So this patch changes back irq name to platform
device name itself in devm_request_irq so that the device name shows as
below.

Previous to this patch
root@am335x-evm:~# cat /proc/interrupts
           CPU0
 28:       2265      INTC  12  edma
 30:         80      INTC  14  edma_error
 56:          0      INTC  40  (null)
 57:       1794      INTC  41  (null)
 58:          7      INTC  42  (null)
 59:          0      INTC  43  (null)

With this patch
root@am335x-evm:~# cat /proc/interrupts
           CPU0
 28:        213      INTC  12  edma
 30:          9      INTC  14  edma_error
 56:          0      INTC  40  4a100000.ethernet
 57:      16097      INTC  41  4a100000.ethernet
 58:      11964      INTC  42  4a100000.ethernet
 59:          0      INTC  43  4a100000.ethernet

Signed-off-by: Mugunthan V N <mugunthanvnm@ti.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/ti/cpsw.c