Srinivas Pandruvada
2d94e5224e
HID: hid-sensor-hub: Fix debug lock warning
...
When CONFIG_DEBUG_LOCK_ALLOC is defined, mutex magic is compared and
warned for (l->magic != l), here l is the address of mutex pointer.
In hid-sensor-hub as part of hsdev creation, a per hsdev mutex is
initialized during MFD cell creation. This hsdev, which contains, mutex
is part of platform data for the a cell. But platform_data is copied
in platform_device_add_data() in platform.c. This copy will copy the
whole hsdev structure including mutex. But once copied the magic
will no longer match. So when client driver call
sensor_hub_input_attr_get_raw_value, this will trigger mutex warning.
So to avoid this allocate mutex dynamically. This will be same even
after copy.
Signed-off-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
2015-05-12 14:13:20 +02:00
..
2015-04-23 10:58:16 +02:00
2015-04-13 23:41:15 +02:00
2013-07-31 10:12:28 +02:00
2014-02-06 14:35:18 +01:00
2013-11-21 09:58:19 +01:00
2013-01-03 10:27:31 +01:00
2013-11-12 19:06:23 +01:00
2013-01-03 10:27:31 +01:00
2014-12-22 15:00:25 +01:00
2014-08-21 10:43:28 -05:00
2013-01-03 10:27:31 +01:00
2015-04-13 23:41:15 +02:00
2014-09-18 11:03:10 -07:00
2013-01-03 10:27:31 +01:00
2015-04-13 23:41:15 +02:00
2013-02-25 13:26:41 +01:00
2013-01-03 10:27:31 +01:00
2013-09-25 11:28:50 +02:00
2013-02-25 13:26:41 +01:00
2013-01-03 10:27:31 +01:00
2013-02-25 13:26:41 +01:00
2013-01-03 10:27:31 +01:00
2014-07-03 11:14:11 -07:00
2013-01-03 10:27:31 +01:00
2013-01-03 10:27:31 +01:00
2014-09-08 09:48:56 +02:00
2013-08-05 11:29:57 +02:00
2015-01-26 14:25:41 +01:00
2013-04-24 16:32:27 +02:00
2015-04-13 23:41:15 +02:00
2015-04-14 09:25:26 -07:00
2013-01-03 10:27:31 +01:00
2013-01-03 10:27:31 +01:00
2015-02-17 13:13:45 +01:00
2013-01-03 10:27:31 +01:00
2014-12-17 09:00:16 +01:00
2013-10-09 12:06:02 +02:00
2013-09-13 15:12:39 +02:00
2015-02-18 23:49:40 +01:00
2015-02-18 21:14:54 +01:00
2015-02-18 21:14:54 +01:00
2015-02-18 21:14:54 +01:00
2013-09-13 15:12:39 +02:00
2014-12-17 08:50:12 +01:00
2015-05-07 10:50:51 +02:00
2014-08-27 09:14:39 +02:00
2015-02-23 15:28:40 +01:00
2014-08-21 10:43:28 -05:00
2015-04-13 23:41:15 +02:00
2013-09-04 12:00:23 +02:00
2013-01-03 10:27:31 +01:00
2014-09-04 11:23:51 +02:00
2014-08-21 10:43:28 -05:00
2013-02-25 13:26:41 +01:00
2014-07-25 19:10:43 -03:00
2014-08-27 23:27:10 +02:00
2014-06-30 09:54:22 +02:00
2014-05-14 10:53:56 +09:30
2013-02-25 13:26:41 +01:00
2013-02-25 13:26:41 +01:00
2013-04-30 10:19:07 +02:00
2013-09-04 11:58:32 +02:00
2014-11-03 14:19:14 +01:00
2013-01-03 10:27:31 +01:00
2014-02-14 08:14:09 +01:00
2015-02-25 15:26:44 +01:00
2013-09-06 09:30:36 -07:00
2011-06-13 12:52:57 +02:00
2013-10-30 14:17:31 +01:00
2013-10-30 14:17:31 +01:00
2013-09-06 09:30:36 -07:00
2013-03-14 11:50:49 +01:00
2014-10-29 14:56:30 +01:00
2013-04-08 10:33:13 +02:00
2013-09-30 10:51:31 +02:00
2012-11-18 22:58:28 +01:00
2013-10-30 14:17:31 +01:00
2013-11-04 10:55:20 +01:00
2012-11-12 15:30:29 +01:00
2014-06-27 00:33:44 +02:00
2012-10-17 10:44:47 +02:00
2015-01-09 14:41:01 +01:00
2012-11-12 15:30:28 +01:00
2013-10-30 14:17:31 +01:00
2013-10-30 14:17:31 +01:00
2013-10-30 14:17:31 +01:00
2013-06-18 11:00:36 +02:00
2015-02-17 13:28:00 +01:00
2013-01-03 10:27:31 +01:00
2015-04-10 22:22:55 +02:00
2015-05-12 14:13:20 +02:00
2013-02-25 13:26:41 +01:00
2015-04-14 09:25:26 -07:00
2013-08-26 13:51:10 +02:00
2015-02-27 00:36:23 +01:00
2014-08-21 10:43:28 -05:00
2014-10-06 23:34:40 +02:00
2015-03-15 10:04:27 -04:00
2013-02-25 13:26:41 +01:00
2013-01-03 10:27:31 +01:00
2013-01-03 10:27:31 +01:00
2015-03-16 15:46:47 +01:00
2013-01-03 10:27:31 +01:00
2014-02-17 14:57:17 +01:00
2013-06-03 11:07:06 +02:00
2015-03-13 23:15:51 +01:00
2015-03-13 23:15:51 +01:00
2013-08-26 13:23:04 +02:00
2013-09-13 15:11:34 +02:00
2013-07-31 10:12:28 +02:00
2014-04-01 19:05:09 +02:00
2015-04-13 23:43:34 +02:00
2015-04-13 23:43:34 +02:00
2014-10-01 20:58:46 +02:00
2015-04-14 09:25:26 -07:00
2015-04-14 09:25:26 -07:00
2015-04-02 14:09:59 +02:00
2015-04-14 09:25:26 -07:00