lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <524B3AEF.9060109@broadcom.com>
Date:	Tue, 1 Oct 2013 14:13:19 -0700
From:	"Nithin Nayak Sujir" <nsujir@...adcom.com>
To:	"Hauke Mehrtens" <hauke@...ke-m.de>
cc:	davem@...emloft.net, mchan@...adcom.com, netdev@...r.kernel.org
Subject: Re: [PATCH 2/3] ssb: provide phy address for Gigabit Ethernet
 driver



On 09/28/2013 02:15 PM, Hauke Mehrtens wrote:
> Add a function to provide the phy address which should be used to the
> Gigabit Ethernet driver connected to ssb.
>
> Signed-off-by: Hauke Mehrtens <hauke@...ke-m.de>
> ---

Reviewed-by: Nithin Nayak Sujir <nsujir@...adcom.com>


>   include/linux/ssb/ssb_driver_gige.h |   14 ++++++++++++++
>   1 file changed, 14 insertions(+)
>
> diff --git a/include/linux/ssb/ssb_driver_gige.h b/include/linux/ssb/ssb_driver_gige.h
> index 86a12b0..0688472 100644
> --- a/include/linux/ssb/ssb_driver_gige.h
> +++ b/include/linux/ssb/ssb_driver_gige.h
> @@ -108,6 +108,16 @@ static inline int ssb_gige_get_macaddr(struct pci_dev *pdev, u8 *macaddr)
>   	return 0;
>   }
>
> +/* Get the device phy address */
> +static inline int ssb_gige_get_phyaddr(struct pci_dev *pdev)
> +{
> +	struct ssb_gige *dev = pdev_to_ssb_gige(pdev);
> +	if (!dev)
> +		return -ENODEV;
> +
> +	return dev->dev->bus->sprom.et0phyaddr;
> +}
> +
>   extern int ssb_gige_pcibios_plat_dev_init(struct ssb_device *sdev,
>   					  struct pci_dev *pdev);
>   extern int ssb_gige_map_irq(struct ssb_device *sdev,
> @@ -174,6 +184,10 @@ static inline int ssb_gige_get_macaddr(struct pci_dev *pdev, u8 *macaddr)
>   {
>   	return -ENODEV;
>   }
> +static inline int ssb_gige_get_phyaddr(struct pci_dev *pdev)
> +{
> +	return -ENODEV;
> +}
>
>   #endif /* CONFIG_SSB_DRIVER_GIGE */
>   #endif /* LINUX_SSB_DRIVER_GIGE_H_ */
>

--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ