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

Tom Rini trini at ti.com
Fri May 24 15:47:47 CEST 2013


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

> From: Rob Herring <rob.herring at 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 at 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>


More information about the U-Boot mailing list