John Thomson
515ad3ce8a
ipq40xx: ipqess: do not free ipqess_init
If this function is marked as __init, kernel will splat when driver is
(re)bind
echo "c080000.ethernet">/sys/bus/platform/drivers/ipqess-edma/unbind
echo "c080000.ethernet">/sys/bus/platform/drivers/ipqess-edma/bind
Example with additional print messages, functions at boot:
[ 2.039468] ipqess-edma c080000.ethernet: ipqess_axi_probe pre register_netdev
[ 2.039530] ipqess-edma c080000.ethernet: *netdev: c27d2000
[ 2.045609] ipqess-edma c080000.ethernet: &ipqess_init: c0d1e28c
[ 2.051122] ipqess_init
[ 2.057338] netdev: c27d2000
[ 2.059492] ess = netdev_priv: c27d2500
[ 2.062615] ess->pdev: c2138c00
[ 2.066174] ess->pdev->dev: c2138c10
[ 2.069314] ess->pdev->dev.of_node: ef6f6368
[ 2.073120] ess->pdev->dev.of_node: /soc/ethernet@c080000
fails (bind) after unbind:
[ 34.987948] ipqess-edma c080000.ethernet: ipqess_axi_probe pre register_netdev
[ 34.988012] ipqess-edma c080000.ethernet: *netdev: c27d6000
[ 34.994088] ipqess-edma c080000.ethernet: &ipqess_init: c0d1e28c
[ 34.999652] 8<--- cut here ---
[ 35.005802] Unable to handle kernel paging request at virtual address c0d1e28c when execute
[ 35.008676] [c0d1e28c] *pgd=80c1941e(bad)
[ 35.016918] Internal error: Oops: 8000000d [#1] SMP ARM
Signed-off-by: John Thomson <git@johnthomson.fastmail.com.au>
Link: https://github.com/openwrt/openwrt/pull/15831
Signed-off-by: Robert Marko <robimarko@gmail.com>
2024-06-30 11:07:02 +02:00
..
2024-06-05 09:34:06 +02:00
2024-06-17 12:58:41 +02:00
2024-03-29 09:58:45 +01:00
2024-06-23 16:15:28 +02:00
2024-04-28 17:50:37 +02:00
2024-06-23 21:04:20 +02:00
2024-06-24 05:48:44 +02:00
2024-06-14 14:54:16 +02:00
2024-06-23 16:33:41 +02:00
2024-04-27 12:14:00 +02:00
2024-06-27 17:59:31 +02:00
2024-05-29 17:56:28 +02:00
2024-06-15 22:44:06 +02:00
2024-06-28 20:55:11 +01:00
2024-06-22 16:29:39 +02:00
2024-06-30 11:07:02 +02:00
2024-06-27 17:11:40 +02:00
2024-05-25 09:17:19 +02:00
2024-06-17 12:57:06 +02:00
2024-06-20 09:56:50 +02:00
2024-06-24 09:46:19 +02:00
2024-06-15 22:44:06 +02:00
2024-05-28 22:10:53 +02:00
2024-06-17 12:57:06 +02:00
2024-06-16 14:02:19 +02:00
2024-06-24 09:46:19 +02:00
2024-04-25 14:33:22 +02:00
2024-02-07 14:48:41 +01:00
2024-02-13 19:05:48 +01:00
2024-04-22 11:27:05 +02:00
2024-06-21 20:27:53 +02:00
2024-06-25 12:52:44 +02:00
2024-06-25 20:42:54 +01:00
2024-05-10 16:03:51 +02:00
2024-06-16 21:59:11 +02:00
2024-04-30 11:02:48 +02:00
2024-06-23 16:33:41 +02:00
2024-06-17 12:57:06 +02:00
2024-06-15 22:44:06 +02:00
2024-06-22 22:06:06 +02:00
2024-06-15 22:44:06 +02:00
2024-05-01 10:26:41 +02:00
2024-02-08 23:04:55 +01:00