return connection;
}
-void greybus_cport_in(struct greybus_host_device *hd, u16 cport_id,
+/*
+ * Callback from the host driver to let us know that data has been
+ * received on the interface.
+ */
+void greybus_data_rcvd(struct greybus_host_device *hd, u16 cport_id,
u8 *data, size_t length)
{
struct gb_connection *connection;
}
gb_connection_recv(connection, data, length);
}
-EXPORT_SYMBOL_GPL(greybus_cport_in);
+EXPORT_SYMBOL_GPL(greybus_data_rcvd);
/*
* Allocate an available CPort Id for use for the host side of the
struct gb_connection *gb_hd_connection_find(struct greybus_host_device *hd,
u16 cport_id);
-void greybus_cport_in(struct greybus_host_device *hd, u16 cport_id,
+void greybus_data_rcvd(struct greybus_host_device *hd, u16 cport_id,
u8 *data, size_t length);
__printf(2, 3)
void gb_connection_err(struct gb_connection *connection, const char *fmt, ...);
data = &data[1];
/* Pass this data to the greybus core */
- greybus_cport_in(hd, cport_id, data, urb->actual_length - 1);
+ greybus_data_rcvd(hd, cport_id, data, urb->actual_length - 1);
exit:
/* put our urb back in the request pool */