Krzysztof Kozlowski
c31844ffdb
clk: samsung: Fix double add of syscore ops after driver rebind
...
During driver unbind the syscore ops were not unregistered which lead to
double add on syscore list:
$ echo "3810000.audss-clock-controller" > /sys/bus/platform/drivers/exynos-audss-clk/unbind
$ echo "3810000.audss-clock-controller" > /sys/bus/platform/drivers/exynos-audss-clk/bind
[ 1463.044061] ------------[ cut here ]------------
[ 1463.047255] WARNING: CPU: 0 PID: 1 at lib/list_debug.c:36 __list_add+0x8c/0xc0()
[ 1463.054613] list_add double add: new=c06e52c0, prev=c06e52c0, next=c06d5f84.
[ 1463.061625] Modules linked in:
[ 1463.064623] CPU: 0 PID: 1 Comm: bash Tainted: G W 3.18.0-rc5-next-20141121-00005-ga8fab06eab42-dirty #1022
[ 1463.075338] [<c0014e2c>] (unwind_backtrace) from [<c0011d80>] (show_stack+0x10/0x14)
[ 1463.083046] [<c0011d80>] (show_stack) from [<c048bb70>] (dump_stack+0x70/0xbc)
[ 1463.090236] [<c048bb70>] (dump_stack) from [<c00233d4>] (warn_slowpath_common+0x74/0xb0)
[ 1463.098295] [<c00233d4>] (warn_slowpath_common) from [<c00234a4>] (warn_slowpath_fmt+0x30/0x40)
[ 1463.106962] [<c00234a4>] (warn_slowpath_fmt) from [<c020fe80>] (__list_add+0x8c/0xc0)
[ 1463.114760] [<c020fe80>] (__list_add) from [<c0282094>] (register_syscore_ops+0x30/0x3c)
[ 1463.122819] [<c0282094>] (register_syscore_ops) from [<c0392f20>] (exynos_audss_clk_probe+0x36c/0x460)
[ 1463.132091] [<c0392f20>] (exynos_audss_clk_probe) from [<c0283084>] (platform_drv_probe+0x48/0xa4)
[ 1463.141013] [<c0283084>] (platform_drv_probe) from [<c0281a14>] (driver_probe_device+0x13c/0x37c)
[ 1463.149852] [<c0281a14>] (driver_probe_device) from [<c0280560>] (bind_store+0x90/0xe0)
[ 1463.157822] [<c0280560>] (bind_store) from [<c027fd10>] (drv_attr_store+0x20/0x2c)
[ 1463.165363] [<c027fd10>] (drv_attr_store) from [<c0143898>] (sysfs_kf_write+0x4c/0x50)
[ 1463.173252] [<c0143898>] (sysfs_kf_write) from [<c0142c80>] (kernfs_fop_write+0xbc/0x198)
[ 1463.181395] [<c0142c80>] (kernfs_fop_write) from [<c00e2be0>] (vfs_write+0xa0/0x1a8)
[ 1463.189104] [<c00e2be0>] (vfs_write) from [<c00e2f00>] (SyS_write+0x40/0x8c)
[ 1463.196122] [<c00e2f00>] (SyS_write) from [<c000f2a0>] (ret_fast_syscall+0x0/0x48)
[ 1463.203655] ---[ end trace 08f6710c9bc8d8f3 ]---
[ 1463.208244] exynos-audss-clk 3810000.audss-clock-controller: setup completed
Signed-off-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
Fixes: 1241ef94ccc3 ("clk: samsung: register audio subsystem clocks using common clock framework")
Cc: <stable@vger.kernel.org>
Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
2014-12-02 16:22:59 +01:00
..
2014-10-15 07:05:03 +02:00
2014-05-27 17:34:32 -07:00
2014-05-29 09:30:19 -07:00
2014-09-28 10:27:09 +08:00
2014-02-10 15:17:43 -05:00
2014-03-26 20:59:27 -07:00
2014-10-03 16:43:02 -07:00
2013-09-29 21:09:34 +02:00
2014-09-30 12:31:31 -07:00
2014-09-26 16:10:57 -07:00
2014-10-01 14:11:42 +02:00
2014-12-02 16:22:59 +01:00
2014-10-15 07:05:03 +02:00
2014-03-26 21:47:35 -07:00
2014-05-12 19:11:13 -07:00
2014-07-13 07:56:45 -07:00
2014-07-28 22:37:16 -07:00
2014-09-27 12:52:33 -07:00
2014-09-18 14:56:53 +03:00
2014-09-29 23:38:59 -07:00
2014-02-23 15:04:40 -08:00
2014-06-24 14:21:22 -05:00
2014-09-09 12:18:20 -07:00
2014-09-25 17:43:31 -07:00
2014-05-22 22:06:14 -07:00
2013-09-29 21:09:24 +02:00
2014-07-28 23:30:46 -07:00
2014-07-13 12:17:05 -07:00
2014-08-04 09:48:39 -07:00
2014-05-27 19:16:24 -07:00
2014-09-09 13:52:18 -07:00
2013-11-15 16:47:22 -08:00
2013-12-22 23:14:28 -08:00
2014-09-10 09:42:37 -07:00
2014-09-27 16:03:06 -07:00
2014-09-30 11:57:54 -07:00
2013-09-29 21:09:29 +02:00
2014-09-25 17:43:31 -07:00
2014-09-25 17:43:31 -07:00
2014-09-09 13:55:44 -07:00
2014-09-09 13:55:44 -07:00
2014-03-18 17:13:14 -07:00
2013-08-27 17:50:38 -07:00
2014-02-26 11:14:44 -08:00
2014-09-25 17:43:31 -07:00
2014-07-01 20:11:22 -07:00
2014-10-14 02:18:18 +02:00
2014-07-03 11:55:42 -07:00
2014-05-20 16:18:18 +02:00
2014-01-28 18:44:53 -08:00
2014-01-27 11:20:22 -08:00
2014-09-25 17:43:31 -07:00
2014-05-27 18:29:04 -07:00
2013-12-19 17:47:32 -08:00
2014-09-25 17:43:31 -07:00
2013-10-07 11:22:15 -07:00
2014-09-27 12:52:33 -07:00
2014-05-22 15:54:59 -07:00
2014-06-26 12:55:03 -07:00
2014-10-15 07:05:03 +02:00
2014-10-15 07:05:03 +02:00