Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit cab758ef authored by Clive Stubbings's avatar Clive Stubbings Committed by David S. Miller
Browse files

fs_enet: fix freescale FCC ethernet dp buffer alignment



The RIPTR and TIPTR  (receive/transmit internal temporary data pointer),
used by microcode as a temporary buffer for data, must be 32-byte aligned
according to the RM for MPC8247.

Tested on mgcoge.

Signed-off-by: default avatarClive Stubbings <clive.stubbings@xentech.co.uk>
Signed-off-by: default avatarHolger Brunck <holger.brunck@keymile.com>
cc: Pantelis Antoniou <pantelis.antoniou@gmail.com>
cc: Vitaly Bordug <vbordug@ru.mvista.com>
cc: netdev@vger.kernel.org
Signed-off-by: default avatarDavid S. Miller <davem@conan.davemloft.net>
parent 82362ccb
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -105,7 +105,7 @@ static int do_pd_setup(struct fs_enet_private *fep)
		goto out_ep;

	fep->fcc.mem = (void __iomem *)cpm2_immr;
	fpi->dpram_offset = cpm_dpalloc(128, 8);
	fpi->dpram_offset = cpm_dpalloc(128, 32);
	if (IS_ERR_VALUE(fpi->dpram_offset)) {
		ret = fpi->dpram_offset;
		goto out_fcccp;