OpenCloudOS-Kernel/drivers/staging/greybus
Johan Hovold 82278bfea0 greybus: fix forced disable of offloaded connections
Core disables all connections for bundles whose interface is already
gone in order to avoid unnecessary operation timeouts during driver
disconnect.

This isn't needed for offloaded connections (as the AP can not send
requests over such connections), and in fact must not be done since only
the bundle driver currently knows how to disable I/O on such connections
in a class-specific way (this may eventually be handled by core though).

Also add comment about why connection are disabled early on forced
disconnect.

Testing Done: Tested on EVT2.

Reported-by: Mark Greer <mgreer@animalcreek.com>
Signed-off-by: Johan Hovold <johan@hovoldconsulting.com>
Tested-by: Mark Greer <mgreer@animalcreek.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
2016-06-09 12:12:43 -07:00
..
Documentation greybus: Documentation/sysfs: gbphy0 is an invalid name 2016-05-26 22:33:27 -07:00
scripts greybus: checkpatch.pl: Mark --no-tree as default option 2016-04-02 19:44:30 -07:00
tools greybus: Fix loopback app after rename to gpphy 2016-05-26 22:23:25 -07:00
.gitignore greybus: tools: Add tools directory to greybus repo and add loopback 2015-12-17 18:17:07 -08:00
LICENSE greybus: Initial commit 2014-08-11 15:29:23 +08:00
Makefile greybus: timesync: Add timesync core driver 2016-06-06 20:37:47 -07:00
README greybus: update README with info on how to build and contact me. 2014-08-11 15:44:51 +08:00
arche-apb-ctrl.c greybus: timesync: Add timesync core driver 2016-06-06 20:37:47 -07:00
arche-platform.c greybus: timesync: Add timesync core driver 2016-06-06 20:37:47 -07:00
arche_platform.h greybus: timesync: Add timesync core driver 2016-06-06 20:37:47 -07:00
audio_apbridgea.c greybus: audio_apbridgea: fix two return values 2016-05-20 16:36:43 -07:00
audio_apbridgea.h greybus: audio: Split start and stop APBridgeA requests 2016-03-01 22:44:49 -08:00
audio_codec.c greybus: audio: Ratelimit err messages 2016-06-08 09:29:02 -07:00
audio_codec.h greybus: audio: Remove redundant lock protection & is_connected field 2016-05-04 11:29:06 -07:00
audio_gb.c greybus: audio: Fix sparse warnings 2016-02-02 21:26:32 -08:00
audio_manager.c greybus: audio: gb_manager: Use valid argument while removing ida allocated id. 2016-05-18 16:33:31 -07:00
audio_manager.h greybus: audio_manager: Split device type into i/p & o/p devices 2016-04-05 09:39:22 -04:00
audio_manager_module.c greybus: audio_manager: Split device type into i/p & o/p devices 2016-04-05 09:39:22 -04:00
audio_manager_private.h greybus: audio: Add Audio Manager 2016-01-13 16:12:56 -08:00
audio_manager_sysfs.c greybus: audio_manager: Split device type into i/p & o/p devices 2016-04-05 09:39:22 -04:00
audio_module.c greybus: audio: Report DISCONNECT event after resource cleanup. 2016-06-06 18:41:44 -07:00
audio_topology.c greybus: audio: Report warning in case module is already removed 2016-06-06 18:41:44 -07:00
bootrom.c greybus: bootrom: Implement timeouts to detect Module failures 2016-05-09 08:48:10 +02:00
bootrom.h greybus: firmware: Rename to bootrom protocol 2016-04-04 21:19:06 -07:00
bundle.c greybus: tracing: define bundle traces 2016-06-03 17:03:23 -07:00
bundle.h greybus: define BUNDLE_ID_NONE 2016-06-03 17:03:23 -07:00
camera.c greybus: camera-gb: Implement camera module reference counting as subject. 2016-06-03 08:57:48 -07:00
connection.c greybus: tracing: add timing traces 2016-06-03 17:03:23 -07:00
connection.h greybus: gbphy: Remove protocol specific version handling 2016-05-31 22:02:58 -07:00
control.c greybus: control: Mode-switch is a 'core' operation 2016-06-02 11:15:49 -07:00
control.h greybus: interface: implement generic mode-switch functionality 2016-05-27 12:24:17 -07:00
core.c greybus: fix forced disable of offloaded connections 2016-06-09 12:12:43 -07:00
debugfs.c greybus: core: add device prefix to error messages 2016-02-11 21:44:17 -08:00
devices greybus: devices: endpoint description of device 2014-09-13 17:31:27 -07:00
es2.c greybus: tracing: add timing traces 2016-06-03 17:03:23 -07:00
firmware.h greybus: fw-management: Add firmware-management protocol driver 2016-05-15 00:23:52 +02:00
fw-core.c greybus: fw-core: destroy connections on error 2016-05-20 16:36:43 -07:00
fw-download.c greybus: fw-download: Replace timer with delayed-work 2016-05-09 08:48:10 +02:00
fw-management.c greybus: Add comment about the mode_switch_started flag 2016-06-02 11:16:22 -07:00
gb-camera.h greybus: camera-gb: Extend gb camera module structure 2016-06-03 08:57:48 -07:00
gbphy.c greybus: gbphy: Remove protocol specific version handling 2016-05-31 22:02:58 -07:00
gbphy.h greybus: gbphy: Remove protocol specific version handling 2016-05-31 22:02:58 -07:00
gpio.c greybus: gbphy: Remove protocol specific version handling 2016-05-31 22:02:58 -07:00
greybus.h greybus: timesync: Add timesync core driver 2016-06-06 20:37:47 -07:00
greybus_firmware.h greybus: fw-management: Update header's license 2016-05-16 19:59:50 -07:00
greybus_id.h greybus: fix vendor and product matching 2015-11-21 17:15:35 -08:00
greybus_manifest.h greybus: interface: Extract and store Interface feature byte 2016-05-15 11:39:57 -07:00
greybus_protocols.h greybus: svc: pwrmon: validate svc protocol op status when getting rail names 2016-06-08 10:21:34 -07:00
greybus_trace.h greybus: tracing: drop "greybus" prefix 2016-06-09 12:12:43 -07:00
hd.c greybus: tracing: add timing traces 2016-06-03 17:03:23 -07:00
hd.h greybus: connection: add flush host-device callback 2016-05-27 12:24:17 -07:00
hid.c greybus: convert drivers to use connection->private set/get 2016-03-22 16:47:28 -04:00
i2c.c greybus: gbphy: Remove protocol specific version handling 2016-05-31 22:02:58 -07:00
interface.c greybus: timesync: Bind TimeSync into Greybus 2016-06-06 20:50:08 -07:00
interface.h greybus: timesync: Add timesync core driver 2016-06-06 20:37:47 -07:00
kernel_ver.h greybus: don't key on an enumerated constant 2016-06-08 12:44:48 -07:00
light.c greybus: fix pointless null check 2016-05-27 11:28:16 -07:00
loopback.c greybus: gpbridge: rename 'gpbridge' to 'gbphy' everywhere 2016-05-19 10:09:13 -07:00
manifest.c greybus: interface: Extract and store Interface feature byte 2016-05-15 11:39:57 -07: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: fix tracepoint-related whitespace issues 2016-05-27 12:26:31 -07:00
module.h greybus: core: add module abstraction 2016-04-25 11:08:30 -07:00
operation.c greybus: fix tracepoint-related whitespace issues 2016-05-27 12:26:31 -07:00
operation.h greybus: operation: add helper for creating core operations 2016-05-27 12:21:16 -07:00
power_supply.c greybus: use PTR_ERR_OR_ZERO() 2016-05-27 11:28:16 -07:00
pwm.c greybus: kernel_ver.h: provide pwm_is_enabled() 2016-06-08 09:29:02 -07:00
raw.c greybus: raw: use hexadecimal notation for request types 2016-03-03 10:02:48 -08:00
sdio.c greybus: gbphy: Remove protocol specific version handling 2016-05-31 22:02:58 -07:00
spi.c greybus: gbphy: Remove protocol specific version handling 2016-05-31 22:02:58 -07:00
spilib.c greybus: spi: add inprogress bit to xfer_flags 2016-05-16 20:02:58 -07:00
spilib.h greybus: spi: Restructure spi.c to share it with other bundle drivers 2016-05-14 23:18:32 +02:00
svc.c greybus: svc: pwrmon: validate svc protocol op status when getting rail names 2016-06-08 10:21:34 -07:00
svc.h greybus: svc: add stub connection-quiescing operation 2016-05-27 12:19:29 -07:00
svc_watchdog.c greybus: svc watchdog: Disable watchdog upon entering suspend 2016-04-15 14:42:53 -07:00
timesync.c greybus: timesync: Add debugfs entry to display frame-ping in ktime 2016-06-06 20:50:08 -07:00
timesync.h greybus: timesync: Add gb_timesync_frame_time_to_timespec() 2016-06-06 20:50:08 -07:00
timesync_platform.c greybus: timesync: Add timesync core driver 2016-06-06 20:37:47 -07:00
uart.c greybus: gbphy: Remove protocol specific version handling 2016-05-31 22:02:58 -07:00
usb.c greybus: gbphy: Remove protocol specific version handling 2016-05-31 22:02:58 -07:00
vibrator.c greybus: Remove unused VERSION specific macros 2016-05-31 22:02:58 -07: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>