1
0
Fork 0
alistair23-linux/drivers/staging/greybus
Alex Elder 57248face3 greybus: renumber operation result values
Define a new operation status GB_OP_MALFUNCTION, which will be used
to represent that something unexpected happened while handling an
operation.  This is intended as an indication similar to a BUG()
call--whatever went wrong should *never* happen and because it's
unexpected we need to treat it as a fatal error.

Define another new operation status GB_OP_UNKNOWN_ERROR, which
will represent the case where an operation ended in error, but
the error was not recognized to be properly represented by one
of the other status values.

Renumber the operation status values, defining those that are
produced by core operations code ahead of those that are more
likely to come from operation handlers.  Represent the values in
hexadecimal to emphasize that they must be represented with 8 bits.
The Use 0xff for GB_OP_MALFUNCTION instead of GB_OP_TIMEOUT; the
latter is special, but a malfunction is in a class by itself.

Reorder the cases in gb_operation_status_map() to match their
numeric order.

Map GB_OP_UNKNOWN_ERROR to -EIO in gb_operation_status_map().  Map
GB_OP_MALFUNCTION to -EILSEQ in gb_operation_status_map(), since
that value is used to represent an implementation error.

Signed-off-by: Alex Elder <elder@linaro.org>
Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
2014-12-01 20:40:35 -08:00
..
.gitignore greybus: gitignore: few more additions 2014-11-14 13:14:37 -08:00
Android.mk greybus: build: Add -fno-pic for 32bit arm as well 2014-10-30 15:33:38 -07:00
LICENSE greybus: Initial commit 2014-08-11 15:29:23 +08:00
Makefile greybus: usb-gb: import a "buildable" version of the usb-gb.c driver 2014-12-01 20:38:58 -08:00
README greybus: update README with info on how to build and contact me. 2014-08-11 15:44:51 +08:00
ap.c greybus: ap: function_id is already set by svc_msg_alloc() 2014-11-19 10:38:50 -08:00
battery-gb.c greybus: battery-gb: convert to use gb_operation_sync 2014-11-24 12:56:51 -08:00
connection.c greybus: cancel operation on timeout 2014-11-21 19:36:42 -08:00
connection.h greybus: Random spell fixes 2014-11-21 12:25:57 -08:00
core.c greybus: Random spell fixes 2014-11-21 12:25:57 -08:00
debugfs.c greybus: nullify dangling pointers 2014-11-14 13:32:27 -08:00
devices greybus: devices: endpoint description of device 2014-09-13 17:31:27 -07:00
es1-ap-usb.c greybus: ignore a null cookie when canceling buffer 2014-11-25 15:06:43 -08:00
es1_ap_desc.c greybus: es1 endpoint descriptor: minor fixes to get the config right 2014-09-13 16:15:07 -07:00
gpio-gb.c greybus: gpio-gb: convert to use gb_operation_sync 2014-11-24 12:56:51 -08:00
greybus.h greybus: have greybus allocate its own buffers 2014-11-21 12:23:34 -08:00
greybus_id.h greybus: greybus_id.h: checkpatch cleanup 2014-10-06 20:37:08 -07:00
greybus_manifest.h greybus: greybus_manifest.h: update with full list of protocols 2014-11-17 15:19:14 -08:00
i2c-gb.c greybus: i2c-gb: convert to use gb_operation_sync 2014-11-24 12:56:51 -08:00
interface.c greybus: skeleton for future uevents. 2014-11-15 12:12:16 -08:00
interface.h greybus: interface: move gb_module_interface_init() to interface.c 2014-11-14 13:49:04 -08:00
kernel_ver.h greybus: vibrator-gb: fixes based on Marti's review comments. 2014-11-17 16:55:54 -08:00
manifest.c greybus: Random spell fixes 2014-11-21 12:25:57 -08:00
manifest.h greybus: fix module setup 2014-10-03 19:00:10 -07:00
module.c greybus: Random spell fixes 2014-11-21 12:25:57 -08:00
module.h greybus: interface: move gb_module_interface_init() to interface.c 2014-11-14 13:49:04 -08:00
operation.c greybus: renumber operation result values 2014-12-01 20:40:35 -08:00
operation.h greybus: renumber operation result values 2014-12-01 20:40:35 -08:00
protocol.c greybus: usb-gb: import a "buildable" version of the usb-gb.c driver 2014-12-01 20:38:58 -08:00
protocol.h greybus: usb-gb: import a "buildable" version of the usb-gb.c driver 2014-12-01 20:38:58 -08:00
pwm-gb.c greybus: pwm-gb: convert to use gb_operation_sync 2014-11-24 12:56:51 -08:00
sdio-gb.c greybus: Pass '*ptr' to sizeof() wherever possible 2014-11-19 10:38:50 -08:00
svc_msg.h greybus: update AP id service message 2014-10-22 18:46:21 +08:00
sysfs.c greybus: sysfs: generalize gb_module_attr() to capture more cases 2014-11-14 13:17:55 -08:00
uart-gb.c greybus: uart-gb: clean up send_line_coding 2014-11-25 10:49:08 -08:00
usb-gb.c greybus: usb-gb: import a "buildable" version of the usb-gb.c driver 2014-12-01 20:38:58 -08:00
vibrator-gb.c greybus: vibrator-gb: convert to use gb_operation_sync 2014-11-24 12:56:51 -08:00

README

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>