Bryan O'Donoghue 1211915127 greybus: timesync: Enforce TimeSync locks as subordinate to Interface locks
gb_timesync_svc_teardown() is called from gb_timesync_svc_del() and issues a
command to a remote Interface to switch off its timers. The lock ordering
is TimeSync => Interface in this case. However gb_module_del() takes an
Interface lock then calls gb_interface_del() => gb_timesync_svc_del() in
this case the lock ordering is Interface => TimeSync.

This patch fixes by removing the taking of the Interface mutex in
gb_interface_timesync_do_something(). If an Interface is present in the
TimeSync linked-list - it is by definition intf->enabled.

Reported-by: Rui Miguel Silva <rui.silva@linaro.org>
Signed-off-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
2016-06-23 14:15:21 -07:00
..
2016-02-02 21:26:32 -08:00
2016-06-10 16:32:33 -07:00
2016-06-03 17:03:23 -07:00
2016-06-23 14:15:21 -07:00
2016-06-10 16:32:33 -07:00
2016-06-10 16:32:33 -07:00
2014-08-11 15:29:23 +08:00
2016-05-27 11:28:16 -07:00
2016-04-25 11:08:30 -07:00
2016-06-10 16:32:33 -07:00
2016-06-10 16:32:33 -07:00
2016-06-23 14:15:21 -07: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>