summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 9a65b87)
raw | patch | inline | side by side (parent: 9a65b87)
author | Stefan Reinauer <reinauer@chromium.org> | |
Mon, 29 Oct 2012 05:23:50 +0000 (05:23 +0000) | ||
committer | Tom Rini <trini@ti.com> | |
Fri, 2 Nov 2012 22:20:41 +0000 (15:20 -0700) |
- remove unused ssleep macro
- add some useful debugging information
Signed-off-by: Stefan Reinauer <reinauer@chromium.org>
Signed-off-by: Simon Glass <sjg@chromium.org>
- add some useful debugging information
Signed-off-by: Stefan Reinauer <reinauer@chromium.org>
Signed-off-by: Simon Glass <sjg@chromium.org>
drivers/block/ahci.c | patch | blob | history |
diff --git a/drivers/block/ahci.c b/drivers/block/ahci.c
index ad397dcb6a1a3fa92c3efad710a8851dfb286a3d..af31c97533257a572b931b4927b6885f189cdbe7 100644 (file)
--- a/drivers/block/ahci.c
+++ b/drivers/block/ahci.c
#define msleep(a) udelay(a * 1000)
-#define ssleep(a) msleep(a * 1000)
static int waiting_for_cmd_completed(volatile u8 *offset,
int timeout_msec,
tmp = readl(port_mmio + PORT_CMD);
if (tmp & (PORT_CMD_LIST_ON | PORT_CMD_FIS_ON |
PORT_CMD_FIS_RX | PORT_CMD_START)) {
+ debug("Port %d is active. Deactivating.\n", i);
tmp &= ~(PORT_CMD_LIST_ON | PORT_CMD_FIS_ON |
PORT_CMD_FIS_RX | PORT_CMD_START);
writel_with_flush(tmp, port_mmio + PORT_CMD);
msleep(500);
}
+ debug("Spinning up port %d... ", i);
writel(PORT_CMD_SPIN_UP, port_mmio + PORT_CMD);
j = 0;