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

> From: Rob Herring <rob.herr...@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.herr...@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

Attachment: signature.asc
Description: Digital signature

_______________________________________________
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot

Reply via email to