diff options
author | Johan Hovold <johan@hovoldconsulting.com> | 2016-01-19 12:51:16 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@google.com> | 2016-01-19 12:17:13 -0800 |
commit | 50dfb87865790bf8ef86a1c6898cde4e0df212fd (patch) | |
tree | dcc58670085cc25125e5cd1c8479fd2440afd8f5 /drivers/staging/greybus/connection.h | |
parent | 84427943d2da5f55d5cc83d83ba2a75c2079d1dd (diff) | |
download | linux-stable-50dfb87865790bf8ef86a1c6898cde4e0df212fd.tar.gz linux-stable-50dfb87865790bf8ef86a1c6898cde4e0df212fd.tar.bz2 linux-stable-50dfb87865790bf8ef86a1c6898cde4e0df212fd.zip |
greybus: connection: move legacy-protocol handling to legacy driver
Move legacy protocol and connection handling to the legacy driver.
Rename the former global functions using a common legacy_ prefix.
Note that all legacy protocols suffer from a connection initialisation
race in that the protocol-specific initialisation, which includes
allocation of protocol-specific state containers, can not happen until
*after* the connection has been enabled. This is a major flaw in the
original design that we can now finally address by converting the legacy
protocol drivers into proper bundle (class) drivers.
Reviewed-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Johan Hovold <johan@hovoldconsulting.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Diffstat (limited to 'drivers/staging/greybus/connection.h')
-rw-r--r-- | drivers/staging/greybus/connection.h | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/staging/greybus/connection.h b/drivers/staging/greybus/connection.h index 8813f54eab92..33deeb64dd29 100644 --- a/drivers/staging/greybus/connection.h +++ b/drivers/staging/greybus/connection.h @@ -78,9 +78,6 @@ static inline int gb_connection_enable_tx(struct gb_connection *connection) void gb_connection_disable_rx(struct gb_connection *connection); void gb_connection_disable(struct gb_connection *connection); -int gb_connection_legacy_init(struct gb_connection *connection); -void gb_connection_legacy_exit(struct gb_connection *connection); - void greybus_data_rcvd(struct gb_host_device *hd, u16 cport_id, u8 *data, size_t length); |