IB/hfi1: Add flag for platform config scratch register read
Add flag in pport data structure to determine when platform config was read from scratch registers. Change conditions in parse_platform_config and get_platform_config_field to use the new flag. Reviewed-by: Easwar Hariharan <easwar.hariharan@intel.com> Reviewed-by: Ira Weiny <ira.weiny@intel.com> Signed-off-by: Jakub Byczkowski <jakub.byczkowski@intel.com> Signed-off-by: Dennis Dalessandro <dennis.dalessandro@intel.com> Signed-off-by: Doug Ledford <dledford@redhat.com>
这个提交包含在:
@@ -677,6 +677,9 @@ struct hfi1_pportdata {
|
||||
u8 default_atten;
|
||||
u8 max_power_class;
|
||||
|
||||
/* did we read platform config from scratch registers? */
|
||||
bool config_from_scratch;
|
||||
|
||||
/* GUIDs for this interface, in host order, guids[0] is a port guid */
|
||||
u64 guids[HFI1_GUIDS_PER_PORT];
|
||||
|
||||
|
在新工单中引用
屏蔽一个用户