Search Linux Wireless

Re: [ath5k-devel] [PATCH] ath5k: disable ASPM

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, 2010-05-28 at 13:09 +0300, Jussi Kivilinna wrote:
> +static void		__ath5k_disable_aspm(struct pci_dev *pdev, u16 state);
> +static void		ath5k_disable_aspm(struct pci_dev *pdev, u16 state);

Forward declarations should not be needed unless the functions are
called before their implementations, which is not the case here.

> @@ -424,6 +427,47 @@ module_exit(exit_ath5k_pci);
>  * PCI Initialization *
>  \********************/
>  
> +#ifdef CONFIG_PCIEASPM
> +static void __ath5k_disable_aspm(struct pci_dev *pdev, u16 state)
> +{
> +	pci_disable_link_state(pdev, state);
> +}
> +#else
> +static void __ath5k_disable_aspm(struct pci_dev *pdev, u16 state)
> +{

It looks like a replacement for pci_disable_link_state() if
CONFIG_PCIEASPM is disabled.  I guess it should be in the PCI code, not
in ath5k.  At least the PCI developers should have a look at the
replacement code.

-- 
Regards,
Pavel Roskin
--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux