On Sunday 01 July 2007 20:56:01 [EMAIL PROTECTED] wrote:
> These changes allow driver close routine to be called during module unload,
> to clean-up buffers and other software resources, flush queues etc. Also,
> hardware is reset to pristine state. 
> 
> Signed-off-by: Dhananjay Phadke <[EMAIL PROTECTED]>
> Signed-off-by: Milan Bag <[EMAIL PROTECTED]>
> Signed-off-by: Wen Xiong <[EMAIL PROTECTED]>
> 


> +                     msleep(1);
> +                     if (netxen_load_firmware(adapter))
> +                             return;
> +                     netxen_phantom_init(adapter, NETXEN_NIC_PEG_TUNE);
> +             }
> +
> +             /* clear the register for future unloads/loads */
> +             writel(0, NETXEN_CRB_NORMALIZE(adapter, NETXEN_CAM_RAM(0x1fc)));
> +             printk(KERN_INFO "State: 0x%0x\n",
> +                     readl(NETXEN_CRB_NORMALIZE(adapter, CRB_CMDPEG_STATE)));
> +
> +             dma_watchdog_shutdown_request(adapter);
> +             mdelay(100);
> +             i = 100;
> +             while ((dma_watchdog_shutdown_poll_result(adapter) != 1) && i) {
> +                     printk(KERN_INFO "dma_watchdog_shutdown_poll still in 
> progress\n");
> +                     mdelay(100);
> +                     i--;
> +             }

msleep, please.

-- 
Greetings Michael.
-
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to