On Saturday 03 February 2007 18:50, Larry Finger wrote:
> If you are having trouble with communications after a suspend/resume cycle,
> please try the patch
> below. The patch was made against wireless-2.6, but should apply to any
> 2.6.18 or later kernel. I
> cannot test this one as my video driver refuses to suspend.
I think this is redundant. We clear (=0xFFFF) txctl2 on resume, too, because
we call init_board, which calls the function to init the structures.
> Thanks,
>
> Larry
>
> =====================
>
> Index: wireless-2.6/drivers/net/wireless/bcm43xx/bcm43xx_main.c
> ===================================================================
> --- wireless-2.6.orig/drivers/net/wireless/bcm43xx/bcm43xx_main.c
> +++ wireless-2.6/drivers/net/wireless/bcm43xx/bcm43xx_main.c
> @@ -4295,6 +4295,7 @@ static int bcm43xx_resume(struct pci_dev
> {
> struct net_device *net_dev = pci_get_drvdata(pdev);
> struct bcm43xx_private *bcm = bcm43xx_priv(net_dev);
> + struct bcm43xx_phyinfo *phy = bcm43xx_current_phy(bcm);
> int err = 0;
>
> dprintk(KERN_INFO PFX "Resuming...\n");
> @@ -4314,6 +4315,7 @@ static int bcm43xx_resume(struct pci_dev
> printk(KERN_ERR PFX "Resume failed!\n");
> return err;
> }
> + phy->lo_control->txctl2 = 0xFFFF; /* force initial lo calibration */
> netif_device_attach(net_dev);
>
> dprintk(KERN_INFO PFX "Device resumed.\n");
>
> ===========
>
>
> _______________________________________________
> Bcm43xx-dev mailing list
> [email protected]
> https://lists.berlios.de/mailman/listinfo/bcm43xx-dev
>
>
--
Greetings Michael.
_______________________________________________
Bcm43xx-dev mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/bcm43xx-dev