Re: [RFC][PATCH] LAN9211 and LAN9221 NFS mounting and overrun fix on omap LDP

Russell King - ARM Linux <[email protected]>
Newsgroups gmane.linux.ports.arm.general
Message-ID <[email protected]>
Umm, I think you want to send this to Dustin McIntire rather than
Nicolas (if Dustin's email address still works):

/*
 * smc911x.c
 * This is a driver for SMSC's LAN911{5,6,7,8} single-chip Ethernet devices.
 *
 * Copyright (C) 2005 Sensoria Corp
 *         Derived from the unified SMC91x driver by Nicolas Pitre
 *         and the smsc911x.c reference driver by SMSC
...
 * History:
 *        04/16/05      Dustin McIntire          Initial version
 */
static const char version[] =
         "smc911x.c: v1.0 04-16-2005 by Dustin McIntire <[email protected]>\n";

Added to CC.


On Wed, Mar 25, 2009 at 12:38:36PM -0400, Subramani Venkatesh wrote:
> Hi,
> I need your comment on the patch I generated on 2.6.27 Linux ARM for omap LDP.
> With this patch we are able to mount the NFS even with heavy traffic
> like ping -f option, without which NFS retrying and hangs.
> I am not sure whether this problem is fixed with the new the kernel, I
> need your comments whether we can intergrate with the kernel or not.
> 
> >From 9bd50055785492f52877fc719ec5ad02dd183a99 Mon Sep 17 00:00:00 2001
> From: Subramani Venkatesh <[email protected]>
> Date: Wed, 25 Mar 2009 12:23:45 -0400
> Subject: [PATCH] LAN9211 NFS bootup fix
>  This patch fixs the problem of Mounting NFS file system, when there
> is too much traffic on the Network.
>  We still face the Overrun issues, but we still have NFS working.
> 
> NFS mounting issue is found on Omap LDP target boards.
> 
> Signed-off-by: Subramani Venkatesh <[email protected]>
> ---
>  drivers/net/smc911x.c |    6 ++++++
>  1 files changed, 6 insertions(+), 0 deletions(-)
> 
> diff --git a/drivers/net/smc911x.c b/drivers/net/smc911x.c
> index 7aa8c49..f3343ae 100644
> --- a/drivers/net/smc911x.c
> +++ b/drivers/net/smc911x.c
> @@ -1111,6 +1111,12 @@ static irqreturn_t smc911x_interrupt(int irq,
> void *dev_id)
>                                 smc911x_rcv(dev);
>                         }
>                         SMC_ACK_INT(lp, INT_STS_RSFL_);
> +                       if (rx_overrun) {
> +                               DBG(SMC_DEBUG_RX, "%s: RX Enable\n", dev->name);
> +                               SMC_GET_MAC_CR(lp, cr);
> +                               SMC_SET_MAC_CR(lp, cr|MAC_CR_RXEN_);
> +                       }
> +
>                 }
>                 /* Handle transmit FIFO available */
>                 if (status & INT_STS_TDFA_) {
> --
> 1.5.4.3
> 
> Regards,
> Subbu
> 
> -------------------------------------------------------------------
> List admin: http://lists.arm.linux.org.uk/mailman/listinfo/linux-arm
> FAQ:        http://www.arm.linux.org.uk/mailinglists/faq.php
> Etiquette:  http://www.arm.linux.org.uk/mailinglists/etiquette.php

-------------------------------------------------------------------
List admin: http://lists.arm.linux.org.uk/mailman/listinfo/linux-arm
FAQ:        http://www.arm.linux.org.uk/mailinglists/faq.php
Etiquette:  http://www.arm.linux.org.uk/mailinglists/etiquette.php
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.