* [PATCH 0/8] Fix issues in em28xx
@ 2014-12-20 12:44 Russell King - ARM Linux
2014-12-20 12:45 ` [PATCH 1/8] [media] em28xx: fix em28xx-input removal Russell King
` (9 more replies)
0 siblings, 10 replies; 14+ messages in thread
From: Russell King - ARM Linux @ 2014-12-20 12:44 UTC (permalink / raw)
To: Mauro Carvalho Chehab; +Cc: linux-media
While testing a PCTV tripleSTICK 292e, a couple of issues were
discovered. Firstly, disconnecting the device causes a lockdep
splat, which is addressed in the first patch.
Secondly, a number of kernel messages are missing their terminating
newline characters, and these are spread over a range of commits and
a range of kernel versions. Therefore, I've split the fixes up by
offending commit, which should make backporting to stable trees
easier. (Some need to be applied to 3.14 and on, some to 3.15 and on,
etc.)
It isn't clear who is the maintainer for this driver; there is no
MAINTAINERS entry. If there is a maintainer, please ensure that they
add themselves to this critical file. Thanks.
drivers/media/usb/em28xx/em28xx-audio.c | 8 ++++----
drivers/media/usb/em28xx/em28xx-core.c | 4 ++--
drivers/media/usb/em28xx/em28xx-dvb.c | 14 +++++++-------
drivers/media/usb/em28xx/em28xx-input.c | 9 ++++-----
drivers/media/usb/em28xx/em28xx-video.c | 6 +++---
5 files changed, 20 insertions(+), 21 deletions(-)
--
FTTC broadband for 0.8mile line: currently at 9.5Mbps down 400kbps up
according to speedtest.net.
^ permalink raw reply [flat|nested] 14+ messages in thread
* [PATCH 1/8] [media] em28xx: fix em28xx-input removal
2014-12-20 12:44 [PATCH 0/8] Fix issues in em28xx Russell King - ARM Linux
@ 2014-12-20 12:45 ` Russell King
[not found] ` <549583AA.9040204@googlemail.com>
2014-12-20 12:45 ` [PATCH 2/8] [media] em28xx: ensure "closing" messages terminate with a newline Russell King
` (8 subsequent siblings)
9 siblings, 1 reply; 14+ messages in thread
From: Russell King @ 2014-12-20 12:45 UTC (permalink / raw)
To: Mauro Carvalho Chehab; +Cc: linux-media
Removing the em28xx-rc module results in the following lockdep splat,
which is caused by trying to call cancel_delayed_work_sync() on an
uninitialised delayed work. Fix this by ensuring we always initialise
the work.
INFO: trying to register non-static key.
the code is fine but needs lockdep annotation.
turning off the locking correctness validator.
CPU: 0 PID: 2183 Comm: rmmod Not tainted 3.18.0+ #1464
Hardware name: Freescale i.MX6 Quad/DualLite (Device Tree)
Backtrace:
[<c0012228>] (dump_backtrace) from [<c00123c0>] (show_stack+0x18/0x1c)
r6:c1419d2c r5:00000000 r4:00000000 r3:00000000
[<c00123a8>] (show_stack) from [<c06e2550>] (dump_stack+0x7c/0x98)
[<c06e24d4>] (dump_stack) from [<c0061c94>] (__lock_acquire+0x16d4/0x1bb0)
r4:edf19f74 r3:df049380
[<c00605c0>] (__lock_acquire) from [<c00626d4>] (lock_acquire+0xb0/0x124)
r10:00000000 r9:c003ba90 r8:00000000 r7:00000000 r6:00000000 r5:edf19f74
r4:00000000
[<c0062624>] (lock_acquire) from [<c003bad4>] (flush_work+0x44/0x264)
r10:00000000 r9:eaa86000 r8:edf190b0 r7:edf19f74 r6:00000001 r5:edf19f64
r4:00000000
[<c003ba90>] (flush_work) from [<c003d8f0>] (__cancel_work_timer+0x8c/0x124)
r7:00000000 r6:00000001 r5:00000000 r4:edf19f64
[<c003d864>] (__cancel_work_timer) from [<c003d99c>] (cancel_delayed_work_sync+0x14/0x18)
r7:00000000 r6:eccc3600 r5:00000000 r4:edf19000
[<c003d988>] (cancel_delayed_work_sync) from [<bf0b5c10>] (em28xx_ir_fini+0x48/0xd8 [em28xx_rc])
[<bf0b5bc8>] (em28xx_ir_fini [em28xx_rc]) from [<bf08a0a8>] (em28xx_unregister_extension+0x40/0x94 [em28xx])
r8:c000edc4 r7:00000081 r6:bf092bf4 r5:bf0b6a2c r4:edf19000 r3:bf0b5bc8
[<bf08a068>] (em28xx_unregister_extension [em28xx]) from [<bf0b64dc>] (em28xx_rc_unregister+0x14/0x1c [em28xx_rc])
r6:00000800 r5:00000000 r4:bf0b6a50 r3:bf0b64c8
[<bf0b64c8>] (em28xx_rc_unregister [em28xx_rc]) from [<c0096710>] (SyS_delete_module+0x11c/0x180)
[<c00965f4>] (SyS_delete_module) from [<c000ec00>] (ret_fast_syscall+0x0/0x48)
r6:00000001 r5:beb0f813 r4:b8b17d00
Cc: <stable@vger.kernel.org>
Fixes: f52226099382 ("[media] em28xx: extend the support for device buttons")
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
---
drivers/media/usb/em28xx/em28xx-input.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/drivers/media/usb/em28xx/em28xx-input.c b/drivers/media/usb/em28xx/em28xx-input.c
index d8dc03aadfbd..ef36c49ef166 100644
--- a/drivers/media/usb/em28xx/em28xx-input.c
+++ b/drivers/media/usb/em28xx/em28xx-input.c
@@ -654,8 +654,6 @@ static void em28xx_init_buttons(struct em28xx *dev)
if (dev->num_button_polling_addresses) {
memset(dev->button_polling_last_values, 0,
EM28XX_NUM_BUTTON_ADDRESSES_MAX);
- INIT_DELAYED_WORK(&dev->buttons_query_work,
- em28xx_query_buttons);
schedule_delayed_work(&dev->buttons_query_work,
msecs_to_jiffies(dev->button_polling_interval));
}
@@ -689,6 +687,7 @@ static int em28xx_ir_init(struct em28xx *dev)
}
kref_get(&dev->ref);
+ INIT_DELAYED_WORK(&dev->buttons_query_work, em28xx_query_buttons);
if (dev->board.buttons)
em28xx_init_buttons(dev);
--
1.8.3.1
^ permalink raw reply related [flat|nested] 14+ messages in thread
* [PATCH 2/8] [media] em28xx: ensure "closing" messages terminate with a newline
2014-12-20 12:44 [PATCH 0/8] Fix issues in em28xx Russell King - ARM Linux
2014-12-20 12:45 ` [PATCH 1/8] [media] em28xx: fix em28xx-input removal Russell King
@ 2014-12-20 12:45 ` Russell King
2014-12-20 12:45 ` [PATCH 3/8] [media] em28xx-input: fix missing newlines Russell King
` (7 subsequent siblings)
9 siblings, 0 replies; 14+ messages in thread
From: Russell King @ 2014-12-20 12:45 UTC (permalink / raw)
To: Mauro Carvalho Chehab; +Cc: linux-media
The lockdep splat addressed in a previous commit revealed that at
least one message in em28xx-input.c was missing a new line:
em28178 #0: Closing input extensionINFO: trying to register non-static key.
Further inspection shows several other messages also miss a new line.
These will be fixed in a subsequent patch.
Cc: <stable@vger.kernel.org>
Fixes: aa929ad783c0 ("[media] em28xx: print a message at disconnect")
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
---
drivers/media/usb/em28xx/em28xx-audio.c | 2 +-
drivers/media/usb/em28xx/em28xx-dvb.c | 2 +-
drivers/media/usb/em28xx/em28xx-input.c | 2 +-
drivers/media/usb/em28xx/em28xx-video.c | 2 +-
4 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/drivers/media/usb/em28xx/em28xx-audio.c b/drivers/media/usb/em28xx/em28xx-audio.c
index 44ae1e0661e6..52dc9d70da72 100644
--- a/drivers/media/usb/em28xx/em28xx-audio.c
+++ b/drivers/media/usb/em28xx/em28xx-audio.c
@@ -981,7 +981,7 @@ static int em28xx_audio_fini(struct em28xx *dev)
return 0;
}
- em28xx_info("Closing audio extension");
+ em28xx_info("Closing audio extension\n");
if (dev->adev.sndcard) {
snd_card_disconnect(dev->adev.sndcard);
diff --git a/drivers/media/usb/em28xx/em28xx-dvb.c b/drivers/media/usb/em28xx/em28xx-dvb.c
index 9877b699c6bc..80c384c390e2 100644
--- a/drivers/media/usb/em28xx/em28xx-dvb.c
+++ b/drivers/media/usb/em28xx/em28xx-dvb.c
@@ -1724,7 +1724,7 @@ static int em28xx_dvb_fini(struct em28xx *dev)
if (!dev->dvb)
return 0;
- em28xx_info("Closing DVB extension");
+ em28xx_info("Closing DVB extension\n");
dvb = dev->dvb;
client = dvb->i2c_client_tuner;
diff --git a/drivers/media/usb/em28xx/em28xx-input.c b/drivers/media/usb/em28xx/em28xx-input.c
index ef36c49ef166..aea22deadc0a 100644
--- a/drivers/media/usb/em28xx/em28xx-input.c
+++ b/drivers/media/usb/em28xx/em28xx-input.c
@@ -832,7 +832,7 @@ static int em28xx_ir_fini(struct em28xx *dev)
return 0;
}
- em28xx_info("Closing input extension");
+ em28xx_info("Closing input extension\n");
em28xx_shutdown_buttons(dev);
diff --git a/drivers/media/usb/em28xx/em28xx-video.c b/drivers/media/usb/em28xx/em28xx-video.c
index cf7f58b76292..3b8c464bf25a 100644
--- a/drivers/media/usb/em28xx/em28xx-video.c
+++ b/drivers/media/usb/em28xx/em28xx-video.c
@@ -1958,7 +1958,7 @@ static int em28xx_v4l2_fini(struct em28xx *dev)
if (v4l2 == NULL)
return 0;
- em28xx_info("Closing video extension");
+ em28xx_info("Closing video extension\n");
mutex_lock(&dev->lock);
--
1.8.3.1
^ permalink raw reply related [flat|nested] 14+ messages in thread
* [PATCH 3/8] [media] em28xx-input: fix missing newlines
2014-12-20 12:44 [PATCH 0/8] Fix issues in em28xx Russell King - ARM Linux
2014-12-20 12:45 ` [PATCH 1/8] [media] em28xx: fix em28xx-input removal Russell King
2014-12-20 12:45 ` [PATCH 2/8] [media] em28xx: ensure "closing" messages terminate with a newline Russell King
@ 2014-12-20 12:45 ` Russell King
2014-12-20 12:45 ` [PATCH 4/8] [media] em28xx-core: " Russell King
` (6 subsequent siblings)
9 siblings, 0 replies; 14+ messages in thread
From: Russell King @ 2014-12-20 12:45 UTC (permalink / raw)
To: Mauro Carvalho Chehab; +Cc: linux-media
Inspection shows that newlines are missing from several kernel messages
in em28xx-input. Fix these.
Cc: <stable@vger.kernel.org>
Fixes: 5025076aadfe ("[media] em28xx-input: implement em28xx_ops: suspend/resume hooks")
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
---
drivers/media/usb/em28xx/em28xx-input.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/media/usb/em28xx/em28xx-input.c b/drivers/media/usb/em28xx/em28xx-input.c
index aea22deadc0a..4007356d991d 100644
--- a/drivers/media/usb/em28xx/em28xx-input.c
+++ b/drivers/media/usb/em28xx/em28xx-input.c
@@ -861,7 +861,7 @@ static int em28xx_ir_suspend(struct em28xx *dev)
if (dev->is_audio_only)
return 0;
- em28xx_info("Suspending input extension");
+ em28xx_info("Suspending input extension\n");
if (ir)
cancel_delayed_work_sync(&ir->work);
cancel_delayed_work_sync(&dev->buttons_query_work);
@@ -878,7 +878,7 @@ static int em28xx_ir_resume(struct em28xx *dev)
if (dev->is_audio_only)
return 0;
- em28xx_info("Resuming input extension");
+ em28xx_info("Resuming input extension\n");
/* if suspend calls ir_raw_event_unregister(), the should call
ir_raw_event_register() */
if (ir)
--
1.8.3.1
^ permalink raw reply related [flat|nested] 14+ messages in thread
* [PATCH 4/8] [media] em28xx-core: fix missing newlines
2014-12-20 12:44 [PATCH 0/8] Fix issues in em28xx Russell King - ARM Linux
` (2 preceding siblings ...)
2014-12-20 12:45 ` [PATCH 3/8] [media] em28xx-input: fix missing newlines Russell King
@ 2014-12-20 12:45 ` Russell King
2014-12-20 12:45 ` [PATCH 5/8] [media] em28xx-audio: " Russell King
` (5 subsequent siblings)
9 siblings, 0 replies; 14+ messages in thread
From: Russell King @ 2014-12-20 12:45 UTC (permalink / raw)
To: Mauro Carvalho Chehab; +Cc: linux-media
Inspection shows that newlines are missing from several kernel messages
in em28xx-core. Fix these.
Cc: <stable@vger.kernel.org>
Fixes: 9c669b731470 ("[media] em28xx: add suspend/resume to em28xx_ops")
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
---
drivers/media/usb/em28xx/em28xx-core.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/media/usb/em28xx/em28xx-core.c b/drivers/media/usb/em28xx/em28xx-core.c
index 86461a708abe..37456079f490 100644
--- a/drivers/media/usb/em28xx/em28xx-core.c
+++ b/drivers/media/usb/em28xx/em28xx-core.c
@@ -1125,7 +1125,7 @@ int em28xx_suspend_extension(struct em28xx *dev)
{
const struct em28xx_ops *ops = NULL;
- em28xx_info("Suspending extensions");
+ em28xx_info("Suspending extensions\n");
mutex_lock(&em28xx_devlist_mutex);
list_for_each_entry(ops, &em28xx_extension_devlist, next) {
if (ops->suspend)
@@ -1139,7 +1139,7 @@ int em28xx_resume_extension(struct em28xx *dev)
{
const struct em28xx_ops *ops = NULL;
- em28xx_info("Resuming extensions");
+ em28xx_info("Resuming extensions\n");
mutex_lock(&em28xx_devlist_mutex);
list_for_each_entry(ops, &em28xx_extension_devlist, next) {
if (ops->resume)
--
1.8.3.1
^ permalink raw reply related [flat|nested] 14+ messages in thread
* [PATCH 5/8] [media] em28xx-audio: fix missing newlines
2014-12-20 12:44 [PATCH 0/8] Fix issues in em28xx Russell King - ARM Linux
` (3 preceding siblings ...)
2014-12-20 12:45 ` [PATCH 4/8] [media] em28xx-core: " Russell King
@ 2014-12-20 12:45 ` Russell King
2014-12-20 12:45 ` [PATCH 6/8] " Russell King
` (4 subsequent siblings)
9 siblings, 0 replies; 14+ messages in thread
From: Russell King @ 2014-12-20 12:45 UTC (permalink / raw)
To: Mauro Carvalho Chehab; +Cc: linux-media
Inspection shows that newlines are missing from several kernel messages
in em28xx-audio. Fix these.
Cc: <stable@vger.kernel.org>
Fixes: 1b3fd2d34266 ("[media] em28xx-audio: don't hardcode audio URB calculus")
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
---
drivers/media/usb/em28xx/em28xx-audio.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/media/usb/em28xx/em28xx-audio.c b/drivers/media/usb/em28xx/em28xx-audio.c
index 52dc9d70da72..82d58eb3d32a 100644
--- a/drivers/media/usb/em28xx/em28xx-audio.c
+++ b/drivers/media/usb/em28xx/em28xx-audio.c
@@ -820,7 +820,7 @@ static int em28xx_audio_urb_init(struct em28xx *dev)
if (urb_size > ep_size * npackets)
npackets = DIV_ROUND_UP(urb_size, ep_size);
- em28xx_info("Number of URBs: %d, with %d packets and %d size",
+ em28xx_info("Number of URBs: %d, with %d packets and %d size\n",
num_urb, npackets, urb_size);
/* Estimate the bytes per period */
--
1.8.3.1
^ permalink raw reply related [flat|nested] 14+ messages in thread
* [PATCH 6/8] [media] em28xx-audio: fix missing newlines
2014-12-20 12:44 [PATCH 0/8] Fix issues in em28xx Russell King - ARM Linux
` (4 preceding siblings ...)
2014-12-20 12:45 ` [PATCH 5/8] [media] em28xx-audio: " Russell King
@ 2014-12-20 12:45 ` Russell King
2014-12-20 12:45 ` [PATCH 7/8] [media] em28xx-dvb: " Russell King
` (3 subsequent siblings)
9 siblings, 0 replies; 14+ messages in thread
From: Russell King @ 2014-12-20 12:45 UTC (permalink / raw)
To: Mauro Carvalho Chehab; +Cc: linux-media
Inspection shows that newlines are missing from several kernel messages
in em28xx-audio. Fix these.
Cc: <stable@vger.kernel.org>
Fixes: 6d746f91f230 ("[media] em28xx-audio: implement em28xx_ops: suspend/resume hooks")
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
---
drivers/media/usb/em28xx/em28xx-audio.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/media/usb/em28xx/em28xx-audio.c b/drivers/media/usb/em28xx/em28xx-audio.c
index 82d58eb3d32a..49a5f9532bd8 100644
--- a/drivers/media/usb/em28xx/em28xx-audio.c
+++ b/drivers/media/usb/em28xx/em28xx-audio.c
@@ -1005,7 +1005,7 @@ static int em28xx_audio_suspend(struct em28xx *dev)
if (dev->usb_audio_type != EM28XX_USB_AUDIO_VENDOR)
return 0;
- em28xx_info("Suspending audio extension");
+ em28xx_info("Suspending audio extension\n");
em28xx_deinit_isoc_audio(dev);
atomic_set(&dev->adev.stream_started, 0);
return 0;
@@ -1019,7 +1019,7 @@ static int em28xx_audio_resume(struct em28xx *dev)
if (dev->usb_audio_type != EM28XX_USB_AUDIO_VENDOR)
return 0;
- em28xx_info("Resuming audio extension");
+ em28xx_info("Resuming audio extension\n");
/* Nothing to do other than schedule_work() ?? */
schedule_work(&dev->adev.wq_trigger);
return 0;
--
1.8.3.1
^ permalink raw reply related [flat|nested] 14+ messages in thread
* [PATCH 7/8] [media] em28xx-dvb: fix missing newlines
2014-12-20 12:44 [PATCH 0/8] Fix issues in em28xx Russell King - ARM Linux
` (5 preceding siblings ...)
2014-12-20 12:45 ` [PATCH 6/8] " Russell King
@ 2014-12-20 12:45 ` Russell King
2014-12-20 12:45 ` [PATCH 8/8] [media] em28xx-video: " Russell King
` (2 subsequent siblings)
9 siblings, 0 replies; 14+ messages in thread
From: Russell King @ 2014-12-20 12:45 UTC (permalink / raw)
To: Mauro Carvalho Chehab; +Cc: linux-media
Inspection shows that newlines are missing from several kernel messages
in em28xx-dvb. Fix these.
Cc: <stable@vger.kernel.org>
Fixes: ca2b46dacbf5 ("[media] em28xx-dvb: implement em28xx_ops: suspend/resume hooks")
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
---
drivers/media/usb/em28xx/em28xx-dvb.c | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/drivers/media/usb/em28xx/em28xx-dvb.c b/drivers/media/usb/em28xx/em28xx-dvb.c
index 80c384c390e2..aee70d483264 100644
--- a/drivers/media/usb/em28xx/em28xx-dvb.c
+++ b/drivers/media/usb/em28xx/em28xx-dvb.c
@@ -1775,17 +1775,17 @@ static int em28xx_dvb_suspend(struct em28xx *dev)
if (!dev->board.has_dvb)
return 0;
- em28xx_info("Suspending DVB extension");
+ em28xx_info("Suspending DVB extension\n");
if (dev->dvb) {
struct em28xx_dvb *dvb = dev->dvb;
if (dvb->fe[0]) {
ret = dvb_frontend_suspend(dvb->fe[0]);
- em28xx_info("fe0 suspend %d", ret);
+ em28xx_info("fe0 suspend %d\n", ret);
}
if (dvb->fe[1]) {
dvb_frontend_suspend(dvb->fe[1]);
- em28xx_info("fe1 suspend %d", ret);
+ em28xx_info("fe1 suspend %d\n", ret);
}
}
@@ -1802,18 +1802,18 @@ static int em28xx_dvb_resume(struct em28xx *dev)
if (!dev->board.has_dvb)
return 0;
- em28xx_info("Resuming DVB extension");
+ em28xx_info("Resuming DVB extension\n");
if (dev->dvb) {
struct em28xx_dvb *dvb = dev->dvb;
if (dvb->fe[0]) {
ret = dvb_frontend_resume(dvb->fe[0]);
- em28xx_info("fe0 resume %d", ret);
+ em28xx_info("fe0 resume %d\n", ret);
}
if (dvb->fe[1]) {
ret = dvb_frontend_resume(dvb->fe[1]);
- em28xx_info("fe1 resume %d", ret);
+ em28xx_info("fe1 resume %d\n", ret);
}
}
--
1.8.3.1
^ permalink raw reply related [flat|nested] 14+ messages in thread
* [PATCH 8/8] [media] em28xx-video: fix missing newlines
2014-12-20 12:44 [PATCH 0/8] Fix issues in em28xx Russell King - ARM Linux
` (6 preceding siblings ...)
2014-12-20 12:45 ` [PATCH 7/8] [media] em28xx-dvb: " Russell King
@ 2014-12-20 12:45 ` Russell King
2014-12-20 14:10 ` [PATCH 0/8] Fix issues in em28xx Frank Schäfer
2014-12-21 19:20 ` Frank Schäfer
9 siblings, 0 replies; 14+ messages in thread
From: Russell King @ 2014-12-20 12:45 UTC (permalink / raw)
To: Mauro Carvalho Chehab; +Cc: linux-media
Inspection shows that newlines are missing from several kernel messages
in em28xx-video. Fix these.
Cc: <stable@vger.kernel.org>
Fixes: a61f68119af3 ("[media] em28xx-video: implement em28xx_ops: suspend/resume hooks")
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
---
drivers/media/usb/em28xx/em28xx-video.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/media/usb/em28xx/em28xx-video.c b/drivers/media/usb/em28xx/em28xx-video.c
index 3b8c464bf25a..f220c1f376e3 100644
--- a/drivers/media/usb/em28xx/em28xx-video.c
+++ b/drivers/media/usb/em28xx/em28xx-video.c
@@ -2007,7 +2007,7 @@ static int em28xx_v4l2_suspend(struct em28xx *dev)
if (!dev->has_video)
return 0;
- em28xx_info("Suspending video extension");
+ em28xx_info("Suspending video extension\n");
em28xx_stop_urbs(dev);
return 0;
}
@@ -2020,7 +2020,7 @@ static int em28xx_v4l2_resume(struct em28xx *dev)
if (!dev->has_video)
return 0;
- em28xx_info("Resuming video extension");
+ em28xx_info("Resuming video extension\n");
/* what do we do here */
return 0;
}
--
1.8.3.1
^ permalink raw reply related [flat|nested] 14+ messages in thread
* Re: [PATCH 0/8] Fix issues in em28xx
2014-12-20 12:44 [PATCH 0/8] Fix issues in em28xx Russell King - ARM Linux
` (7 preceding siblings ...)
2014-12-20 12:45 ` [PATCH 8/8] [media] em28xx-video: " Russell King
@ 2014-12-20 14:10 ` Frank Schäfer
2014-12-20 14:53 ` Russell King - ARM Linux
2014-12-21 19:20 ` Frank Schäfer
9 siblings, 1 reply; 14+ messages in thread
From: Frank Schäfer @ 2014-12-20 14:10 UTC (permalink / raw)
To: Russell King - ARM Linux, Mauro Carvalho Chehab; +Cc: linux-media
Am 20.12.2014 um 13:44 schrieb Russell King - ARM Linux:
> It isn't clear who is the maintainer for this driver; there is no
> MAINTAINERS entry. If there is a maintainer, please ensure that they
> add themselves to this critical file. Thanks.
(line 3598)
EM28XX VIDEO4LINUX DRIVER
M: Mauro Carvalho Chehab <m.chehab@samsung.com>
L: linux-media@vger.kernel.org
W: http://linuxtv.org
T: git git://linuxtv.org/media_tree.git
S: Maintained
F: drivers/media/usb/em28xx/
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [PATCH 1/8] [media] em28xx: fix em28xx-input removal
[not found] ` <549583AA.9040204@googlemail.com>
@ 2014-12-20 14:51 ` Russell King - ARM Linux
2014-12-21 19:18 ` Frank Schäfer
0 siblings, 1 reply; 14+ messages in thread
From: Russell King - ARM Linux @ 2014-12-20 14:51 UTC (permalink / raw)
To: Frank Schäfer
Cc: Mauro Carvalho Chehab,
linux-media@vger.kernel.org >> Linux Media Mailing List
On Sat, Dec 20, 2014 at 03:11:54PM +0100, Frank Schäfer wrote:
> Hi Russel,
I guess you won't mind if I mis-spell your name too...
> I'd prefer to keep the button initialization related stuff together in
> em28xx_init_buttons() and do the cancel_delayed_work_sync() only if we
> have buttons (dev->num_button_polling_addresses).
> That's how we already do it with the IR work struct (see
> em28xx_ir_suspend()).
Provided all places that touch buttons_query_work are properly updated
that's fine, but to me that is fragile and asking for trouble. It's far
better to ensure that everything is properly initialised so you don't
have to remember to conditionalise every single reference to a work
struct.
In any case, delayed work struct initialisation is cheap - it doesn't
involve any additional memory, it only initialises the various members
of the struct (and the lockdep information for the static key) so there
really is no argument against always initialising delayed works or normal
works, timers, etc to avoid these kinds of bugs.
Anything to keep the code simple is a good thing.
--
FTTC broadband for 0.8mile line: currently at 9.5Mbps down 400kbps up
according to speedtest.net.
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [PATCH 0/8] Fix issues in em28xx
2014-12-20 14:10 ` [PATCH 0/8] Fix issues in em28xx Frank Schäfer
@ 2014-12-20 14:53 ` Russell King - ARM Linux
0 siblings, 0 replies; 14+ messages in thread
From: Russell King - ARM Linux @ 2014-12-20 14:53 UTC (permalink / raw)
To: uli; +Cc: Mauro Carvalho Chehab, linux-media
On Sat, Dec 20, 2014 at 03:10:04PM +0100, Frank Schäfer wrote:
>
> Am 20.12.2014 um 13:44 schrieb Russell King - ARM Linux:
> > It isn't clear who is the maintainer for this driver; there is no
> > MAINTAINERS entry. If there is a maintainer, please ensure that they
> > add themselves to this critical file. Thanks.
>
> (line 3598)
>
> EM28XX VIDEO4LINUX DRIVER
> M: Mauro Carvalho Chehab <m.chehab@samsung.com>
> L: linux-media@vger.kernel.org
> W: http://linuxtv.org
> T: git git://linuxtv.org/media_tree.git
> S: Maintained
> F: drivers/media/usb/em28xx/
That's fine then - I thought my scripts picked Mauro up as the
drivers/media maintainer rather than the driver author.
--
FTTC broadband for 0.8mile line: currently at 9.5Mbps down 400kbps up
according to speedtest.net.
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [PATCH 1/8] [media] em28xx: fix em28xx-input removal
2014-12-20 14:51 ` Russell King - ARM Linux
@ 2014-12-21 19:18 ` Frank Schäfer
0 siblings, 0 replies; 14+ messages in thread
From: Frank Schäfer @ 2014-12-21 19:18 UTC (permalink / raw)
To: Russell King - ARM Linux
Cc: Mauro Carvalho Chehab,
linux-media@vger.kernel.org >> Linux Media Mailing List
Am 20.12.2014 um 15:51 schrieb Russell King - ARM Linux:
> On Sat, Dec 20, 2014 at 03:11:54PM +0100, Frank Schäfer wrote:
>> Hi Russel,
> I guess you won't mind if I mis-spell your name too...
Wow... it seems to be very easy to offend you...
Sorry, that was definitely not my intention. I did not do this on purpose.
It was just a simple mistake and I will try to avoid it in the future.
>
>> I'd prefer to keep the button initialization related stuff together in
>> em28xx_init_buttons() and do the cancel_delayed_work_sync() only if we
>> have buttons (dev->num_button_polling_addresses).
>> That's how we already do it with the IR work struct (see
>> em28xx_ir_suspend()).
> Provided all places that touch buttons_query_work are properly updated
> that's fine, but to me that is fragile and asking for trouble. It's far
> better to ensure that everything is properly initialised so you don't
> have to remember to conditionalise every single reference to a work
> struct.
>
> In any case, delayed work struct initialisation is cheap - it doesn't
> involve any additional memory, it only initialises the various members
> of the struct (and the lockdep information for the static key) so there
> really is no argument against always initialising delayed works or normal
> works, timers, etc to avoid these kinds of bugs.
Fair enough !
Regards,
Frank Schäfer
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [PATCH 0/8] Fix issues in em28xx
2014-12-20 12:44 [PATCH 0/8] Fix issues in em28xx Russell King - ARM Linux
` (8 preceding siblings ...)
2014-12-20 14:10 ` [PATCH 0/8] Fix issues in em28xx Frank Schäfer
@ 2014-12-21 19:20 ` Frank Schäfer
9 siblings, 0 replies; 14+ messages in thread
From: Frank Schäfer @ 2014-12-21 19:20 UTC (permalink / raw)
To: Russell King - ARM Linux, Mauro Carvalho Chehab; +Cc: linux-media
Am 20.12.2014 um 13:44 schrieb Russell King - ARM Linux:
> While testing a PCTV tripleSTICK 292e, a couple of issues were
> discovered. Firstly, disconnecting the device causes a lockdep
> splat, which is addressed in the first patch.
>
> Secondly, a number of kernel messages are missing their terminating
> newline characters, and these are spread over a range of commits and
> a range of kernel versions. Therefore, I've split the fixes up by
> offending commit, which should make backporting to stable trees
> easier. (Some need to be applied to 3.14 and on, some to 3.15 and on,
> etc.)
>
> It isn't clear who is the maintainer for this driver; there is no
> MAINTAINERS entry. If there is a maintainer, please ensure that they
> add themselves to this critical file. Thanks.
>
> drivers/media/usb/em28xx/em28xx-audio.c | 8 ++++----
> drivers/media/usb/em28xx/em28xx-core.c | 4 ++--
> drivers/media/usb/em28xx/em28xx-dvb.c | 14 +++++++-------
> drivers/media/usb/em28xx/em28xx-input.c | 9 ++++-----
> drivers/media/usb/em28xx/em28xx-video.c | 6 +++---
> 5 files changed, 20 insertions(+), 21 deletions(-)
Reviewed-by: Frank Schäfer <fschaefer.oss@googlemail.com>
^ permalink raw reply [flat|nested] 14+ messages in thread
end of thread, other threads:[~2014-12-21 19:20 UTC | newest]
Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-12-20 12:44 [PATCH 0/8] Fix issues in em28xx Russell King - ARM Linux
2014-12-20 12:45 ` [PATCH 1/8] [media] em28xx: fix em28xx-input removal Russell King
[not found] ` <549583AA.9040204@googlemail.com>
2014-12-20 14:51 ` Russell King - ARM Linux
2014-12-21 19:18 ` Frank Schäfer
2014-12-20 12:45 ` [PATCH 2/8] [media] em28xx: ensure "closing" messages terminate with a newline Russell King
2014-12-20 12:45 ` [PATCH 3/8] [media] em28xx-input: fix missing newlines Russell King
2014-12-20 12:45 ` [PATCH 4/8] [media] em28xx-core: " Russell King
2014-12-20 12:45 ` [PATCH 5/8] [media] em28xx-audio: " Russell King
2014-12-20 12:45 ` [PATCH 6/8] " Russell King
2014-12-20 12:45 ` [PATCH 7/8] [media] em28xx-dvb: " Russell King
2014-12-20 12:45 ` [PATCH 8/8] [media] em28xx-video: " Russell King
2014-12-20 14:10 ` [PATCH 0/8] Fix issues in em28xx Frank Schäfer
2014-12-20 14:53 ` Russell King - ARM Linux
2014-12-21 19:20 ` Frank Schäfer
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).