drm/xe: Default auto_link_downgrade status to false
authorAradhya Bhatia <aradhya.bhatia@intel.com>
Fri, 16 May 2025 12:43:55 +0000 (12:43 +0000)
committerMatt Roper <matthew.d.roper@intel.com>
Mon, 19 May 2025 16:33:52 +0000 (09:33 -0700)
commita7f87deac2295d11865048bcb9c2de369b52ed93
treeed131d70dfd874e915b50efcace050dcad084da5
parent17486cf3df5320752cc67ee8bcb2379d1b9de76c
drm/xe: Default auto_link_downgrade status to false

xe_pcode_read() can return back successfully without updating the
variable 'val'. This can cause an arbitrary value to show up in the
sysfs file.

Allow the auto_link_downgrade_status to default to 0 to avoid any
arbitrary value from coming up.

Fixes: 0e414bf7ad01 ("drm/xe: Expose PCIe link downgrade attributes")
Reviewed-by: Tejas Upadhyay <tejas.upadhyay@intel.com>
Signed-off-by: Aradhya Bhatia <aradhya.bhatia@intel.com>
Link: https://lore.kernel.org/r/20250516124355.4872-1-aradhya.bhatia@intel.com
Signed-off-by: Matt Roper <matthew.d.roper@intel.com>
drivers/gpu/drm/xe/xe_device_sysfs.c