Thread (6 messages) 6 messages, 2 authors, 2014-08-19

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

From: Tejun Heo <tj@kernel.org>
Date: 2014-08-19 15:14:21
Also in: linux-arm-kernel, linux-ide, linux-scsi

On Tue, Aug 19, 2014 at 12:01:50PM +0530, 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>
...
+static int xgene_ahci_is_memram_inited(struct xgene_ahci_context *ctx)
+{
+	void __iomem *diagcsr = ctx->csr_diag;
+
+	if (readl(diagcsr + CFG_MEM_RAM_SHUTDOWN) == 0 &&
+	    readl(diagcsr + BLOCK_MEM_RDY) == 0xFFFFFFFF)
+		return 1;
+	return 0;
+}
Please make it return bool.

Thanks.

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