* [U-Boot] [PATCH] net: Fix problem with 405EZ ethernet interrupt
@ 2009-09-10 7:11 Stefan Roese
2009-09-10 23:03 ` Ben Warren
0 siblings, 1 reply; 4+ messages in thread
From: Stefan Roese @ 2009-09-10 7:11 UTC (permalink / raw)
To: u-boot
From: James Clough <james@rtetc.com>
On 405EZ the RX-/TX-interrupts are coalesced into one IRQ bit in the
UIC. We need to acknowledge the RX-/TX-interrupts in the
SDR0_ICINTSTAT reg as well.
This problem was introduced with commit
d1631fe1 [ppc4xx: Consolidate PPC4xx UIC defines]
Signed-off-by: James Clough <james@rtetc.com>
Signed-off-by: Stefan Roese <sr@denx.de>
---
drivers/net/4xx_enet.c | 9 +++++++++
1 files changed, 9 insertions(+), 0 deletions(-)
diff --git a/drivers/net/4xx_enet.c b/drivers/net/4xx_enet.c
index 329eef0..9d438b5 100644
--- a/drivers/net/4xx_enet.c
+++ b/drivers/net/4xx_enet.c
@@ -1717,6 +1717,15 @@ int enetInt (struct eth_device *dev)
rc = 0;
}
}
+#if defined(CONFIG_405EZ)
+ /*
+ * On 405EZ the RX-/TX-interrupts are coalesced into
+ * one IRQ bit in the UIC. We need to acknowledge the
+ * RX-/TX-interrupts in the SDR0_ICINTSTAT reg as well.
+ */
+ mtsdr(SDR0_ICINTSTAT,
+ SDR_ICRX_STAT | SDR_ICTX0_STAT | SDR_ICTX1_STAT);
+#endif /* defined(CONFIG_405EZ) */
} while (serviced);
return (rc);
--
1.6.4.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [U-Boot] [PATCH] net: Fix problem with 405EZ ethernet interrupt
2009-09-10 7:11 [U-Boot] [PATCH] net: Fix problem with 405EZ ethernet interrupt Stefan Roese
@ 2009-09-10 23:03 ` Ben Warren
2009-10-04 19:09 ` Wolfgang Denk
0 siblings, 1 reply; 4+ messages in thread
From: Ben Warren @ 2009-09-10 23:03 UTC (permalink / raw)
To: u-boot
Stefan Roese wrote:
> From: James Clough <james@rtetc.com>
>
> On 405EZ the RX-/TX-interrupts are coalesced into one IRQ bit in the
> UIC. We need to acknowledge the RX-/TX-interrupts in the
> SDR0_ICINTSTAT reg as well.
>
> This problem was introduced with commit
> d1631fe1 [ppc4xx: Consolidate PPC4xx UIC defines]
>
> Signed-off-by: James Clough <james@rtetc.com>
> Signed-off-by: Stefan Roese <sr@denx.de>
> ---
> drivers/net/4xx_enet.c | 9 +++++++++
> 1 files changed, 9 insertions(+), 0 deletions(-)
>
> diff --git a/drivers/net/4xx_enet.c b/drivers/net/4xx_enet.c
> index 329eef0..9d438b5 100644
> --- a/drivers/net/4xx_enet.c
> +++ b/drivers/net/4xx_enet.c
> @@ -1717,6 +1717,15 @@ int enetInt (struct eth_device *dev)
> rc = 0;
> }
> }
> +#if defined(CONFIG_405EZ)
> + /*
> + * On 405EZ the RX-/TX-interrupts are coalesced into
> + * one IRQ bit in the UIC. We need to acknowledge the
> + * RX-/TX-interrupts in the SDR0_ICINTSTAT reg as well.
> + */
> + mtsdr(SDR0_ICINTSTAT,
> + SDR_ICRX_STAT | SDR_ICTX0_STAT | SDR_ICTX1_STAT);
> +#endif /* defined(CONFIG_405EZ) */
> } while (serviced);
>
> return (rc);
>
Applied to net repo.
thanks,
Ben
^ permalink raw reply [flat|nested] 4+ messages in thread
* [U-Boot] [PATCH] net: Fix problem with 405EZ ethernet interrupt
2009-09-10 23:03 ` Ben Warren
@ 2009-10-04 19:09 ` Wolfgang Denk
2009-10-04 22:08 ` Ben Warren
0 siblings, 1 reply; 4+ messages in thread
From: Wolfgang Denk @ 2009-10-04 19:09 UTC (permalink / raw)
To: u-boot
Dear Ben Warren,
In message <4AA985C3.5060901@gmail.com> you wrote:
>
...
> Applied to net repo.
Do you intend to send a pull request any time soon?
Best regards,
Wolfgang Denk
--
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
Quote from a recent meeting: "We are going to continue having these
meetings everyday until I find out why no work is getting done."
^ permalink raw reply [flat|nested] 4+ messages in thread
* [U-Boot] [PATCH] net: Fix problem with 405EZ ethernet interrupt
2009-10-04 19:09 ` Wolfgang Denk
@ 2009-10-04 22:08 ` Ben Warren
0 siblings, 0 replies; 4+ messages in thread
From: Ben Warren @ 2009-10-04 22:08 UTC (permalink / raw)
To: u-boot
On Sun, Oct 4, 2009 at 12:09 PM, Wolfgang Denk <wd@denx.de> wrote:
> Dear Ben Warren,
>
> In message <4AA985C3.5060901@gmail.com> you wrote:
> >
> ...
> > Applied to net repo.
>
> Do you intend to send a pull request any time soon?
>
> Yes I do. Very soon.
> Best regards,
>
> Wolfgang Denk
>
> regards,
Ben
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2009-10-04 22:08 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-09-10 7:11 [U-Boot] [PATCH] net: Fix problem with 405EZ ethernet interrupt Stefan Roese
2009-09-10 23:03 ` Ben Warren
2009-10-04 19:09 ` Wolfgang Denk
2009-10-04 22:08 ` Ben Warren
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox