Robert Marko
399d109347
net: phy: micrel: always set shared->phydev for LAN8814
...
Currently, during the LAN8814 PTP probe shared->phydev is only set if PTP
clock gets actually set, otherwise the function will return before setting
it.
This is an issue as shared->phydev is unconditionally being used when IRQ
is being handled, especially in lan8814_gpio_process_cap and since it was
not set it will cause a NULL pointer exception and crash the kernel.
So, simply always set shared->phydev to avoid the NULL pointer exception.
Fixes: b3f1a08fcf0d ("net: phy: micrel: Add support for PTP_PF_EXTTS for lan8814")
Signed-off-by: Robert Marko <robert.marko@sartura.hr>
Tested-by: Horatiu Vultur <horatiu.vultur@microchip.com>
Link: https://patch.msgid.link/20251021132034.983936-1-robert.marko@sartura.hr
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2025-10-23 07:11:48 -07:00
..
2025-09-09 18:24:17 -07:00
2025-08-28 16:43:21 -07:00
2025-09-04 13:33:00 -07:00
2025-09-22 16:05:15 -07:00
2025-10-17 16:34:37 -07:00
2025-03-20 08:45:08 +01:00
2025-01-14 15:01:32 -08:00
2025-07-01 19:35:43 -07:00
2025-01-14 15:01:32 -08:00
2025-08-26 17:09:27 -07:00
2025-03-10 15:12:17 +01:00
2025-09-22 16:38:59 -07:00
2025-01-14 15:01:32 -08:00
2025-01-14 15:01:32 -08:00
2025-05-21 15:56:09 -07:00
2025-03-05 19:13:53 -08:00
2025-01-14 15:01:32 -08:00
2025-01-14 15:01:32 -08:00
2025-09-22 11:36:30 -07:00
2025-10-13 17:36:20 -07:00
2025-01-14 15:01:32 -08:00
2025-01-14 15:01:32 -08:00
2025-01-14 15:01:32 -08:00
2025-01-14 15:01:32 -08:00
2025-02-10 17:49:19 -08:00
2025-06-13 18:09:47 -07:00
2025-09-23 16:58:42 -07:00
2025-06-12 18:23:54 -07:00
2025-01-14 15:01:32 -08:00
2025-05-12 18:43:35 -07:00
2025-06-12 18:23:54 -07:00
2025-01-14 15:01:32 -08:00
2025-09-09 18:11:55 -07:00
2025-05-21 15:56:09 -07:00
2025-06-12 18:23:54 -07:00
2025-09-23 16:56:27 -07:00
2025-01-14 15:01:32 -08:00
2025-09-17 15:24:01 -07:00
2025-09-22 16:05:15 -07:00
2025-05-15 12:32:09 +02:00
2025-09-22 16:05:15 -07:00
2025-09-22 16:05:15 -07:00
2025-09-17 15:24:01 -07:00
2025-08-12 12:32:58 +02:00
2025-06-12 18:12:37 -07:00
2025-01-14 15:01:32 -08:00
2025-10-23 07:11:48 -07:00
2025-04-15 20:20:58 -07:00
2025-01-16 17:27:56 -08:00
2025-01-16 17:27:56 -08:00
2025-01-14 15:01:32 -08:00
2025-07-10 18:08:16 -07:00
2025-08-14 17:32:01 -07:00
2025-08-25 17:07:01 -07:00
2025-03-21 18:05:30 +01:00
2025-01-14 15:01:32 -08:00
2025-01-14 15:01:32 -08:00
2025-09-16 12:15:49 +02:00
2025-08-12 12:01:07 +02:00
2025-01-14 15:01:32 -08:00
2025-05-21 15:56:09 -07:00
2025-09-30 13:17:31 +02:00
2025-09-30 13:17:31 +02:00
2025-04-22 18:25:18 -07:00
2025-03-19 09:57:37 +00:00
2025-06-16 14:59:30 -07:00
2025-06-12 18:23:08 -07:00
2025-09-30 13:17:31 +02:00
2025-07-09 19:32:30 -07:00
2025-09-18 15:43:26 -07:00
2025-06-16 14:59:29 -07:00
2025-03-17 19:07:54 +01:00
2025-09-22 16:05:15 -07:00
2025-01-14 15:01:32 -08:00
2025-03-30 17:03:26 -07:00
2025-01-14 15:01:32 -08:00
2025-09-22 16:05:15 -07:00
2025-09-30 13:22:49 +02:00
2025-09-22 16:05:14 -07:00
2025-07-30 18:14:11 -07:00
2025-01-14 15:01:32 -08:00
2025-05-21 15:56:09 -07:00
2025-01-14 15:01:32 -08:00
2025-01-14 15:01:32 -08:00
2025-03-20 08:45:08 +01:00