[U-Boot] [PATCH 5/7] ahci: handle COMINIT received during spin-up

Tom Rini
2013-05-24T13:47:47Z

On Tue, May 21, 2013 at 05:44:34PM -0500, Rob Herring wrote:

> From: Rob Herring <rob.herring@calxeda.com>
>
> Some Intel SSDs can send a COMINIT after the initial COMRESET. This causes
> the link to go down and we need to re-initialize the link.
>
> Signed-off-by: Rob Herring <rob.herring@calxeda.com>
[snip]
> + tmp = readl(port_mmio + PORT_SCR_STAT) & 0xf;
> + if (tmp == 0x1)
> + break;
> j++;
> }
> +
> + tmp = readl(port_mmio + PORT_SCR_STAT) & 0xf;
> + if (tmp == 0x1) {
> + debug("SATA link %d down (COMINIT received), retrying...\n", i);
> + i--;
> + continue;
> + }

0xf and 0x1 are already defined to some MASK and command name I would
hope, if not please define. Thanks!

--
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20130524/48b372d3/attachment.pgp>