diff mbox

drivers: net: phy: mdio-xgene: Add hardware dependency

Message ID 20160908162515.1a69cf67@endymion
State Accepted, archived
Delegated to: David Miller
Headers show

Commit Message

Jean Delvare Sept. 8, 2016, 2:25 p.m. UTC
The mdio-xgene driver is only useful on X-Gene SoC.

Signed-off-by: Jean Delvare <jdelvare@suse.de>
Cc: Iyappan Subramanian <isubramanian@apm.com>
Cc: David S. Miller <davem@davemloft.net>
---
 drivers/net/phy/Kconfig |    1 +
 1 file changed, 1 insertion(+)

Comments

Iyappan Subramanian Sept. 8, 2016, 9:30 p.m. UTC | #1
On Thu, Sep 8, 2016 at 7:25 AM, Jean Delvare <jdelvare@suse.de> wrote:
> The mdio-xgene driver is only useful on X-Gene SoC.
>
> Signed-off-by: Jean Delvare <jdelvare@suse.de>
> Cc: Iyappan Subramanian <isubramanian@apm.com>
> Cc: David S. Miller <davem@davemloft.net>
> ---
>  drivers/net/phy/Kconfig |    1 +
>  1 file changed, 1 insertion(+)
>
> --- linux-4.8-rc5.orig/drivers/net/phy/Kconfig  2016-09-04 23:31:46.000000000 +0200
> +++ linux-4.8-rc5/drivers/net/phy/Kconfig       2016-09-08 15:05:08.815824055 +0200
> @@ -303,6 +303,7 @@ config MDIO_HISI_FEMAC
>
>  config MDIO_XGENE
>         tristate "APM X-Gene SoC MDIO bus controller"
> +       depends on ARCH_XGENE || COMPILE_TEST
>         help
>           This module provides a driver for the MDIO busses found in the
>           APM X-Gene SoC's.
>

Thanks.

Acked-by:  Iyappan Subramanian <isubramanian@apm.com>

> --
> Jean Delvare
> SUSE L3 Support
David Miller Sept. 10, 2016, 2:30 a.m. UTC | #2
From: Jean Delvare <jdelvare@suse.de>
Date: Thu, 8 Sep 2016 16:25:15 +0200

> The mdio-xgene driver is only useful on X-Gene SoC.
> 
> Signed-off-by: Jean Delvare <jdelvare@suse.de>

Applied.
diff mbox

Patch

--- linux-4.8-rc5.orig/drivers/net/phy/Kconfig	2016-09-04 23:31:46.000000000 +0200
+++ linux-4.8-rc5/drivers/net/phy/Kconfig	2016-09-08 15:05:08.815824055 +0200
@@ -303,6 +303,7 @@  config MDIO_HISI_FEMAC
 
 config MDIO_XGENE
 	tristate "APM X-Gene SoC MDIO bus controller"
+	depends on ARCH_XGENE || COMPILE_TEST
 	help
 	  This module provides a driver for the MDIO busses found in the
 	  APM X-Gene SoC's.