return retval;
}
-
-int svc_set_route_send(struct gb_bundle *bundle,
- struct greybus_host_device *hd)
-{
- struct svc_msg *svc_msg;
-
- svc_msg = svc_msg_alloc(SVC_FUNCTION_UNIPRO_NETWORK_MANAGEMENT);
- if (!svc_msg)
- return -ENOMEM;
-
- svc_msg->header.message_type = SVC_MSG_DATA;
- svc_msg->header.payload_length =
- cpu_to_le16(sizeof(struct svc_function_unipro_set_route));
- svc_msg->management.set_route.device_id = bundle->device_id;
-
- return svc_msg_send(svc_msg, hd);
-}
-
static void svc_handshake(struct svc_function_handshake *handshake,
int payload_length, struct greybus_host_device *hd)
{
bundle->device_id = device_id;
- ret = svc_set_route_send(bundle, intf->hd);
- if (ret) {
- dev_err(intf->hd->parent, "failed to set route (%d)\n", ret);
- return ret;
- }
-
ret = gb_bundle_connections_init(bundle);
if (ret) {
dev_err(intf->hd->parent, "interface bundle init error %d\n",
extern struct bus_type greybus_bus_type;
-int svc_set_route_send(struct gb_bundle *bundle,
- struct greybus_host_device *hd);
-
extern struct device_type greybus_endo_type;
extern struct device_type greybus_module_type;
extern struct device_type greybus_interface_type;