2019-06-04 10:11:33 +02:00
|
|
|
|
2008-04-22 14:42:03 -03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2011-07-28 18:42:57 -03:00
|
|
|
|
2010-07-26 11:37:13 -03:00
|
|
|
|
2008-12-18 12:28:54 -03:00
|
|
|
|
|
|
|
|
|
2008-04-22 14:42:03 -03:00
|
|
|
|
2015-09-22 10:30:29 -03:00
|
|
|
|
2012-12-26 12:44:11 -03:00
|
|
|
|
2011-09-06 12:36:39 -03:00
|
|
|
|
2009-08-25 11:43:33 -03:00
|
|
|
|
2008-04-22 14:42:03 -03:00
|
|
|
|
2010-08-17 14:29:51 -03:00
|
|
|
|
2012-12-21 08:11:48 -03:00
|
|
|
|
2012-12-26 12:44:11 -03:00
|
|
|
|
2010-08-17 14:29:51 -03:00
|
|
|
|
2008-04-22 14:42:03 -03:00
|
|
|
|
2011-07-01 11:31:35 -03:00
|
|
|
|
2012-12-21 08:11:48 -03:00
|
|
|
|
2009-08-25 11:43:33 -03:00
|
|
|
|
2011-07-15 20:03:38 -03:00
|
|
|
|
|
|
|
|
|
2009-08-25 11:50:46 -03:00
|
|
|
|
|
|
|
|
|
2011-03-07 21:49:48 -03:00
|
|
|
|
|
|
|
|
|
2009-12-11 11:46:49 -03:00
|
|
|
|
2008-04-22 14:42:03 -03:00
|
|
|
|
|
|
|
|
|
2008-12-18 11:34:20 -03:00
|
|
|
|
2008-04-22 14:42:03 -03:00
|
|
|
|
2011-09-06 12:36:39 -03:00
|
|
|
|
2009-12-11 11:46:49 -03:00
|
|
|
|
2008-12-01 09:45:27 -03:00
|
|
|
|
|
|
|
|
|
2009-03-13 06:08:20 -03:00
|
|
|
|
2008-12-18 12:28:54 -03:00
|
|
|
|
2012-12-24 09:31:33 -03:00
|
|
|
|
2008-04-22 14:45:32 -03:00
|
|
|
|
2010-08-17 14:29:51 -03:00
|
|
|
|
2012-12-21 13:01:55 -03:00
|
|
|
|
2012-12-26 12:44:11 -03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2017-03-08 12:33:27 -03:00
|
|
|
|
2008-04-22 14:42:03 -03:00
|
|
|
|
|
|
|
|
|
2012-03-21 08:03:28 -03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2012-12-26 12:44:11 -03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-04-22 14:42:03 -03:00
|
|
|
|
2009-08-25 11:43:33 -03:00
|
|
|
|
2008-04-22 14:42:03 -03:00
|
|
|
|
2012-12-26 12:44:11 -03:00
|
|
|
|
|
|
|
|
|
2012-04-18 06:43:09 -03:00
|
|
|
|
2012-03-21 08:03:28 -03:00
|
|
|
|
2013-04-04 08:21:12 -03:00
|
|
|
|
2008-04-22 14:42:03 -03:00
|
|
|
|
V4L/DVB (9521): V4L: struct device - replace bus_id with dev_name(), dev_set_name()
This patch is part of a larger patch series which will remove
the "char bus_id[20]" name string from struct device. The device
name is managed in the kobject anyway, and without any size
limitation, and just needlessly copied into "struct device".
To set and read the device name dev_name(dev) and dev_set_name(dev)
must be used. If your code uses static kobjects, which it shouldn't
do, "const char *init_name" can be used to statically provide the
name the registered device should have. At registration time, the
init_name field is cleared, to enforce the use of dev_name(dev) to
access the device name at a later time.
We need to get rid of all occurrences of bus_id in the entire tree
to be able to enable the new interface. Please apply this patch,
and possibly convert any remaining remaining occurrences of bus_id.
We want to submit a patch to -next, which will remove bus_id from
"struct device", to find the remaining pieces to convert, and finally
switch over to the new api, which will remove the 20 bytes array
and does no longer have a size limitation.
Thanks,
Kay
Signed-off-by: Kay Sievers <kay.sievers@vrfy.org>
Acked-by: Greg Kroah-Hartman <gregkh@suse.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2008-10-30 00:51:46 -03:00
|
|
|
|
2008-04-04 13:41:25 -03:00
|
|
|
|
2012-12-26 12:44:11 -03:00
|
|
|
|
2013-06-24 05:19:19 -03:00
|
|
|
|
2008-04-04 13:41:25 -03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-04-22 14:42:03 -03:00
|
|
|
|
|
|
|
|
|
2013-04-04 08:51:36 -03:00
|
|
|
|
|
|
|
|
|
2009-08-25 11:46:43 -03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2010-05-08 17:55:00 -03:00
|
|
|
|
2008-12-01 09:45:27 -03:00
|
|
|
|
2009-08-25 11:46:43 -03:00
|
|
|
|
2012-06-22 13:40:08 -03:00
|
|
|
|
|
|
|
|
|
2011-03-28 13:28:28 -03:00
|
|
|
|
2015-12-14 08:25:32 -02:00
|
|
|
|
2011-03-28 13:28:28 -03:00
|
|
|
|
|
|
|
|
|
2015-12-14 08:25:32 -02:00
|
|
|
|
2009-03-13 06:08:20 -03:00
|
|
|
|
2008-12-01 09:45:21 -03:00
|
|
|
|
2011-01-29 12:44:51 -03:00
|
|
|
|
|
|
|
|
|
2008-04-22 14:42:03 -03:00
|
|
|
|
2011-09-21 17:52:51 -03:00
|
|
|
|
2010-02-09 18:00:30 +01:00
|
|
|
|
|
|
|
|
|
2012-05-08 13:00:51 -03:00
|
|
|
|
2017-07-02 22:22:01 -04:00
|
|
|
|
2008-04-22 14:42:03 -03:00
|
|
|
|
|
|
|
|
|
2008-12-23 05:54:45 -03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2009-05-07 13:25:32 -03:00
|
|
|
|
2010-12-02 07:43:37 -03:00
|
|
|
|
2009-05-07 13:25:32 -03:00
|
|
|
|
2012-12-21 08:11:48 -03:00
|
|
|
|
2008-12-23 05:54:45 -03:00
|
|
|
|
|
|
|
|
|
2012-12-21 08:11:48 -03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2009-12-11 11:15:06 -03:00
|
|
|
|
[media] V4L2: soc-camera: work around unbalanced calls to .s_power()
Some non soc-camera drivers, e.g. em28xx, use subdevice drivers, originally
written for soc-camera, which use soc_camera_power_on() and
soc_camera_power_off() helpers to implement their .s_power() methods. Those
helpers in turn can enable and disable a clock, if it is supplied to them
as a parameter. This works well when camera host drivers balance their
calls to subdevices' .s_power() methods. However, some such drivers fail to
do that, which leads to unbalanced calls to v4l2_clk_enable() /
v4l2_clk_disable(), which then in turn produce kernel warnings. Such
behaviour is wrong and should be fixed, however, sometimes it is difficult,
because some of those drivers are rather old and use lots of subdevices,
which all should be tested after such a fix. To support such drivers this
patch adds a work-around, allowing host drivers or platforms to set a flag,
in which case soc-camera helpers will only enable the clock, if it is
disabled, and disable it only once on the first call to .s_power(0).
Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
2013-10-21 06:28:02 -03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2012-12-21 08:11:48 -03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2013-04-18 18:35:28 -03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2012-12-21 08:11:48 -03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2009-08-25 11:06:21 -03:00
|
|
|
|
2011-07-01 11:31:35 -03:00
|
|
|
|
|
|
|
|
|
2009-08-25 11:06:21 -03:00
|
|
|
|
2011-07-15 20:03:38 -03:00
|
|
|
|
|
|
|
|
|
2012-12-21 08:11:48 -03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2012-12-26 12:44:11 -03:00
|
|
|
|
2012-12-21 08:11:48 -03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
[media] V4L2: soc-camera: work around unbalanced calls to .s_power()
Some non soc-camera drivers, e.g. em28xx, use subdevice drivers, originally
written for soc-camera, which use soc_camera_power_on() and
soc_camera_power_off() helpers to implement their .s_power() methods. Those
helpers in turn can enable and disable a clock, if it is supplied to them
as a parameter. This works well when camera host drivers balance their
calls to subdevices' .s_power() methods. However, some such drivers fail to
do that, which leads to unbalanced calls to v4l2_clk_enable() /
v4l2_clk_disable(), which then in turn produce kernel warnings. Such
behaviour is wrong and should be fixed, however, sometimes it is difficult,
because some of those drivers are rather old and use lots of subdevices,
which all should be tested after such a fix. To support such drivers this
patch adds a work-around, allowing host drivers or platforms to set a flag,
in which case soc-camera helpers will only enable the clock, if it is
disabled, and disable it only once on the first call to .s_power(0).
Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
2013-10-21 06:28:02 -03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-08-14 12:04:11 -03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2009-03-13 06:08:20 -03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2009-04-24 12:53:51 -03:00
|
|
|
|
2012-12-21 08:11:48 -03:00
|
|
|
|
2013-04-18 18:35:28 -03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2012-12-21 08:11:48 -03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-04-22 14:42:03 -03:00
|
|
|
|
|
|
|
|
|
2009-08-25 11:53:23 -03:00
|
|
|
|
|
|
|
|
|
2008-04-22 14:42:03 -03:00
|
|
|
|
2009-08-25 11:43:33 -03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-04-22 14:42:03 -03:00
|
|
|
|
|
|
|
|
|
2012-12-21 08:11:48 -03:00
|
|
|
|
2009-08-25 11:53:23 -03:00
|
|
|
|
2009-08-25 11:28:22 -03:00
|
|
|
|
2012-12-21 08:11:48 -03:00
|
|
|
|
2009-08-25 11:28:22 -03:00
|
|
|
|
2008-04-22 14:42:03 -03:00
|
|
|
|
2009-08-25 11:53:23 -03:00
|
|
|
|
|
|
|
|
|
2009-08-25 11:28:22 -03:00
|
|
|
|
2011-07-15 20:03:38 -03:00
|
|
|
|
2009-08-25 11:28:22 -03:00
|
|
|
|
2008-04-22 14:42:03 -03:00
|
|
|
|
2009-08-25 11:53:23 -03:00
|
|
|
|
|
|
|
|
|
2009-08-25 11:46:59 -03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2009-08-25 11:28:22 -03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-12-01 09:45:27 -03:00
|
|
|
|
2008-12-01 09:44:59 -03:00
|
|
|
|
2008-12-01 09:45:27 -03:00
|
|
|
|
|
|
|
|
|
2009-12-11 11:46:49 -03:00
|
|
|
|
|
|
|
|
|
2008-12-01 09:45:27 -03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2014-11-10 14:28:31 -03:00
|
|
|
|
2009-12-11 11:46:49 -03:00
|
|
|
|
2008-12-01 09:45:27 -03:00
|
|
|
|
|
|
|
|
|
2008-12-18 11:34:20 -03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2011-07-28 18:42:57 -03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2013-03-18 08:47:59 -03:00
|
|
|
|
2011-07-28 18:42:57 -03:00
|
|
|
|
|
|
|
|
|
2013-03-18 08:47:59 -03:00
|
|
|
|
|
|
|
|
|
2008-03-07 21:57:18 -03:00
|
|
|
|
2008-12-19 10:07:49 -03:00
|
|
|
|
|
|
|
|
|
2013-03-18 08:47:59 -03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-03-07 21:57:18 -03:00
|
|
|
|
2010-02-24 17:13:29 -03:00
|
|
|
|
|
|
|
|
|
2009-08-25 11:50:46 -03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2012-12-21 08:11:48 -03:00
|
|
|
|
2011-07-26 11:38:01 -03:00
|
|
|
|
2008-12-23 05:54:45 -03:00
|
|
|
|
2012-12-26 12:44:11 -03:00
|
|
|
|
2012-12-21 13:01:55 -03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2012-07-20 10:19:50 -03:00
|
|
|
|
|
|
|
|
|
2012-12-21 13:01:55 -03:00
|
|
|
|
2012-07-20 10:19:50 -03:00
|
|
|
|
2012-12-21 13:01:55 -03:00
|
|
|
|
|
|
|
|
|
2012-07-20 10:19:50 -03:00
|
|
|
|
|
|
|
|
|
2010-05-18 00:46:09 -03:00
|
|
|
|
|
|
|
|
|
2011-09-21 15:16:30 -03:00
|
|
|
|
2010-05-18 00:46:09 -03:00
|
|
|
|
2011-09-09 13:39:20 -03:00
|
|
|
|
2011-12-05 16:01:13 -03:00
|
|
|
|
2011-09-21 15:16:30 -03:00
|
|
|
|
2010-05-18 00:46:09 -03:00
|
|
|
|
|
|
|
|
|
2012-12-21 08:11:48 -03:00
|
|
|
|
2011-09-21 15:16:30 -03:00
|
|
|
|
2011-09-09 13:39:20 -03:00
|
|
|
|
2011-09-21 15:16:30 -03:00
|
|
|
|
|
|
|
|
|
2013-06-10 09:27:41 -03:00
|
|
|
|
2011-09-21 15:16:30 -03:00
|
|
|
|
2013-06-10 09:27:41 -03:00
|
|
|
|
2011-09-21 15:16:30 -03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2011-02-07 18:09:30 -03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2011-12-05 16:01:13 -03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2011-01-29 12:44:51 -03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-04-22 14:42:03 -03:00
|
|
|
|