Re: [PATCH 0/3] em28xx: clean up end extend the GPIO port handling

2013-04-13 Thread Mauro Carvalho Chehab
Em Sat, 13 Apr 2013 17:37:26 +0300 Antti Palosaari escreveu: > On 04/13/2013 05:25 PM, Mauro Carvalho Chehab wrote: > > Em Sat, 13 Apr 2013 16:15:39 +0300 > > Antti Palosaari escreveu: > > > >> On 04/13/2013 12:48 PM, Frank Schäfer wrote: > >>> Patch 1 removes the unneeded and broken gpio regist

[PATCH] [media] cx88: Fix unsafe locking in suspend-resume

2013-04-13 Thread Alexey Khoroshilov
Legacy PCI suspend-resume handlers are called with interrupts enabled. But cx8800_suspend/cx8800_resume and cx8802_suspend_common/cx8802_resume_common use spin_lock/spin_unlock functions to acquire dev->slock, while the same lock is acquired in the corresponding irq-handlers: cx8800_irq and cx8802

Re: [PATCH v9 15/20] sh-mobile-ceu-driver: support max width and height in DT

2013-04-13 Thread Sergei Shtylyov
Hello. On 12-04-2013 19:40, Guennadi Liakhovetski wrote: Some CEU implementations have non-standard (larger) maximum supported width and height values. Add two OF properties to specify them. Signed-off-by: Guennadi Liakhovetski Minor grammar nitpicking. diff --git a/Documentation/dev

Re: [PATCH 6/7] backports: add media subsystem drivers

2013-04-13 Thread Johannes Berg
On Sat, 2013-04-13 at 07:13 -0700, Luis R. Rodriguez wrote: > From: "Luis R. Rodriguez" > > This adds backport support for all media subsystem > drivers. This is enabled only for >= 3.2. Some media > drivers rely on the new probe deferrral mechanism > (-EPROBE_DEFER see commit d1c3414c), those ar

Re: [PATCH RFC v6] [media] Add common video interfaces OF bindings documentation

2013-04-13 Thread Grant Likely
On Wed, 20 Mar 2013 17:19:53 +0100, Sylwester Nawrocki wrote: > On 01/31/2013 07:41 PM, Sylwester Nawrocki wrote: > > From: Guennadi Liakhovetski > > > > This patch adds a document describing common OF bindings for video > > capture, output and video processing devices. It is curently mainly >

Re: [PATCH 1/3] em28xx: give up GPIO register tracking/caching

2013-04-13 Thread Frank Schäfer
Am 13.04.2013 20:19, schrieb Frank Schäfer: > Am 13.04.2013 19:46, schrieb Frank Schäfer: >> ... >> We always write to the GPIO register. That's why these functions are >> called em28xx_write_* ;) >> Whether the write operation is sane or not (e.g. because it modifies the >> bit corresponding to an

cron job: media_tree daily build: WARNINGS

2013-04-13 Thread Hans Verkuil
This message is generated daily by a cron job that builds media_tree for the kernels and architectures in the list below. Results of the daily build of media_tree: date: Sat Apr 13 19:00:18 CEST 2013 git branch: test git hash: 81e096c8ac6a064854c2157e0bf802dc4906678c gcc versi

Re: [PATCH 1/3] em28xx: give up GPIO register tracking/caching

2013-04-13 Thread Frank Schäfer
Am 13.04.2013 19:46, schrieb Frank Schäfer: > Am 13.04.2013 19:04, schrieb Mauro Carvalho Chehab: >> Em Sat, 13 Apr 2013 17:33:28 +0200 >> Frank Schäfer escreveu: >> >>> Am 13.04.2013 16:41, schrieb Mauro Carvalho Chehab: Em Sat, 13 Apr 2013 11:48:39 +0200 Frank Schäfer escreveu: >

Re: [PATCH 1/3] em28xx: give up GPIO register tracking/caching

2013-04-13 Thread Mauro Carvalho Chehab
Em Sat, 13 Apr 2013 19:46:20 +0200 Frank Schäfer escreveu: > Am 13.04.2013 19:04, schrieb Mauro Carvalho Chehab: > > Em Sat, 13 Apr 2013 17:33:28 +0200 > > Frank Schäfer escreveu: > > > >> Am 13.04.2013 16:41, schrieb Mauro Carvalho Chehab: > >>> Em Sat, 13 Apr 2013 11:48:39 +0200 > >>> Frank Sc

Re: [PATCH 1/3] em28xx: give up GPIO register tracking/caching

2013-04-13 Thread Frank Schäfer
Am 13.04.2013 19:04, schrieb Mauro Carvalho Chehab: > Em Sat, 13 Apr 2013 17:33:28 +0200 > Frank Schäfer escreveu: > >> Am 13.04.2013 16:41, schrieb Mauro Carvalho Chehab: >>> Em Sat, 13 Apr 2013 11:48:39 +0200 >>> Frank Schäfer escreveu: >>> The GPIO register tracking/caching code is partia

Re: [PATCH 1/3] em28xx: give up GPIO register tracking/caching

2013-04-13 Thread Mauro Carvalho Chehab
Em Sat, 13 Apr 2013 17:33:28 +0200 Frank Schäfer escreveu: > Am 13.04.2013 16:41, schrieb Mauro Carvalho Chehab: > > Em Sat, 13 Apr 2013 11:48:39 +0200 > > Frank Schäfer escreveu: > > > >> The GPIO register tracking/caching code is partially broken, because newer > >> devices provide more than o

Re: [PATCH 0/3] em28xx: clean up end extend the GPIO port handling

2013-04-13 Thread Devin Heitmueller
On Sat, Apr 13, 2013 at 12:21 PM, Antti Palosaari wrote: > Existing userspace sysfs interface is clearly debug interface. You will need > root privileges to mount it and IIRC it was not even compiled by default > (needs Kconfig debug option?). You would like to think that. Tell Mauro then, since

Re: [PATCH 2/2] em28xx: Add support for 1b80:e1cc Delock 61959

2013-04-13 Thread Antti Palosaari
On 04/13/2013 06:03 PM, Jakob Haufe wrote: Hardware is the same as MaxMedia UB425-TC but ships with a different remote. Signed-off-by: Jakob Haufe Reviewed-by: Antti Palosaari -- http://palosaari.fi/ -- To unsubscribe from this list: send the line "unsubscribe linux-media" in the body of a

Re: [PATCH 1/2] rc: Add rc-delock-61959

2013-04-13 Thread Antti Palosaari
On 04/13/2013 06:03 PM, Jakob Haufe wrote: This adds the keytable for the remote that comes with the Delock 61959. NEC protocol with address 0x866b. Signed-off-by: Jakob Haufe Reviewed-by: Antti Palosaari -- http://palosaari.fi/ -- To unsubscribe from this list: send the line "unsubscrib

Re: [PATCH] Add support for Delock 61959 and its remote control

2013-04-13 Thread Antti Palosaari
On 04/13/2013 06:03 PM, Jakob Haufe wrote: This time for real with all bells and whistles: Delock 61959 is a relabeled MexMedia UB-425TC with a different USB ID and a different remote. Patch 1 adds the keytable for the remote control and patch 2 adds support for the device itself. I'm reusing m

Re: [PATCH 0/3] em28xx: clean up end extend the GPIO port handling

2013-04-13 Thread Antti Palosaari
On 04/13/2013 06:34 PM, Devin Heitmueller wrote: On Sat, Apr 13, 2013 at 11:30 AM, Frank Schäfer wrote: I've checked the documentation about the gpio and led frameworks a few weeks ago to find out if it makes sense to use them for the gpio/buttons/led stuff of the VAD Laplace webcam. AFAICS, th

Re: [PATCH 0/3] em28xx: clean up end extend the GPIO port handling

2013-04-13 Thread Devin Heitmueller
On Sat, Apr 13, 2013 at 11:30 AM, Frank Schäfer wrote: > I've checked the documentation about the gpio and led frameworks a few > weeks ago to find out if it makes sense to use them for the > gpio/buttons/led stuff of the VAD Laplace webcam. > AFAICS, there are no benfits as long as you are dealin

Re: [PATCH 1/3] em28xx: give up GPIO register tracking/caching

2013-04-13 Thread Frank Schäfer
Am 13.04.2013 16:41, schrieb Mauro Carvalho Chehab: > Em Sat, 13 Apr 2013 11:48:39 +0200 > Frank Schäfer escreveu: > >> The GPIO register tracking/caching code is partially broken, because newer >> devices provide more than one GPIO register and some of them are even using >> separate registers fo

Re: [PATCH 0/3] em28xx: clean up end extend the GPIO port handling

2013-04-13 Thread Frank Schäfer
Am 13.04.2013 16:25, schrieb Mauro Carvalho Chehab: > Em Sat, 13 Apr 2013 16:15:39 +0300 > Antti Palosaari escreveu: > >> On 04/13/2013 12:48 PM, Frank Schäfer wrote: >>> Patch 1 removes the unneeded and broken gpio register caching code. >>> Patch 2 adds the gpio register defintions for the em25x

[PATCH 2/2] em28xx: Add support for 1b80:e1cc Delock 61959

2013-04-13 Thread Jakob Haufe
Hardware is the same as MaxMedia UB425-TC but ships with a different remote. Signed-off-by: Jakob Haufe --- drivers/media/usb/em28xx/em28xx-cards.c | 16 drivers/media/usb/em28xx/em28xx-dvb.c |5 +++-- drivers/media/usb/em28xx/em28xx.h |1 + 3 files changed, 20

[PATCH 1/2] rc: Add rc-delock-61959

2013-04-13 Thread Jakob Haufe
This adds the keytable for the remote that comes with the Delock 61959. NEC protocol with address 0x866b. Signed-off-by: Jakob Haufe --- drivers/media/rc/keymaps/Makefile |1 + drivers/media/rc/keymaps/rc-delock-61959.c | 83 include/media/rc-map.h

[PATCH] Add support for Delock 61959 and its remote control

2013-04-13 Thread Jakob Haufe
This time for real with all bells and whistles: Delock 61959 is a relabeled MexMedia UB-425TC with a different USB ID and a different remote. Patch 1 adds the keytable for the remote control and patch 2 adds support for the device itself. I'm reusing maxmedia_ub425_tc as I didn't want to duplicat

Re: [PATCH 1/3] em28xx: give up GPIO register tracking/caching

2013-04-13 Thread Mauro Carvalho Chehab
Em Sat, 13 Apr 2013 11:48:39 +0200 Frank Schäfer escreveu: > The GPIO register tracking/caching code is partially broken, because newer > devices provide more than one GPIO register and some of them are even using > separate registers for read and write access. > Making it work would be too compl

Re: [PATCH 0/3] em28xx: clean up end extend the GPIO port handling

2013-04-13 Thread Antti Palosaari
On 04/13/2013 05:25 PM, Mauro Carvalho Chehab wrote: Em Sat, 13 Apr 2013 16:15:39 +0300 Antti Palosaari escreveu: On 04/13/2013 12:48 PM, Frank Schäfer wrote: Patch 1 removes the unneeded and broken gpio register caching code. Patch 2 adds the gpio register defintions for the em25xx/em276x/7x

Re: [PATCH 0/3] em28xx: clean up end extend the GPIO port handling

2013-04-13 Thread Mauro Carvalho Chehab
Em Sat, 13 Apr 2013 16:15:39 +0300 Antti Palosaari escreveu: > On 04/13/2013 12:48 PM, Frank Schäfer wrote: > > Patch 1 removes the unneeded and broken gpio register caching code. > > Patch 2 adds the gpio register defintions for the em25xx/em276x/7x/8x > > and patch 3 finally adds a new helper f

[PATCH 6/7] backports: add media subsystem drivers

2013-04-13 Thread Luis R. Rodriguez
From: "Luis R. Rodriguez" This adds backport support for all media subsystem drivers. This is enabled only for >= 3.2. Some media drivers rely on the new probe deferrral mechanism (-EPROBE_DEFER see commit d1c3414c), those are only enabled for kernels >= 3.4. Some media drivers only depend on the

Re: [PATCH 0/3] em28xx: clean up end extend the GPIO port handling

2013-04-13 Thread Antti Palosaari
On 04/13/2013 12:48 PM, Frank Schäfer wrote: Patch 1 removes the unneeded and broken gpio register caching code. Patch 2 adds the gpio register defintions for the em25xx/em276x/7x/8x and patch 3 finally adds a new helper function for gpio ports with separate registers for read and write access.

[PATCH] em28xx: add basic support for the "SpeedLink Vicious And Devine Laplace" webcam

2013-04-13 Thread Frank Schäfer
The SpeedLink Vicious And Devine Laplace webcam uses an EM2765 bridge and an OV2640 sensor which allows capturing at a max. resoultion of 1600x1200 at max. 7-8 fps. It has a built-in microphone (USB standard device class) and provides 3 buttons (snapshot, mute, illumination) and 2 LEDs (capturing/m

[PATCH 1/3] em28xx: give up GPIO register tracking/caching

2013-04-13 Thread Frank Schäfer
The GPIO register tracking/caching code is partially broken, because newer devices provide more than one GPIO register and some of them are even using separate registers for read and write access. Making it work would be too complicated. It is also used nowhere and doesn't make sense in cases where

[PATCH 3/3] em28xx: add helper function for handling the GPIO registers of newer devices

2013-04-13 Thread Frank Schäfer
The current code provides a helper function em28xx_write_reg_bits() that reads the current state/value of a GPIO register, modifies only the bits specified with the value and bitmask parmaters and writes the new value back to the register. Newer devices (em25xx, em276x/7x/8x) are using separate re

[PATCH 2/3] em28xx: add register defines for em25xx/em276x/7x/8x GPIO registers

2013-04-13 Thread Frank Schäfer
em25xx/em276x/7x/8x provides 3 GPIO register sets, each of them consisting of separate read and a write registers. Signed-off-by: Frank Schäfer --- drivers/media/usb/em28xx/em28xx-reg.h |8 1 Datei geändert, 8 Zeilen hinzugefügt(+) diff --git a/drivers/media/usb/em28xx/em28xx-reg.h

[PATCH 0/3] em28xx: clean up end extend the GPIO port handling

2013-04-13 Thread Frank Schäfer
Patch 1 removes the unneeded and broken gpio register caching code. Patch 2 adds the gpio register defintions for the em25xx/em276x/7x/8x and patch 3 finally adds a new helper function for gpio ports with separate registers for read and write access. Frank Schäfer (3): em28xx: give up GPIO regi

[patch] [media] media: info leak in __media_device_enum_links()

2013-04-13 Thread Dan Carpenter
These structs have holes and reserved struct members which aren't cleared. I've added a memset() so we don't leak stack information. Signed-off-by: Dan Carpenter diff --git a/drivers/media/media-device.c b/drivers/media/media-device.c index 99b80b6..450c0d1 100644 --- a/drivers/media/media-devi

[PATCH] media:adv7180: Use dev_pm_ops

2013-04-13 Thread Lars-Peter Clausen
Use dev_pm_ops instead of the deprecated legacy suspend/resume callbacks. Signed-off-by: Lars-Peter Clausen --- drivers/media/i2c/adv7180.c | 19 --- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/drivers/media/i2c/adv7180.c b/drivers/media/i2c/adv7180.c index 34f