Skip to contentSkip to conversation

drivers: net: xgene: Fix the ACPI support for RGMII/SGMII0/XFI ethernet interfaces of APM X-Gene SoC.

PATCH In review Suman Tripathi 1 participant 3 messages Jun 24, 2015 – Jul 1, 2015

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

cover drivers: net: xgene: Fix the ACPI support for RGMII/SGMII0/XFI ethernet interfaces of APM X-Gene SoC.

v1 change:
* Fix the compilation error.
* Drop other patches as it got accepted.

---

Suman Tripathi (1):
drivers: net: xgene: Fix the compilation error "error: implicit
declaration of function 'acpi_evaluate_integer'" in APM X-Gene ethernet driver.

 drivers/net/ethernet/apm/xgene/xgene_enet_main.c | 2 ++
 1 file changed, 2 insertions(+)

--
1.8.2.1

#1 lore raw

PATCH 1/1 drivers: net: xgene: Fix the compilation error "error: implicit declaration of function 'acpi_evaluate_integer'" in APM X-Gene ethernet driver.

This patch guards the acpi_evaluate_interger function as it fails the build for NON_ACPI CONFIG.

---
 drivers/net/ethernet/apm/xgene/xgene_enet_main.c | 2 ++
 1 file changed, 2 insertions(+)
drivers/net/ethernet/apm/xgene/xgene_enet_main.c +2 -0
index 4e83d4c..70b9ef6 100644
@@ -871,6 +871,7 @@ static const struct net_device_ops xgene_ndev_ops = {
 	.ndo_set_mac_address = xgene_enet_set_mac_address,
 };
 
+#ifdef CONFIG_ACPI
 static int xgene_get_port_id_acpi(struct device *dev,
 				  struct xgene_enet_pdata *pdata)
 {
@@ -886,6 +887,7 @@ static int xgene_get_port_id_acpi(struct device *dev,
 
 	return 0;
 }
+#endif
 
 static int xgene_get_port_id_dt(struct device *dev, struct xgene_enet_pdata *pdata)
 {

--
1.8.2.1

#2 lore raw

Re: [PATCH net-next v1 1/1] drivers: net: xgene: Fix the compilation error "error: implicit declaration of function 'acpi_evaluate_integer'" in APM X-Gene ethernet driver.

Hi ,

Any comments on this patch .

Quoted 33 lines · Suman Tripathi

This patch guards the acpi_evaluate_interger function as it fails the build for NON_ACPI CONFIG.

---
 drivers/net/ethernet/apm/xgene/xgene_enet_main.c | 2 ++
 1 file changed, 2 insertions(+)
drivers/net/ethernet/apm/xgene/xgene_enet_main.c +2 -1
index 4e83d4c..70b9ef6 100644
@@ -871,6 +871,7 @@ static const struct net_device_ops xgene_ndev_ops = {
        .ndo_set_mac_address = xgene_enet_set_mac_address,
 };
 
+#ifdef CONFIG_ACPI
 static int xgene_get_port_id_acpi(struct device *dev,
                                  struct xgene_enet_pdata *pdata)
 {
@@ -886,6 +887,7 @@ static int xgene_get_port_id_acpi(struct device *dev,
 
        return 0;
 }
+#endif
 
 static int xgene_get_port_id_dt(struct device *dev, struct xgene_enet_pdata *pdata)
 {
--

1.8.2.1

Signature · 3 lines
Thanks,
with regards,
Suman Tripathi