diff options
| author | Corinna Vinschen <[email protected]> | 2024-04-23 10:24:54 +0000 |
|---|---|---|
| committer | Tony Nguyen <[email protected]> | 2024-05-08 16:25:44 +0000 |
| commit | 86167183a17e03ec77198897975e9fdfbd53cb0b (patch) | |
| tree | 01ffc4ae66b570fa6b72819aa3c565880b53af39 /drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c | |
| parent | ice: remove correct filters during eswitch release (diff) | |
| download | kernel-86167183a17e03ec77198897975e9fdfbd53cb0b.tar.gz kernel-86167183a17e03ec77198897975e9fdfbd53cb0b.zip | |
igc: fix a log entry using uninitialized netdev
During successful probe, igc logs this:
[ 5.133667] igc 0000:01:00.0 (unnamed net_device) (uninitialized): PHC added
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
The reason is that igc_ptp_init() is called very early, even before
register_netdev() has been called. So the netdev_info() call works
on a partially uninitialized netdev.
Fix this by calling igc_ptp_init() after register_netdev(), right
after the media autosense check, just as in igb. Add a comment,
just as in igb.
Now the log message is fine:
[ 5.200987] igc 0000:01:00.0 eth0: PHC added
Signed-off-by: Corinna Vinschen <[email protected]>
Reviewed-by: Hariprasad Kelam <[email protected]>
Acked-by: Vinicius Costa Gomes <[email protected]>
Tested-by: Naama Meir <[email protected]>
Signed-off-by: Tony Nguyen <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c')
0 files changed, 0 insertions, 0 deletions
