From: Tom Rini Date: Fri, 24 May 2013 09:47:47 -0400 Subject: [U-Boot] [PATCH 5/7] ahci: handle COMINIT received during spin-up In-Reply-To: <1369176276-1895-5-git-send-email-robherring2@gmail.com> References: <1369176276-1895-1-git-send-email-robherring2@gmail.com> <1369176276-1895-5-git-send-email-robherring2@gmail.com> Message-ID: <20130524134747.GJ17119@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Tue, May 21, 2013 at 05:44:34PM -0500, Rob Herring wrote: > From: Rob Herring > > 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 [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: