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

Commit 61a5ccc8 authored by Krzysztof Hałasa's avatar Krzysztof Hałasa
Browse files

IXP42x: add NPE support for IXP425 rev. A0 processors.



Signed-off-by: default avatarKrzysztof Hałasa <khc@pm.waw.pl>
parent 8a4fe824
Loading
Loading
Loading
Loading
+0 −9
Original line number Diff line number Diff line
@@ -386,15 +386,6 @@ static int npe_reset(struct npe *npe)
	/* reset the NPE */
	ixp4xx_write_feature_bits(val &
				  ~(IXP4XX_FEATURE_RESET_NPEA << npe->id));
	for (i = 0; i < MAX_RETRIES; i++) {
		if (!(ixp4xx_read_feature_bits() &
		      (IXP4XX_FEATURE_RESET_NPEA << npe->id)))
			break;	/* reset completed */
		udelay(1);
	}
	if (i == MAX_RETRIES)
		return -ETIMEDOUT;

	/* deassert reset */
	ixp4xx_write_feature_bits(val |
				  (IXP4XX_FEATURE_RESET_NPEA << npe->id));