Thread (6 messages) 6 messages, 3 authors, 2014-08-25

Re: [PATCH v8 2/3] ahci_xgene: Skip the PHY and clock initialization if already configured by the firmware.

From: Sergei Shtylyov <hidden>
Date: 2014-08-23 18:43:57
Also in: linux-arm-kernel, linux-ide, linux-scsi

Hello.

On 08/23/2014 10:37 PM, Suman Tripathi wrote:
This patch implements the feature to skip the PHY and clock
initialization if it is already configured by the firmware.
Signed-off-by: Loc Ho <redacted>
Signed-off-by: Suman Tripathi <redacted>
---
  drivers/ata/ahci_xgene.c | 16 ++++++++++++++++
  1 file changed, 16 insertions(+)
quoted hunk ↗ jump to hunk
diff --git a/drivers/ata/ahci_xgene.c b/drivers/ata/ahci_xgene.c
index f416495..fd9c137 100644
--- a/drivers/ata/ahci_xgene.c
+++ b/drivers/ata/ahci_xgene.c
@@ -145,6 +145,15 @@ static unsigned int xgene_ahci_qc_issue(struct ata_queued_cmd *qc)
  	return rc;
  }

+static bool xgene_ahci_is_memram_inited(struct xgene_ahci_context *ctx)
+{
+	void __iomem *diagcsr = ctx->csr_diag;
+
+	return (readl(diagcsr + CFG_MEM_RAM_SHUTDOWN) == 0 &&
+	        readl(diagcsr + BLOCK_MEM_RDY) == 0xFFFFFFFF) ?
+		true : false;
    Just return the result of &&, that should be enough.

WBR, Sergei
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help