HC_OFF bit in HControl register is read only bit, which
should not be written.

Signed-off-by: Roy Zang <tie-fei.z...@freescale.com>
---
check mpc8379, mpc8536, P3041, P5020 and T4240.
HC_OFF bit is read only.

 drivers/block/fsl_sata.c |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)

diff --git a/drivers/block/fsl_sata.c b/drivers/block/fsl_sata.c
index fda3389..f647545 100644
--- a/drivers/block/fsl_sata.c
+++ b/drivers/block/fsl_sata.c
@@ -190,7 +190,6 @@ int init_sata(int dev)
        /* To have safe state, force the controller offline */
        val32 = in_le32(&reg->hcontrol);
        val32 &= ~HCONTROL_ONOFF;
-       val32 |= HCONTROL_FORCE_OFFLINE;
        out_le32(&reg->hcontrol, val32);
 
        /* Wait the controller offline */
-- 
1.7.8.1


_______________________________________________
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot

Reply via email to