mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 03:01:39 -04:00
IB/hfi1: fix pstateinfo from returning improperly byteswapped value
Byteswap link_width_downgrade_*_active values before sending on the wire. In addition properly define the Port State Info structure. Reviewed-by: Dennis Dalessandro <[email protected]> Reviewed-by: Christian Gomez <[email protected]> Signed-off-by: Rimmer, Todd <[email protected]> Signed-off-by: Ira Weiny <[email protected]> Acked-by: Mike Marciniszyn <[email protected]> Signed-off-by: Doug Ledford <[email protected]>
This commit is contained in:
parent
447e9a4d27
commit
aadfc3b204
2 changed files with 4 additions and 4 deletions
|
|
@ -294,8 +294,8 @@ struct opa_port_states {
|
|||
|
||||
struct opa_port_state_info {
|
||||
struct opa_port_states port_states;
|
||||
u16 link_width_downgrade_tx_active;
|
||||
u16 link_width_downgrade_rx_active;
|
||||
__be16 link_width_downgrade_tx_active;
|
||||
__be16 link_width_downgrade_rx_active;
|
||||
};
|
||||
|
||||
struct opa_port_info {
|
||||
|
|
|
|||
Loading…
Reference in a new issue