mirror of
git://nv-tegra.nvidia.com/linux-nv-oot.git
synced 2025-12-22 17:25:35 +03:00
During system shutdown, a kernel crash could occur because the r8126 driver's tally counter update routine (`rtl8126_dump_tally_counter`) was still accessing PCIe address space after the device was already stopped or powered down. To prevent this, introduce a new driver flag `R8126_FLAG_SHUTDOWN` that is set in `rtl8126_shutdown()`. This flag is checked now before accessing tally counters, ensuring no further crash during shutdown. Bug 5620576 Change-Id: I2bb74fc52e712198bfe15b109a2136dc8a2affcd Signed-off-by: Revanth Kumar Uppala <ruppala@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3482325 Reviewed-by: Ashutosh Jha <ajha@nvidia.com> GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com> Reviewed-by: Ninad Malwade <nmalwade@nvidia.com> Tested-by: Ninad Malwade <nmalwade@nvidia.com> Reviewed-by: Shobek Attupurath <sattupurath@nvidia.com>