mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-27 06:30:56 +07:00
atl1c: remove code of closing register writable attribution
The Close-action is done by atl1c_reset_pcie, remove it from atl1c_get_permanent_address. Signed-off-by: xiong <xiong@qca.qualcomm.com> Tested-by: Liu David <dwliu@qca.qualcomm.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
87eabe6bf0
commit
e119258009
@ -72,7 +72,6 @@ static int atl1c_get_permanent_address(struct atl1c_hw *hw)
|
|||||||
u32 i;
|
u32 i;
|
||||||
u32 otp_ctrl_data;
|
u32 otp_ctrl_data;
|
||||||
u32 twsi_ctrl_data;
|
u32 twsi_ctrl_data;
|
||||||
u32 ltssm_ctrl_data;
|
|
||||||
u8 eth_addr[ETH_ALEN];
|
u8 eth_addr[ETH_ALEN];
|
||||||
u16 phy_data;
|
u16 phy_data;
|
||||||
bool raise_vol = false;
|
bool raise_vol = false;
|
||||||
@ -108,11 +107,6 @@ static int atl1c_get_permanent_address(struct atl1c_hw *hw)
|
|||||||
udelay(20);
|
udelay(20);
|
||||||
raise_vol = true;
|
raise_vol = true;
|
||||||
}
|
}
|
||||||
/* close open bit of ReadOnly*/
|
|
||||||
AT_READ_REG(hw, REG_LTSSM_ID_CTRL, <ssm_ctrl_data);
|
|
||||||
ltssm_ctrl_data &= ~LTSSM_ID_EN_WRO;
|
|
||||||
AT_WRITE_REG(hw, REG_LTSSM_ID_CTRL, ltssm_ctrl_data);
|
|
||||||
|
|
||||||
|
|
||||||
AT_READ_REG(hw, REG_TWSI_CTRL, &twsi_ctrl_data);
|
AT_READ_REG(hw, REG_TWSI_CTRL, &twsi_ctrl_data);
|
||||||
twsi_ctrl_data |= TWSI_CTRL_SW_LDSTART;
|
twsi_ctrl_data |= TWSI_CTRL_SW_LDSTART;
|
||||||
|
Loading…
Reference in New Issue
Block a user