netcp->msg_enable = value;
 }
 
+static struct gbe_intf *keystone_get_intf_data(struct netcp_intf *netcp)
+{
+       struct gbe_intf *gbe_intf;
+
+       gbe_intf = netcp_module_get_intf_data(&gbe_module, netcp);
+       if (!gbe_intf)
+               gbe_intf = netcp_module_get_intf_data(&xgbe_module, netcp);
+
+       return gbe_intf;
+}
+
 static void keystone_get_stat_strings(struct net_device *ndev,
                                      uint32_t stringset, uint8_t *data)
 {
        struct gbe_priv *gbe_dev;
        int i;
 
-       gbe_intf = netcp_module_get_intf_data(&gbe_module, netcp);
+       gbe_intf = keystone_get_intf_data(netcp);
        if (!gbe_intf)
                return;
        gbe_dev = gbe_intf->gbe_dev;
        struct gbe_intf *gbe_intf;
        struct gbe_priv *gbe_dev;
 
-       gbe_intf = netcp_module_get_intf_data(&gbe_module, netcp);
+       gbe_intf = keystone_get_intf_data(netcp);
        if (!gbe_intf)
                return -EINVAL;
        gbe_dev = gbe_intf->gbe_dev;
        struct gbe_intf *gbe_intf;
        struct gbe_priv *gbe_dev;
 
-       gbe_intf = netcp_module_get_intf_data(&gbe_module, netcp);
+       gbe_intf = keystone_get_intf_data(netcp);
        if (!gbe_intf)
                return;
 
        if (!phy)
                return -EINVAL;
 
-       gbe_intf = netcp_module_get_intf_data(&gbe_module, netcp);
+       gbe_intf = keystone_get_intf_data(netcp);
        if (!gbe_intf)
                return -EINVAL;
 
        if (!phy)
                return -EINVAL;
 
-       gbe_intf = netcp_module_get_intf_data(&gbe_module, netcp);
+       gbe_intf = keystone_get_intf_data(netcp);
        if (!gbe_intf)
                return -EINVAL;