mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
isci: fix COMSAS negation timout workaround for WD SAS drives
The following patch is a fix for the WD workaround COMSAS negation timeout change. This patch disables the OOB SM when the OOB is placed in reset, which allows the updated COMSAS negation timeout value to take effect. Cc: Dan Thompson <[email protected]> Reported-by: Dan Thompson <[email protected]> Signed-off-by: Dave Maurer <[email protected]> Signed-off-by: Dan Williams <[email protected]>
This commit is contained in:
parent
6d70a74ffd
commit
a900375605
1 changed files with 2 additions and 0 deletions
|
|
@ -1205,6 +1205,7 @@ static void scu_link_layer_start_oob(struct isci_phy *iphy)
|
|||
/** Reset OOB sequence - start */
|
||||
val = readl(&ll->phy_configuration);
|
||||
val &= ~(SCU_SAS_PCFG_GEN_BIT(OOB_RESET) |
|
||||
SCU_SAS_PCFG_GEN_BIT(OOB_ENABLE) |
|
||||
SCU_SAS_PCFG_GEN_BIT(HARD_RESET));
|
||||
writel(val, &ll->phy_configuration);
|
||||
readl(&ll->phy_configuration); /* flush */
|
||||
|
|
@ -1236,6 +1237,7 @@ static void scu_link_layer_tx_hard_reset(
|
|||
* to the starting state. */
|
||||
phy_configuration_value =
|
||||
readl(&iphy->link_layer_registers->phy_configuration);
|
||||
phy_configuration_value &= ~(SCU_SAS_PCFG_GEN_BIT(OOB_ENABLE));
|
||||
phy_configuration_value |=
|
||||
(SCU_SAS_PCFG_GEN_BIT(HARD_RESET) |
|
||||
SCU_SAS_PCFG_GEN_BIT(OOB_RESET));
|
||||
|
|
|
|||
Loading…
Reference in a new issue