Geert Uytterhoeven
0c81ea5a8e
net: ravb: Fix registered interrupt names
As interrupts are now requested from ravb_probe(), before calling
register_netdev(), ndev->name still contains the template "eth%d",
leading to funny names in /proc/interrupts. E.g. on R-Car E3:
89: 0 0 GICv2 93 Level eth%d:ch22:multi
90: 0 3 GICv2 95 Level eth%d:ch24:emac
91: 0 23484 GICv2 71 Level eth%d:ch0:rx_be
92: 0 0 GICv2 72 Level eth%d:ch1:rx_nc
93: 0 13735 GICv2 89 Level eth%d:ch18:tx_be
94: 0 0 GICv2 90 Level eth%d:ch19:tx_nc
Worse, on platforms with multiple RAVB instances (e.g. R-Car V4H), all
interrupts have similar names.
Fix this by using the device name instead, like is done in several other
drivers:
89: 0 0 GICv2 93 Level e6800000.ethernet:ch22:multi
90: 0 1 GICv2 95 Level e6800000.ethernet:ch24:emac
91: 0 28578 GICv2 71 Level e6800000.ethernet:ch0:rx_be
92: 0 0 GICv2 72 Level e6800000.ethernet:ch1:rx_nc
93: 0 14044 GICv2 89 Level e6800000.ethernet:ch18:tx_be
94: 0 0 GICv2 90 Level e6800000.ethernet:ch19:tx_nc
Rename the local variable dev_name, as it shadows the dev_name()
function, and pre-initialize it, to simplify the code.
Fixes: 32f012b8c0 ("net: ravb: Move getting/requesting IRQs in the probe() method")
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Reviewed-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
Reviewed-by: Sergey Shtylyov <s.shtylyov@omp.ru>
Reviewed-by: Claudiu Beznea <claudiu.beznea.uj@bp.renesas.com>
Tested-by: Claudiu Beznea <claudiu.beznea.uj@bp.renesas.com> # on RZ/G3S
Link: https://lore.kernel.org/r/cde67b68adf115b3cf0b44c32334ae00b2fbb321.1713944647.git.geert+renesas@glider.be
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2024-04-25 08:30:54 -07:00
..
2024-04-08 10:55:01 +02:00
2024-03-21 13:21:31 -07:00
2024-04-08 16:44:14 +02:00
2024-03-21 13:21:31 -07:00
2024-04-13 10:42:28 +09:00
2024-03-07 20:36:32 -08:00
2024-03-12 17:37:54 +02:00
2024-04-05 17:21:16 -07:00
2024-04-02 07:43:24 -06:00
2024-04-24 16:26:22 -04:00
2024-03-21 13:21:31 -07:00
2024-03-28 22:40:56 +00:00
2024-03-07 11:53:30 -07:00
2024-03-07 21:52:03 +00:00
2024-04-17 13:53:18 +02:00
2024-03-19 11:57:26 -07:00
2024-03-23 14:42:45 -07:00
2024-03-21 13:21:31 -07:00
2024-03-22 10:41:13 -07:00
2024-03-22 10:41:13 -07:00
2024-04-04 10:40:30 +02:00
2024-04-11 16:49:11 -07:00
2024-03-15 11:58:32 -07:00
2024-03-07 20:37:04 +00:00
2024-03-15 12:25:13 -07:00
2024-03-25 21:11:58 +01:00
2024-03-25 19:40:23 -07:00
2024-03-11 18:14:06 -07:00
2024-04-06 09:36:46 +09:00
2024-04-09 16:29:48 +02:00
2024-03-21 13:21:31 -07:00
2024-04-12 21:30:58 +02:00
2024-04-12 11:11:59 +10:00
2024-03-21 13:21:31 -07:00
2024-03-14 09:56:15 -07:00
2024-02-25 19:05:45 +01:00
2024-04-11 16:23:56 -07:00
2024-03-14 18:03:09 -07:00
2024-03-05 20:01:14 -08:00
2024-02-27 11:26:45 +00:00
2024-04-04 01:07:57 +02:00
2024-03-05 21:25:18 +01:00
2024-03-21 13:21:31 -07:00
2024-03-18 15:34:03 -07:00
2024-03-21 12:44:10 -07:00
2024-03-06 14:03:31 +00:00
2024-04-12 12:21:46 +02:00
2024-03-07 20:32:47 +00:00
2024-04-09 11:11:18 +02:00
2024-04-09 17:01:01 -07:00
2024-03-14 18:03:09 -07:00
2024-03-15 17:53:48 -07:00
2024-03-13 12:23:36 -07:00
2024-03-07 20:38:15 +00:00
2024-04-08 21:49:27 -06:00
2024-03-26 09:52:59 +01:00
2024-03-21 13:21:31 -07:00
2024-03-13 10:59:28 -07:00
2024-03-21 12:44:10 -07:00
2024-03-23 08:43:21 -07:00
2024-04-09 16:17:37 +02:00
2024-03-07 20:32:38 +00:00
2024-03-27 13:17:15 +01:00
2024-04-25 08:30:54 -07:00
2024-04-22 14:19:58 -07:00
2024-03-15 11:58:32 -07:00
2024-04-04 08:47:56 -07:00
2024-03-07 20:21:53 +00:00
2024-03-27 17:05:07 -05:00
2024-03-11 10:39:24 +05:30
2024-03-08 10:00:07 +01:00
2024-03-07 21:50:06 +00:00
2024-03-29 11:57:12 -05:00
2024-03-10 09:07:00 +01:00
2024-03-26 14:09:18 -07:00
2024-03-21 12:35:20 -07:00
2024-03-31 11:23:51 -07:00
2024-04-18 07:15:33 -07:00
2024-03-13 11:33:10 -07:00
2024-03-14 10:19:48 -07:00
2024-03-13 20:45:54 +01:00
2024-03-07 21:51:39 +00:00
2024-03-12 17:44:08 -07:00
2024-04-15 17:28:13 +02:00
2024-03-26 21:48:21 +01:00
2024-03-25 19:28:27 +00:00
2024-03-21 10:37:39 -07:00
2024-03-21 17:16:46 -07:00
2024-04-17 12:55:49 +01:00
2024-03-15 12:47:21 -07:00
2024-04-05 21:48:32 -04:00
2024-03-21 15:18:18 -07:00
2024-03-07 20:21:39 +00:00
2024-03-21 14:50:39 -07:00
2024-03-15 12:22:52 -07:00
2024-04-03 11:04:58 +01:00
2024-03-25 19:10:01 +01:00
2024-04-05 21:37:54 -04:00
2024-03-12 10:35:24 -07:00
2024-04-03 16:32:15 +02:00
2024-03-21 12:35:20 -07:00
2024-03-21 12:44:10 -07:00
2024-04-01 21:43:46 -04:00
2024-04-11 16:23:56 -07:00
2024-03-26 15:02:28 +01:00
2024-03-19 02:45:51 -04:00
2024-03-15 13:21:13 -07:00
2024-04-08 04:11:04 -04:00
2024-03-25 21:34:08 +01:00
2024-04-18 14:47:23 +02:00
2024-04-08 04:11:04 -04:00
2024-03-17 12:06:10 -07:00
2024-03-19 08:48:09 -07:00
2024-03-07 08:48:10 +00:00