提交 4f44d8ba 编写于 作者: S Stephen Hemminger 提交者: Jeff Garzik

sky2: disable ASF on all chip types

Need to make sure and disable ASF on all chip types. Otherwise, there may be
random reboots.
Signed-off-by: NStephen Hemminger <shemminger@linux-foundation.org>
Signed-off-by: NJeff Garzik <jeff@garzik.org>
上级 40b01727
......@@ -2542,7 +2542,6 @@ static void sky2_reset(struct sky2_hw *hw)
int i;
/* disable ASF */
if (hw->chip_id <= CHIP_ID_YUKON_EC) {
if (hw->chip_id == CHIP_ID_YUKON_EX) {
status = sky2_read16(hw, HCU_CCSR);
status &= ~(HCU_CCSR_AHB_RST | HCU_CCSR_CPU_RST_MODE |
......@@ -2551,7 +2550,6 @@ static void sky2_reset(struct sky2_hw *hw)
} else
sky2_write8(hw, B28_Y2_ASF_STAT_CMD, Y2_ASF_RESET);
sky2_write16(hw, B0_CTST, Y2_ASF_DISABLE);
}
/* do a SW reset */
sky2_write8(hw, B0_CTST, CS_RST_SET);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册