greybus: control: Warn if non-control cport/bundles have control protocol/classes
authorViresh Kumar <viresh.kumar@linaro.org>
Mon, 22 Jun 2015 11:12:30 +0000 (16:42 +0530)
committerGreg Kroah-Hartman <gregkh@google.com>
Wed, 24 Jun 2015 06:17:25 +0000 (23:17 -0700)
commit730a2f6d1066e7771d5b85b8e9ec5ed09b153d01
treef6dbe003e07d56b7a7a701d057a0382f9064740a
parentf18327e8ebf4738140e9b33a2de99bb8e526a269
greybus: control: Warn if non-control cport/bundles have control protocol/classes

It is possible that (by mistake) the manifest contains non-control
cports with their protocol set as control-protocol or non-control bundle
with their class set as control-class.

Catch such cases, WARN for them and finally ignore them.

Also WARN if the control cport doesn't have its protocol as
control-protocol and control bundle doesn't have its class as
control-class.

Reviewed-by: Alex Elder <elder@linaro.org>
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
drivers/staging/greybus/manifest.c