[U-Boot] [PATCH 4/7] ahci: move link bring-up handling to separate function

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


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

> From: Rob Herring <rob.herring at calxeda.com>
> 
> 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 <rob.herring at calxeda.com>
[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: <http://lists.denx.de/pipermail/u-boot/attachments/20130524/809943d8/attachment.pgp>


More information about the U-Boot mailing list