alistair23-linux/drivers/staging/greybus
Viresh Kumar 55b930cd17 greybus: manifest: Warn if descriptor size > expected size
A descriptor passed to AP can be bigger than what AP expects, if
manifest's minor version is higher with same major number as the AP. As
it can have some extra data in descriptor.

But, if AP and manifest versions are identical, or if the AP's minor
version is greater than the manifest version, we should at least warn
(if not fail).

Doing this would require some changes to record the manifest version
somewhere reachable by identify_descriptor().

For now, just warn if descriptor is bigger than expected.

Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Reviewed-by: Alex Elder <elder@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
2015-04-29 15:55:21 +02:00
..
Documentation greybus: bundle: add state sysfs file 2015-04-17 16:12:49 +02:00
.gitignore greybus: gitignore: few more additions 2014-11-14 13:14:37 -08:00
Android.mk greybus: build: android: Fix script which locates .ko files and moves them into ramdisk 2015-01-27 14:49:04 -08:00
ap.c greybus: bundle: Initialize all bundles on link-up 2015-04-06 11:34:39 +02:00
battery.c greybus: remove unused version-response structs 2015-01-22 11:29:39 +08:00
bundle.c greybus: bundle: add state sysfs file 2015-04-17 16:12:49 +02:00
bundle.h greybus: bundle: add state sysfs file 2015-04-17 16:12:49 +02:00
connection.c greybus: Unregister devices to get them freed 2015-04-05 16:23:22 +02:00
connection.h greybus: connection: replace custom error function with dev_err 2015-03-19 17:28:19 +01:00
core.c greybus: MODULE_LICENSE cleanup 2015-04-17 16:12:49 +02:00
debugfs.c greybus: debugfs: we shouldn't care if debugfs is working or not 2015-03-30 15:01:56 +02:00
devices greybus: devices: endpoint description of device 2014-09-13 17:31:27 -07:00
endo.c greybus: endo: Rename endo's 'type' as 'id' 2015-04-29 15:48:32 +02:00
endo.h greybus: endo: Rename endo's 'type' as 'id' 2015-04-29 15:48:32 +02:00
es1.c greybus: MODULE_LICENSE cleanup 2015-04-17 16:12:49 +02:00
es2.c greybus: MODULE_LICENSE cleanup 2015-04-17 16:12:49 +02:00
gpb.c greybus: MODULE_LICENSE cleanup 2015-04-17 16:12:49 +02:00
gpbridge.h greybus: gpbridge.h: remove BIT() define 2015-04-10 11:20:35 +02:00
gpio.c greybus: Move briged phy structure definitions into gpbridge.h 2015-04-10 11:17:20 +02:00
greybus.h greybus: endo: hook up endos into the device tree 2015-04-09 22:50:09 +02:00
greybus_id.h greybus: bundle: s/class_type/class 2015-04-06 12:47:06 +02:00
greybus_manifest.h greybus: Explicitly mark structures as packed 2015-04-29 15:51:38 +02:00
hid.c greybus: hid: Use payload-size to get report size 2015-04-06 10:53:41 +02:00
i2c.c greybus: Move briged phy structure definitions into gpbridge.h 2015-04-10 11:17:20 +02:00
interface.c greybus: endo: hook up endos into the device tree 2015-04-09 22:50:09 +02:00
interface.h greybus: driver corresponds to a bundle, not interface 2015-04-06 12:07:30 +02:00
kernel_ver.h greybus: kernel_ver.h: add sysfs_create_groups() and sysfs_remove_groups() 2015-04-01 01:36:23 +02:00
LICENSE greybus: Initial commit 2014-08-11 15:29:23 +08:00
loopback.c greybus: loopback: fix 64-bit divisions 2015-04-16 10:26:33 +02:00
Makefile greybus: endo: add endo structures and logic 2015-04-09 22:50:09 +02:00
manifest.c greybus: manifest: Warn if descriptor size > expected size 2015-04-29 15:55:21 +02:00
manifest.h greybus: manifest: Use interface descriptor instead of module descriptor to get information 2015-04-06 12:05:58 +02:00
module.c greybus: endo: hook up endos into the device tree 2015-04-09 22:50:09 +02:00
module.h greybus: endo: hook up endos into the device tree 2015-04-09 22:50:09 +02:00
operation.c greybus: drop host-driver buffer headroom 2015-04-07 17:31:05 +02:00
operation.h greybus: operation: add explicit padding to message header 2015-04-07 17:31:05 +02:00
protocol.c greybus: clean up some small messes 2015-03-27 11:16:35 +01:00
protocol.h greybus: operation: refactor response handling 2015-03-30 15:20:34 +02:00
pwm.c greybus: Move briged phy structure definitions into gpbridge.h 2015-04-10 11:17:20 +02:00
README greybus: update README with info on how to build and contact me. 2014-08-11 15:44:51 +08:00
sdio.c greybus: Remove "-gb" suffix from .c files 2015-01-22 11:27:20 +08:00
spi.c greybus: connection: replace custom error function with dev_err 2015-03-19 17:28:19 +01:00
svc_msg.h greybus: Explicitly mark structures as packed 2015-04-29 15:51:38 +02:00
uart.c greybus: uart: remove packed-attribute from line-coding struct 2015-03-17 22:34:44 +01:00
usb.c greybus: usb: silence compiler warning 2015-03-19 17:27:08 +01:00
vibrator.c greybus: Greybus: Place module_init/exit() right after respective routines 2015-03-24 21:00:24 +01:00

Greybus kernel code

To build against the running kernel (odds are you don't want this):
	make

To build against a specific kernel source tree (odds are you want this):
	KERNELDIR=/home/some/random/place make

Any questions / concerns about this code base, please email:
	Greg Kroah-Hartman <greg@kroah.com>