IB/hfi1: Remove pstate from hfi1_pportdata
Do not track physical state separately from host_link_state. Deduce physical state from host_link_state when required. Change cache_physical_state to log_physical_state to make sure host_link_state reflects hardwares physical state properly. Reviewed-by: Mike Marciniszyn <mike.marciniszyn@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>
This commit is contained in:

کامیت شده توسط
Doug Ledford

والد
ec0d8b8a63
کامیت
d392a673e7
@@ -1181,7 +1181,7 @@ static int physical_transition_allowed(int old, int new)
|
||||
static int port_states_transition_allowed(struct hfi1_pportdata *ppd,
|
||||
u32 logical_new, u32 physical_new)
|
||||
{
|
||||
u32 physical_old = driver_physical_state(ppd);
|
||||
u32 physical_old = driver_pstate(ppd);
|
||||
u32 logical_old = driver_lstate(ppd);
|
||||
int ret, logical_allowed, physical_allowed;
|
||||
|
||||
|
مرجع در شماره جدید
Block a user