From: Tom Rini Date: Fri, 24 May 2013 09:44:49 -0400 Subject: [U-Boot] [PATCH 4/7] ahci: move link bring-up handling to separate function In-Reply-To: <1369176276-1895-4-git-send-email-robherring2@gmail.com> References: <1369176276-1895-1-git-send-email-robherring2@gmail.com> <1369176276-1895-4-git-send-email-robherring2@gmail.com> Message-ID: <20130524134449.GF17119@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:33PM -0500, Rob Herring wrote: > From: Rob Herring > > Move the link bring-up handling to a separate weak function in order to > allow platforms to override it. This is needed on highbank platform which > needs special phy handling. > > Signed-off-by: Rob Herring [snip] > +static int __ahci_link_up(struct ahci_probe_ent *probe_ent, u8 port) > +{ > + u32 tmp; > + int j = 0; > + u8 *port_mmio = (u8 *)probe_ent->port[port].port_mmio; > + > + /* Bring up SATA link. /* * Like this */ > +int ahci_link_up(struct ahci_probe_ent *probe_ent, u8 port) > + __attribute__((weak, alias("__ahci_link_up"))); Just use __weak please, thanks. -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 836 bytes Desc: Digital signature URL: