safe/jmp/linux-2.6
14 years agoV4L/DVB (13764): [Mantis CA] SLOT: Add some debug status
Manu Abraham [Fri, 4 Dec 2009 08:23:17 +0000 (05:23 -0300)]
V4L/DVB (13764): [Mantis CA] SLOT: Add some debug status

Signed-off-by: Manu Abraham <manu@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (13763): [Mantis] HIF I/O: trim delays a bit appropriately
Manu Abraham [Fri, 4 Dec 2009 08:22:57 +0000 (05:22 -0300)]
V4L/DVB (13763): [Mantis] HIF I/O: trim delays a bit appropriately

Signed-off-by: Manu Abraham <manu@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (13762): [Mantis CA] CA_MODULE: Look for the module status on driver unload...
Manu Abraham [Fri, 4 Dec 2009 08:22:33 +0000 (05:22 -0300)]
V4L/DVB (13762): [Mantis CA] CA_MODULE: Look for the module status on driver unload as well

Signed-off-by: Manu Abraham <manu@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (13761): [Mantis] HIF I/O: Temporary workaround, use SBUF_OPDONE flag instead
Manu Abraham [Fri, 4 Dec 2009 08:21:51 +0000 (05:21 -0300)]
V4L/DVB (13761): [Mantis] HIF I/O: Temporary workaround, use SBUF_OPDONE flag instead

Dnumgis got hit with this bug, using a temporary workaround
for the time being rather than digging deep at this point.

Signed-off-by: Manu Abraham <manu@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (13760): [Mantis CA] CA_MODULE: Look for module status on driver load
Sigmund Augdal [Fri, 4 Dec 2009 08:21:27 +0000 (05:21 -0300)]
V4L/DVB (13760): [Mantis CA] CA_MODULE: Look for module status on driver load

Signed-off-by: Sigmund Augdal <sigmund@snap.tv>
Signed-off-by: Manu Abraham <manu@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (13759): [Mantis] HIF I/O: Use the LSB octet only
Manu Abraham [Fri, 4 Dec 2009 08:21:05 +0000 (05:21 -0300)]
V4L/DVB (13759): [Mantis] HIF I/O: Use the LSB octet only

Thanks to Abylai Ospan for pointing this out.

Signed-off-by: Manu Abraham <manu@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (13758): [Mantis CA] CAM_CONTROL: Use CAMREADY_IRQ event
Manu Abraham [Fri, 4 Dec 2009 08:20:44 +0000 (05:20 -0300)]
V4L/DVB (13758): [Mantis CA] CAM_CONTROL: Use CAMREADY_IRQ event

Signed-off-by: Manu Abraham <manu@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (13757): [Mantis CA] CAM_CONTROL: Use FRDA_IRQ Events
Manu Abraham [Fri, 4 Dec 2009 08:20:14 +0000 (05:20 -0300)]
V4L/DVB (13757): [Mantis CA] CAM_CONTROL: Use FRDA_IRQ Events

Signed-off-by: Manu Abraham <manu@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (13756): [Mantis CA] CAM_CONTROL: Use CAMCHANGE_IRQ events
Manu Abraham [Fri, 4 Dec 2009 08:19:26 +0000 (05:19 -0300)]
V4L/DVB (13756): [Mantis CA] CAM_CONTROL: Use CAMCHANGE_IRQ events

Signed-off-by: Manu Abraham <manu@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (13755): [Mantis CA] CAM_CONTROL: Use appropriate flags
Manu Abraham [Fri, 4 Dec 2009 08:18:53 +0000 (05:18 -0300)]
V4L/DVB (13755): [Mantis CA] CAM_CONTROL: Use appropriate flags

Signed-off-by: Manu Abraham <manu@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (13754): [Mantis] CAM_CONTROL: Implement TS control
Manu Abraham [Fri, 4 Dec 2009 08:18:27 +0000 (05:18 -0300)]
V4L/DVB (13754): [Mantis] CAM_CONTROL: Implement TS control

Signed-off-by: Manu Abraham <manu@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (13753): [Mantis CA] SLOT_CONTROL: Implement Slot RESET
Manu Abraham [Fri, 4 Dec 2009 08:17:46 +0000 (05:17 -0300)]
V4L/DVB (13753): [Mantis CA] SLOT_CONTROL: Implement Slot RESET

Signed-off-by: Manu Abraham <manu@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (13752): [Mantis CA] CAM_CONTROL: All CAM control operations now handled...
Manu Abraham [Fri, 4 Dec 2009 08:17:14 +0000 (05:17 -0300)]
V4L/DVB (13752): [Mantis CA] CAM_CONTROL: All CAM control operations now handled by the worker thread

Signed-off-by: Manu Abraham <manu@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (13751): [Mantis] GPIO_CONTROL: Do not toggle GPIO CW's on HIF operations
Manu Abraham [Fri, 4 Dec 2009 08:16:24 +0000 (05:16 -0300)]
V4L/DVB (13751): [Mantis] GPIO_CONTROL: Do not toggle GPIO CW's on HIF operations

Signed-off-by: Manu Abraham <manu@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (13750): [Mantis] GPIO_CONTROL: Cache a given GPIO Bit Setup for a given...
Manu Abraham [Fri, 4 Dec 2009 08:15:38 +0000 (05:15 -0300)]
V4L/DVB (13750): [Mantis] GPIO_CONTROL: Cache a given GPIO Bit Setup for a given event

Signed-off-by: Manu Abraham <manu@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (13749): [Mantis CA] CA_SLAVE: Do not change Slave Configuration setup
Manu Abraham [Fri, 4 Dec 2009 08:15:10 +0000 (05:15 -0300)]
V4L/DVB (13749): [Mantis CA] CA_SLAVE: Do not change Slave Configuration setup

(Need to sanitize this cleanly for different Slaves)

Signed-off-by: Manu Abraham <manu@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (13748): [Mantis/VP-2040] Add support for VP-2040 (TDA10023 frontend based)
Magnus Horlin [Fri, 4 Dec 2009 08:14:34 +0000 (05:14 -0300)]
V4L/DVB (13748): [Mantis/VP-2040] Add support for VP-2040 (TDA10023 frontend based)

Signed-off-by: Magnus Horlin <magnus@alefors.se>
Signed-off-by: Manu Abraham <manu@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (13747): [Mantis] Bug Fix!: Use Register Address rather than register field
Sigmund Augdal [Fri, 4 Dec 2009 08:13:21 +0000 (05:13 -0300)]
V4L/DVB (13747): [Mantis] Bug Fix!: Use Register Address rather than register field

Signed-off-by: Sigmund Augdal <sigmund@snap.tv>
Signed-off-by: Manu Abraham <manu@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (13746): [Mantis CA] Bug: Remove duplicated symbol
Manu Abraham [Fri, 4 Dec 2009 08:12:51 +0000 (05:12 -0300)]
V4L/DVB (13746): [Mantis CA] Bug: Remove duplicated symbol

Signed-off-by: Manu Abraham <manu@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (13745): [Mantis CA] Add some debug statements
Manu Abraham [Fri, 4 Dec 2009 08:12:16 +0000 (05:12 -0300)]
V4L/DVB (13745): [Mantis CA] Add some debug statements

Signed-off-by: Manu Abraham <manu@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (13744): [Mantis CA] Use Module status to signal Slot events
Manu Abraham [Fri, 4 Dec 2009 08:11:41 +0000 (05:11 -0300)]
V4L/DVB (13744): [Mantis CA] Use Module status to signal Slot events

Signed-off-by: Manu Abraham <manu@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (13743): [Mantis CA] Use DVB_CA Tuple parser
Manu Abraham [Fri, 4 Dec 2009 08:11:14 +0000 (05:11 -0300)]
V4L/DVB (13743): [Mantis CA] Use DVB_CA Tuple parser

Signed-off-by: Manu Abraham <manu@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (13742): [Mantis] Implement PCMCIA I/O Rd/Wr operations
Manu Abraham [Fri, 4 Dec 2009 08:10:25 +0000 (05:10 -0300)]
V4L/DVB (13742): [Mantis] Implement PCMCIA I/O Rd/Wr operations

Signed-off-by: Manu Abraham <manu@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (13741): [Mantis] Implement HIF Mem Read/Write operations
Manu Abraham [Fri, 4 Dec 2009 08:09:47 +0000 (05:09 -0300)]
V4L/DVB (13741): [Mantis] Implement HIF Mem Read/Write operations

Signed-off-by: Manu Abraham <manu@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (13740): [Mantis] Schedule the work instead of handling the task directly
Manu Abraham [Fri, 4 Dec 2009 08:09:04 +0000 (05:09 -0300)]
V4L/DVB (13740): [Mantis] Schedule the work instead of handling the task directly

Signed-off-by: Manu Abraham <manu@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (13739): [Mantis] Event Manager: Handle Masked events only
Manu Abraham [Fri, 4 Dec 2009 08:08:25 +0000 (05:08 -0300)]
V4L/DVB (13739): [Mantis] Event Manager: Handle Masked events only

Signed-off-by: Manu Abraham <manu@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (13738): [Mantis] Enable IRQ0 events
Manu Abraham [Fri, 4 Dec 2009 08:07:41 +0000 (05:07 -0300)]
V4L/DVB (13738): [Mantis] Enable IRQ0 events

Signed-off-by: Manu Abraham <manu@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (13737): [Mantis] Register the CA device, dummy functions for now
Manu Abraham [Fri, 4 Dec 2009 08:06:38 +0000 (05:06 -0300)]
V4L/DVB (13737): [Mantis] Register the CA device, dummy functions for now

Signed-off-by: Manu Abraham <manu@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (13736): [Mantis] Implement CAM Plug IN and Unplug events
Manu Abraham [Fri, 4 Dec 2009 08:06:00 +0000 (05:06 -0300)]
V4L/DVB (13736): [Mantis] Implement CAM Plug IN and Unplug events

Sigh! how i wish things were simpler ...

Signed-off-by: Manu Abraham <manu@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (13735): [Mantis] Implement the Event Manager tasklet
Manu Abraham [Fri, 4 Dec 2009 08:05:19 +0000 (05:05 -0300)]
V4L/DVB (13735): [Mantis] Implement the Event Manager tasklet

Signed-off-by: Manu Abraham <manu@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (13734): [Mantis] Initial go at an Event Manager
Manu Abraham [Fri, 4 Dec 2009 08:04:18 +0000 (05:04 -0300)]
V4L/DVB (13734): [Mantis] Initial go at an Event Manager

Signed-off-by: Manu Abraham <manu@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (13733): [Mantis] Start with the PCMCIA interface
Manu Abraham [Fri, 4 Dec 2009 08:03:35 +0000 (05:03 -0300)]
V4L/DVB (13733): [Mantis] Start with the PCMCIA interface

Signed-off-by: Manu Abraham <manu@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (13732): [Mantis] Add in some Link Layer definitions
Manu Abraham [Fri, 4 Dec 2009 08:00:30 +0000 (05:00 -0300)]
V4L/DVB (13732): [Mantis] Add in some Link Layer definitions

Signed-off-by: Manu Abraham <manu@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (13731): [Mantis] Add in a license header
Manu Abraham [Fri, 4 Dec 2009 07:59:44 +0000 (04:59 -0300)]
V4L/DVB (13731): [Mantis] Add in a license header

Signed-off-by: Manu Abraham <manu@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (13730): [Mantis] Add in some UART definitions
Manu Abraham [Fri, 4 Dec 2009 07:59:05 +0000 (04:59 -0300)]
V4L/DVB (13730): [Mantis] Add in some UART definitions

Signed-off-by: Manu Abraham <manu@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (13729): [Mantis] Add in a license header
Manu Abraham [Fri, 4 Dec 2009 07:53:07 +0000 (04:53 -0300)]
V4L/DVB (13729): [Mantis] Add in a license header

Signed-off-by: Manu Abraham <manu@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (13728): [Mantis] Add in some Host Interface definitions
Manu Abraham [Fri, 4 Dec 2009 07:52:23 +0000 (04:52 -0300)]
V4L/DVB (13728): [Mantis] Add in some Host Interface definitions

Signed-off-by: Manu Abraham <manu@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (13727): [Mantis/VP-1041] Bugfix: Sigh! Don't look for the STOP bit
Manu Abraham [Fri, 4 Dec 2009 07:48:03 +0000 (04:48 -0300)]
V4L/DVB (13727): [Mantis/VP-1041] Bugfix: Sigh! Don't look for the STOP bit

Signed-off-by: Manu Abraham <manu@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (13726): [Mantis/Skystar HD2] Add support for the Technisat Skystar HD2
Manu Abraham [Fri, 4 Dec 2009 07:47:30 +0000 (04:47 -0300)]
V4L/DVB (13726): [Mantis/Skystar HD2] Add support for the Technisat Skystar HD2

Signed-off-by: Manu Abraham <manu@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (13725): [Mantis/VP-1041] Revert to old register initialization parameters...
Manu Abraham [Fri, 4 Dec 2009 07:44:55 +0000 (04:44 -0300)]
V4L/DVB (13725): [Mantis/VP-1041] Revert to old register initialization parameters, for now.

Thanks to eso46 for pointing it out

Signed-off-by: Manu Abraham <manu@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (13724): [Mantis/VP-1041] Initial support for Mantis VP-1041
Manu Abraham [Fri, 4 Dec 2009 07:43:04 +0000 (04:43 -0300)]
V4L/DVB (13724): [Mantis/VP-1041] Initial support for Mantis VP-1041

Signed-off-by: Manu Abraham <manu@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (13723): [Mantis/VP-2040, Terratec Cinergy C] Add support for the Cinergy...
Manu Abraham [Fri, 4 Dec 2009 07:42:22 +0000 (04:42 -0300)]
V4L/DVB (13723): [Mantis/VP-2040, Terratec Cinergy C] Add support for the Cinergy C, VP-2040 clone

Signed-off-by: Manu Abraham <manu@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (13722): [Mantis] Revert 13560
Manu Abraham [Fri, 4 Dec 2009 07:40:50 +0000 (04:40 -0300)]
V4L/DVB (13722): [Mantis] Revert 13560

Signed-off-by: Manu Abraham <manu@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (13721): [Mantis] Bug! Before bailing out, Unlock
Manu Abraham [Fri, 4 Dec 2009 07:40:16 +0000 (04:40 -0300)]
V4L/DVB (13721): [Mantis] Bug! Before bailing out, Unlock

Thanks to hotwings <user.vdr@gmail.com> for pointing out the bug

Signed-off-by: Manu Abraham <manu@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (13720): [Mantis/Terratec Cinergy C] Add support for the Terratec Cinergy...
Manu Abraham [Fri, 4 Dec 2009 07:39:48 +0000 (04:39 -0300)]
V4L/DVB (13720): [Mantis/Terratec Cinergy C] Add support for the Terratec Cinergy C PCI

Signed-off-by: Manu Abraham <manu@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (13719): [Mantis/VP-2033] Initial test switch to the tda10021, from the cu1216
Manu Abraham [Fri, 4 Dec 2009 07:39:14 +0000 (04:39 -0300)]
V4L/DVB (13719): [Mantis/VP-2033] Initial test switch to the tda10021, from the cu1216

Signed-off-by: Manu Abraham <manu@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (13718): [Mantis] Use gpio_set_bits to turn OFF the bits as well
Marko Ristola [Fri, 4 Dec 2009 07:35:35 +0000 (04:35 -0300)]
V4L/DVB (13718): [Mantis] Use gpio_set_bits to turn OFF the bits as well

Signed-off-by: Marko Ristola <marko.ristola@kolumbus.fi>
Signed-off-by: Manu Abraham <manu@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (13717): [MB86A16] Statistics Updates
Manu Abraham [Thu, 3 Dec 2009 08:48:13 +0000 (05:48 -0300)]
V4L/DVB (13717): [MB86A16] Statistics Updates

* Demodulator status check made reliable
* Code simplification for Viterbi Sync check, makes
  acquisition more reliable

* Implement a BER monitor
* Implement a Signal strength monitor
* Implement a "simple" UCB monitor, no real UCB monitor

Signed-off-by: Manu Abraham <manu@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (13716): [Mantis] Bug: incorrect byte swap
David Woodhouse [Thu, 3 Dec 2009 08:47:11 +0000 (05:47 -0300)]
V4L/DVB (13716): [Mantis] Bug: incorrect byte swap

You know, the worst endianness errors are not the cases where
people forget to byte-swap, but the cases where they either byte-swap
with the wrong size, or byte-swap when they shouldn't have done so at
all. Those ones defeat the casual reader of the code.

Signed-off-by: David Woodhouse <dwmw2@infradead.org>
Signed-off-by: Manu Abraham <manu@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (13715): [Mantis] Kernel I2C changes: use PCI parent device
Manu Abraham [Thu, 3 Dec 2009 08:46:06 +0000 (05:46 -0300)]
V4L/DVB (13715): [Mantis] Kernel I2C changes: use PCI parent device

Signed-off-by: Manu Abraham <manu@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (13714): [MB86A16] FIX/Code simplification: use hwconfig->ts_size instead...
Manu Abraham [Thu, 3 Dec 2009 08:44:38 +0000 (05:44 -0300)]
V4L/DVB (13714): [MB86A16] FIX/Code simplification: use hwconfig->ts_size instead of ts_size

thanks to Marko Ristola for pointing it out

Signed-off-by: Manu Abraham <manu@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (13713): [MB86A16] Fix: Initialize SNR/STATUS
Sigmund Augdal [Thu, 3 Dec 2009 08:44:00 +0000 (05:44 -0300)]
V4L/DVB (13713): [MB86A16] Fix: Initialize SNR/STATUS

Signed-off-by: Sigmund Augdal <sigmund@snap.tv>
Signed-off-by: Manu Abraham <manu@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (13712): [Mantis] Add locking for concurrent access
Manu Abraham [Thu, 3 Dec 2009 08:42:10 +0000 (05:42 -0300)]
V4L/DVB (13712): [Mantis] Add locking for concurrent access

Signed-off-by: Manu Abraham <manu@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (13711): [Mantis] FIX: Do nor toggle GPIF status
Marko Ristola [Thu, 3 Dec 2009 08:39:22 +0000 (05:39 -0300)]
V4L/DVB (13711): [Mantis] FIX: Do nor toggle GPIF status

Signed-off-by: Marko Ristola <marko.ristola@kolumbus.fi>
Signed-off-by: Manu Abraham <manu@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (13710): [Mantis] FIX: Use swfilter (188/204) accordingly
Manu Abraham [Thu, 3 Dec 2009 08:38:33 +0000 (05:38 -0300)]
V4L/DVB (13710): [Mantis] FIX: Use swfilter (188/204) accordingly

Signed-off-by: Manu Abraham <manu@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (13709): [Mantis/VP-1034] Switch 13/18v for the VP-1034 properly
Manu Abraham [Thu, 3 Dec 2009 08:37:51 +0000 (05:37 -0300)]
V4L/DVB (13709): [Mantis/VP-1034] Switch 13/18v for the VP-1034 properly

Signed-off-by: Manu Abraham <manu@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (13708): [Mantis] Remove some dead code
Manu Abraham [Thu, 3 Dec 2009 01:11:00 +0000 (22:11 -0300)]
V4L/DVB (13708): [Mantis] Remove some dead code

Signed-off-by: Manu Abraham <manu@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (13707): [Mantis] Whitespace cleanup
Manu Abraham [Thu, 3 Dec 2009 01:09:53 +0000 (22:09 -0300)]
V4L/DVB (13707): [Mantis] Whitespace cleanup

Signed-off-by: Manu Abraham <manu@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (13706): [MB86A16] Overhaul
Manu Abraham [Thu, 3 Dec 2009 01:07:24 +0000 (22:07 -0300)]
V4L/DVB (13706): [MB86A16] Overhaul

 * better ISR handling
 * I2C fixes
 * better handling of configurations

Signed-off-by: Manu Abraham <manu@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (13705): [Mantis] FIX: Do not return IRQ_HANDLED in the unlikely case
Manu Abraham [Thu, 3 Dec 2009 01:06:15 +0000 (22:06 -0300)]
V4L/DVB (13705): [Mantis] FIX: Do not return IRQ_HANDLED in the unlikely case

Signed-off-by: Manu Abraham <manu@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (13704): [MB86A16] FIX: Don't loop again, if we have SYNC
Manu Abraham [Thu, 3 Dec 2009 01:02:19 +0000 (22:02 -0300)]
V4L/DVB (13704): [MB86A16] FIX: Don't loop again, if we have SYNC

Signed-off-by: Manu Abraham <manu@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (13703): [MB86A16] Fix wrong message printed out
Manu Abraham [Thu, 3 Dec 2009 01:01:39 +0000 (22:01 -0300)]
V4L/DVB (13703): [MB86A16] Fix wrong message printed out

Signed-off-by: Manu Abraham <manu@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (13702): [MB86A16] need to wait a bit more than the computed time for a Facto...
Manu Abraham [Thu, 3 Dec 2009 01:00:50 +0000 (22:00 -0300)]
V4L/DVB (13702): [MB86A16] need to wait a bit more than the computed time for a Factor of safety

Signed-off-by: Manu Abraham <manu@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (13701): [MB86A16] Reduce Carrier Recovery range to 3Mhz
Manu Abraham [Thu, 3 Dec 2009 00:59:20 +0000 (21:59 -0300)]
V4L/DVB (13701): [MB86A16] Reduce Carrier Recovery range to 3Mhz

Signed-off-by: Manu Abraham <manu@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (13700): [MB86A16] Need a bit of settling time
Manu Abraham [Thu, 3 Dec 2009 00:58:38 +0000 (21:58 -0300)]
V4L/DVB (13700): [MB86A16] Need a bit of settling time

Signed-off-by: Manu Abraham <manu@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (13699): [Mantis, MB86A16] Initial checkin: Mantis, MB86A16
Manu Abraham [Thu, 3 Dec 2009 00:57:10 +0000 (21:57 -0300)]
V4L/DVB (13699): [Mantis, MB86A16] Initial checkin: Mantis, MB86A16

Signed-off-by: Manu Abraham <manu@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (13966): DVB-T regression fix for saa7134 cards
Dmitri Belimov [Fri, 8 Jan 2010 09:38:28 +0000 (06:38 -0300)]
V4L/DVB (13966): DVB-T regression fix for saa7134 cards

Some customers has problem with quality of DVB-T
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/446575

After this patch http://patchwork.kernel.org/patch/23345/

This is patch for fix regression with DVB-T. Tested with many people.

Signed-off-by: Alexey Osipov <lion-simba@pridelands.ru>
Signed-off-by: Beholder Intl. Ltd. Dmitry Belimov <d.belimov@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (13955): cx25821: fix double unlock in medusa_video_init()
Dan Carpenter [Mon, 28 Dec 2009 16:59:46 +0000 (13:59 -0300)]
V4L/DVB (13955): cx25821: fix double unlock in medusa_video_init()

medusa_set_videostandard() takes the lock but it always drops it before
returning.

This was found with a static checker and compile tested only.  :/

Signed-off-by: Dan Carpenter <error27@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoMAINTAINERS: ivtv-devel is moderated
Jiri Slaby [Wed, 13 Jan 2010 21:39:16 +0000 (19:39 -0200)]
MAINTAINERS: ivtv-devel is moderated

Mark ivtv-devel@ivtvdriver.org as 'moderated for non-subscribers'.

Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Acked-by: Andy Walls <awalls@radix.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoMAINTAINERS: Andy Walls is the new ivtv maintainer
Hans Verkuil [Wed, 13 Jan 2010 18:56:48 +0000 (16:56 -0200)]
MAINTAINERS: Andy Walls is the new ivtv maintainer

Replaces Hans Verkuil by Andy Walls as the ivtv maintainer.

After 4 1/2 years, Hans decided to hand over the ivtv driver to Andy.
Andy was already doing more work on ivtv than him, so this just makes
official what was happening in practice.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Andy Walls <awalls@radix.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (13941): rj54n1cb0c: remove compiler warning
Márton Németh [Sat, 9 Jan 2010 23:45:59 +0000 (20:45 -0300)]
V4L/DVB (13941): rj54n1cb0c: remove compiler warning

Remove the following compiler warning: 'dummy' is used uninitialized in this function.
Although the result in the dummy variable is not used the program flow in
soc_camera_limit_side() depends on the value in dummy. The program flow is better
to be deterministic.

Signed-off-by: Márton Németh <nm127@freemail.hu>
Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB sh_mobile_ceu: don't check platform_get_irq's return value against zero
Uwe Kleine-König [Sat, 9 Jan 2010 23:45:13 +0000 (20:45 -0300)]
V4L/DVB sh_mobile_ceu: don't check platform_get_irq's return value against zero

platform_get_irq returns -ENXIO on failure, so !irq was probably
always true.  Better use (int)irq <= 0.  Note that a return value of
zero is still handled as error even though this could mean irq0.

This is a followup to 305b3228f9ff4d59f49e6d34a7034d44ee8ce2f0 that
changed the return value of platform_get_irq from 0 to -ENXIO on error.

Cc: David Vrabel <dvrabel@arcom.com>
Cc: Greg Kroah-Hartman <gregkh@suse.de>
Cc: Mauro Carvalho Chehab <mchehab@infradead.org>
Cc: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Cc: Magnus Damm <damm@igel.co.jp>
Cc: Kuninori Morimoto <morimoto.kuninori@renesas.com>
Cc: Paul Mundt <lethal@linux-sh.org>
Cc: linux-media@vger.kernel.org
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB mx1_camera: don't check platform_get_irq's return value against zero
Uwe Kleine-König [Sat, 9 Jan 2010 23:44:06 +0000 (20:44 -0300)]
V4L/DVB mx1_camera: don't check platform_get_irq's return value against zero

platform_get_irq returns -ENXIO on failure, so !irq was probably
always true.  Better use (int)irq <= 0.  Note that a return value of
zero is still handled as error even though this could mean irq0.

This is a followup to 305b3228f9ff4d59f49e6d34a7034d44ee8ce2f0 that
changed the return value of platform_get_irq from 0 to -ENXIO on error.

Cc: David Vrabel <dvrabel@arcom.com>
Cc: Greg Kroah-Hartman <gregkh@suse.de>
Cc: Mauro Carvalho Chehab <mchehab@infradead.org>
Cc: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Cc: Antonio Ospite <ospite@studenti.unina.it>
Cc: Paulius Zaleckas <paulius.zaleckas@teltonika.lt>
Cc: linux-media@vger.kernel.org
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (13934): tda8290: Fix FM radio easy programming standard selection for TDA8295
Michael Krufky [Sun, 10 Jan 2010 21:13:33 +0000 (18:13 -0300)]
V4L/DVB (13934): tda8290: Fix FM radio easy programming standard selection for TDA8295

Signed-off-by: Michael Krufky <mkrufky@kernellabs.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (13900): gspca - sunplus: Fix bridge exchanges.
Jean-Francois Moine [Sun, 10 Jan 2010 07:32:11 +0000 (04:32 -0300)]
V4L/DVB (13900): gspca - sunplus: Fix bridge exchanges.

A previous code optimization inverted bridge registers and values,
doing a regression in kernel  2.6.32.

Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
CC: stable@kernel.org
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (13887): tda8290: add autodetection support for TDA8295c2
Michael Krufky [Thu, 31 Dec 2009 07:32:29 +0000 (04:32 -0300)]
V4L/DVB (13887): tda8290: add autodetection support for TDA8295c2

Signed-off-by: Michael Krufky <mkrufky@kernellabs.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (13882): gspca - stv06xx-vv6410: Ensure register STV_SCAN_RATE is zero
Erik Andrén [Sat, 26 Dec 2009 21:57:21 +0000 (18:57 -0300)]
V4L/DVB (13882): gspca - stv06xx-vv6410: Ensure register STV_SCAN_RATE is zero

The Quickcam Web camera would not produce an image if you removed and inserted the module multiple times without physically power cycling the camera first.
By writing zero to bridge register STV_SCAN_RATE (0x1443) the camera works as intended, regardless of the number of module insertions.

Signed-off-by: Erik Andrén <erik.andren@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (13880): gspca - m5602-s5k4aa: Add vflip quirk for the Amilo Xi 2428
Erik Andren [Wed, 11 Nov 2009 10:45:37 +0000 (07:45 -0300)]
V4L/DVB (13880): gspca - m5602-s5k4aa: Add vflip quirk for the Amilo Xi 2428

Add a vflip quirk for the Fujitsu-Siemens Amilo Xi 2428. Thanks to Myroslav Zapukhlyak for reporting.

Signed-off-by: Erik Andren <erik.andren@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (13875): gspca - vc032x: Fix a possible crash with the vc0321 bridge.
Jean-Francois Moine [Sat, 26 Dec 2009 11:41:17 +0000 (08:41 -0300)]
V4L/DVB (13875): gspca - vc032x: Fix a possible crash with the vc0321 bridge.

The frame pointer returned by get_i_frame may be NULL when the application
is too slow.

Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (13868): gspca - sn9c20x: Fix test of unsigned.
Roel Kluin [Fri, 18 Dec 2009 15:22:43 +0000 (12:22 -0300)]
V4L/DVB (13868): gspca - sn9c20x: Fix test of unsigned.

Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
CC: stable@kernel.org
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (13858): ir-keytable: use the right header
Mauro Carvalho Chehab [Tue, 29 Dec 2009 13:37:38 +0000 (10:37 -0300)]
V4L/DVB (13858): ir-keytable: use the right header

We don't need linux/usb/input.h but, instead, linux/input.h

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agofeature-removal-schedule: Add v4l1 drivers obsoleted by gspca sub drivers
Hans de Goede [Mon, 11 Jan 2010 12:50:53 +0000 (10:50 -0200)]
feature-removal-schedule: Add v4l1 drivers obsoleted by gspca sub drivers

This patch adds the ov511, quickcam_messenger, w9968cf, stv680 and ovcamchip
v4l1 drivers to the feature removal schedule as the devices they support
are now all also supported by v4l2 gspca sub drivers.

This patch also adds the v4l2 vc0301 driver for removal as it duplicates
functionality of the gspca_zc3xx driver, zc0301 only supports 2 USB-ID's
(because it only supports a limited set of sensors) wich are also
supported
by the gspca_zc3xx driver (which supports 53 USB-ID's in total).

[mchehab@redhat.com: change "when" to 2.6.35]

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (13622): gspca - ov534: Fix a compilation warning.
Jean-Francois Moine [Thu, 10 Dec 2009 16:21:59 +0000 (13:21 -0300)]
V4L/DVB (13622): gspca - ov534: Fix a compilation warning.

This warning prevented the sharpness setting to work with the ov965x sensor.

Reported-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (13834): dib8000: fix compilation if !DVB_DIB8000
Mauro Carvalho Chehab [Fri, 18 Dec 2009 10:47:44 +0000 (07:47 -0300)]
V4L/DVB (13834): dib8000: fix compilation if !DVB_DIB8000

As reported by Randy Dunlap <randy.dunlap@oracle.com>:
> drivers/media/dvb/frontends/dib8000.h:104: error: expected expression before '}' token
> drivers/media/dvb/frontends/dib8000.h:104: warning: left-hand operand of comma expression has no effect
>
>     return CT_SHUTDOWN,
>
> s/,/;/ and fix indentation.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (13831): uvcvideo: Fix oops caused by a race condition in buffer dequeuing
Laurent Pinchart [Thu, 17 Dec 2009 00:20:45 +0000 (21:20 -0300)]
V4L/DVB (13831): uvcvideo: Fix oops caused by a race condition in buffer dequeuing

Buffers were marked as done before being removed from the IRQ queue. If
a userspace application dequeued and requeued the buffer fast enough
during that time window, the buffer could end up being deleted twice,
generating an oops in interrupt context.

Add a new state, UVC_BUF_STATE_READY, to mark buffers as ready for reuse
but not yet removed from the queue, and transition to UVC_BUF_STATE_DONE
only when the buffer is removed from the queue.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (13829): uvcvideo: Fix alternate setting selection in isochronous mode
Laurent Pinchart [Fri, 11 Dec 2009 00:19:31 +0000 (21:19 -0300)]
V4L/DVB (13829): uvcvideo: Fix alternate setting selection in isochronous mode

Unlike assumed by the driver, alternate settings are not sorted by
endpoint max packet size. Iterate over all alternate settings to find
the one with the smallest compatible max packet size.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (13826): uvcvideo: Fix controls blacklisting
Laurent Pinchart [Thu, 10 Dec 2009 01:31:21 +0000 (22:31 -0300)]
V4L/DVB (13826): uvcvideo: Fix controls blacklisting

The control blacklisting code erroneously used usb_match_id() by passing
a pointer to a usb_device_id structure instead of an array of such
structures.

Replace the usb_match_id() call by usb_match_id_one().

Thanks to Paulo Assis for diagnosing the bug and providing an initial
fix.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (13820): lgdt3305: make one-bit bitfields unsigned
Nemeth Marton [Tue, 15 Dec 2009 22:28:35 +0000 (19:28 -0300)]
V4L/DVB (13820): lgdt3305: make one-bit bitfields unsigned

Make one-bit bitfields unsigned which will remove the following
sparse warning messages (see "make C=1"):
 * lgdt3305.h:57:21: error: dubious one-bit signed bitfield
 * lgdt3305.h:60:26: error: dubious one-bit signed bitfield
 * lgdt3305.h:63:19: error: dubious one-bit signed bitfield

Signed-off-by: Nemeth Marton <nm127@freemail.hu>
Signed-off-by: Michael Krufky <mkrufky@kernellabs.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (13816): gspca - main: Set the current frame pointer when first qbuf.
Jean-Francois Moine [Mon, 14 Dec 2009 17:57:49 +0000 (14:57 -0300)]
V4L/DVB (13816): gspca - main: Set the current frame pointer when first qbuf.

When not set, some images could be lost.

Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoALSA: hda - Fix capture on Sony VAIO with single input
Takashi Iwai [Sun, 17 Jan 2010 12:09:33 +0000 (13:09 +0100)]
ALSA: hda - Fix capture on Sony VAIO with single input

Sony VAIO VGN-P11G with ALC262 codec has only one input pin, and the
recording doesn't work with model=auto because ALC262 parser sets the
wrong cap NIDs to choose the route and the default route for the sole
input pin wasn't initialized properly.  This patch solves these issues.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
14 years agohw-breakpoints, perf: Fix broken mmiotrace due to dr6 by reference change
Luca Barbieri [Sat, 16 Jan 2010 09:39:30 +0000 (10:39 +0100)]
hw-breakpoints, perf: Fix broken mmiotrace due to dr6 by reference change

Commit 62edab9056a6cf0c9207339c8892c923a5217e45 (from June 2009
but merged in 2.6.33) changes notify_die to pass dr6 by
reference.

However, it forgets to fix the check for DR_STEP in kmmio.c,
breaking mmiotrace. It also passes a wrong value to the post
handler.

This simple fix makes mmiotrace work again.

Signed-off-by: Luca Barbieri <luca@luca-barbieri.com>
Acked-by: K.Prasad <prasad@linux.vnet.ibm.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
LKML-Reference: <1263634770-14578-1-git-send-email-luca@luca-barbieri.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
14 years agoperf timechart: Use tid not pid for COMM change
Arjan van de Ven [Sat, 16 Jan 2010 20:53:19 +0000 (12:53 -0800)]
perf timechart: Use tid not pid for COMM change

A process that changes its comm field, does this on a per kernel
task struct basis. The timechart tool used, incorrectly, the pid
to track this, and should have used the tid instead...

Signed-off-by: Arjan van de Ven <arjan@linux.intel.com>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
CC: <stable@kernel.org>
LKML-Reference: <20100116125319.34ac3edd@infradead.org>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
14 years agopage allocator: update NR_FREE_PAGES only when necessary
KOSAKI Motohiro [Sat, 16 Jan 2010 01:01:18 +0000 (17:01 -0800)]
page allocator: update NR_FREE_PAGES only when necessary

commit f2260e6b (page allocator: update NR_FREE_PAGES only as necessary)
made one minor regression.  if __rmqueue() was failed, NR_FREE_PAGES stat
go wrong.  this patch fixes it.

Signed-off-by: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>
Cc: Mel Gorman <mel@csn.ul.ie>
Reviewed-by: Minchan Kim <minchan.kim@gmail.com>
Reported-by: Huang Shijie <shijie8@gmail.com>
Reviewed-by: Christoph Lameter <cl@linux-foundation.org>
Cc: <stable@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
14 years agoACPI: Fix unused variable warning in sbs.c
Rakib Mullick [Sun, 3 Jan 2010 13:27:56 +0000 (19:27 +0600)]
ACPI: Fix unused variable warning in sbs.c

When CONFIG_ACPI_SYSFS_POWER=n and CONFIG_ACPI_PROCFS_POWER=n, then
we're warned by the following warning:

drivers/acpi/sbs.c: In function `acpi_battery_remove':
drivers/acpi/sbs.c:825: warning: unused variable `battery'

Signed-off-by: Rakib Mullick <rakib.mullick@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Len Brown <len.brown@intel.com>
14 years agoacpi: make ACPI device id constant
Márton Németh [Sun, 10 Jan 2010 16:15:36 +0000 (17:15 +0100)]
acpi: make ACPI device id constant

The ids field of the struct acpi_driver is constant in <linux/acpi/acpi_bus.h>
so it is worth to make the initialization data also constant.

The semantic match that finds this kind of pattern is as follows:
(http://coccinelle.lip6.fr/)

// <smpl>
@r@
disable decl_init,const_decl_init;
identifier I1, I2, x;
@@
struct I1 {
  ...
  const struct I2 *x;
  ...
};
@s@
identifier r.I1, y;
identifier r.x, E;
@@
struct I1 y = {
  .x = E,
};
@c@
identifier r.I2;
identifier s.E;
@@
const struct I2 E[] = ... ;
@depends on !c@
identifier r.I2;
identifier s.E;
@@
+ const
struct I2 E[] = ...;
// </smpl>

Signed-off-by: Márton Németh <nm127@freemail.hu>
Cc: Julia Lawall <julia@diku.dk>
Cc: cocci@diku.dk
Signed-off-by: Len Brown <len.brown@intel.com>
14 years agosony-laptop - fix using of uninitialized variable
Dmitry Torokhov [Sun, 10 Jan 2010 08:15:44 +0000 (00:15 -0800)]
sony-laptop - fix using of uninitialized variable

CC [M]  drivers/platform/x86/sony-laptop.o
drivers/platform/x86/sony-laptop.c: In function 'sony_nc_rfkill_setup':
drivers/platform/x86/sony-laptop.c:1162: warning: 'i' may be used uninitialized in this function

Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
Acked-by: Mattia Dongili <malattia@linux.it>
Signed-off-by: Len Brown <len.brown@intel.com>
14 years agoMerge branch 'i2c-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jdelvar...
Linus Torvalds [Sat, 16 Jan 2010 20:34:56 +0000 (12:34 -0800)]
Merge branch 'i2c-for-linus' of git://git./linux/kernel/git/jdelvare/staging

* 'i2c-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jdelvare/staging:
  i2c: Do not use device name after device_unregister
  i2c/pca: Don't use *_interruptible
  i2c-ali1563: Remove sparse warnings
  i2c: Test off by one in {piix4,vt596}_transaction()
  i2c-core: Storage class should be before const qualifier

14 years agoMerge branch 'x86-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git...
Linus Torvalds [Sat, 16 Jan 2010 20:31:42 +0000 (12:31 -0800)]
Merge branch 'x86-fixes-for-linus' of git://git./linux/kernel/git/tip/linux-2.6-tip

* 'x86-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip:
  x86, uv: Ensure hub revision set for all ACPI modes.
  x86, uv: Add function retrieving node controller revision number
  x86: xen: 64-bit kernel RPL should be 0
  x86: kernel_thread() -- initialize SS to a known state
  x86/agp: Fix agp_amd64_init and agp_amd64_cleanup
  x86: SGI UV: Fix mapping of MMIO registers
  x86: mce.h: Fix warning in header checks

14 years agoMerge branch 'core-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel...
Linus Torvalds [Sat, 16 Jan 2010 20:31:30 +0000 (12:31 -0800)]
Merge branch 'core-fixes-for-linus' of git://git./linux/kernel/git/tip/linux-2.6-tip

* 'core-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip:
  futexes: Remove rw parameter from get_futex_key()

14 years agoMerge branch 'perf-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel...
Linus Torvalds [Sat, 16 Jan 2010 20:27:47 +0000 (12:27 -0800)]
Merge branch 'perf-fixes-for-linus' of git://git./linux/kernel/git/tip/linux-2.6-tip

* 'perf-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip:
  perf tools: Check if /dev/null can be used as the -o gcc argument
  perf tools: Move QUIET_STDERR def to before first use
  perf: Stop stack frame walking off kernel addresses boundaries