Hello. On 19-12-2011 6:35, r66093@xxxxxxxxxxxxx wrote:
From: Jerry Huang<Chang-Ming.Huang@xxxxxxxxxxxxx>
Configure the FSL SATA controller to the enterprise mode
Signed-off-by: Yutaka Ando<r46913@xxxxxxxxxxxxx> Signed-off-by: Jerry Huang<Chang-Ming.Huang@xxxxxxxxxxxxx> CC: Jeff Garzik<jgarzik@xxxxxxxxx> --- drivers/ata/sata_fsl.c | 11 +++++++++++ 1 files changed, 11 insertions(+), 0 deletions(-)
diff --git a/drivers/ata/sata_fsl.c b/drivers/ata/sata_fsl.c index 78ae7b6..48c9978 100644 --- a/drivers/ata/sata_fsl.c +++ b/drivers/ata/sata_fsl.c
[...]
@@ -1223,6 +1224,10 @@ static int sata_fsl_init_controller(struct ata_host *host) * part of the port_start() callback */ + /* sata controller to operate in enterprise mode */ + temp = ioread32(hcr_base + HCONTROL); + iowrite32((temp & ~HCONTROL_LEGACY), hcr_base + HCONTROL);
Parens around & not needed.
@@ -1421,6 +1426,12 @@ static int sata_fsl_resume(struct platform_device *op) /* Recovery the CHBA register in host controller cmd register set */ iowrite32(pp->cmdslot_paddr& 0xffffffff, hcr_base + CHBA); + iowrite32((ioread32(hcr_base + HCONTROL) + | HCONTROL_ONLINE_PHY_RST + | HCONTROL_SNOOP_ENABLE + | HCONTROL_PMP_ATTACHED), + hcr_base+HCONTROL);
Spaces around +, please. MBR, Sergei -- To unsubscribe from this list: send the line "unsubscribe linux-ide" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html