public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] em28xx and ivtv should depend on PCI
@ 2007-05-15 19:36 Al Viro
  2007-05-15 19:50 ` Alexey Dobriyan
  2007-05-15 23:25 ` Manu Abraham
  0 siblings, 2 replies; 7+ messages in thread
From: Al Viro @ 2007-05-15 19:36 UTC (permalink / raw)
  To: torvalds; +Cc: linux-kernel, mchehab


Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
---
 drivers/media/video/em28xx/Kconfig |    2 +-
 drivers/media/video/ivtv/Kconfig   |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/media/video/em28xx/Kconfig b/drivers/media/video/em28xx/Kconfig
index 3823b62..2c450bd 100644
--- a/drivers/media/video/em28xx/Kconfig
+++ b/drivers/media/video/em28xx/Kconfig
@@ -1,6 +1,6 @@
 config VIDEO_EM28XX
 	tristate "Empia EM2800/2820/2840 USB video capture support"
-	depends on VIDEO_V4L1 && I2C
+	depends on VIDEO_V4L1 && I2C && PCI
 	select VIDEO_BUF
 	select VIDEO_TUNER
 	select VIDEO_TVEEPROM
diff --git a/drivers/media/video/ivtv/Kconfig b/drivers/media/video/ivtv/Kconfig
index e854f3f..0cc98a0 100644
--- a/drivers/media/video/ivtv/Kconfig
+++ b/drivers/media/video/ivtv/Kconfig
@@ -1,6 +1,6 @@
 config VIDEO_IVTV
 	tristate "Conexant cx23416/cx23415 MPEG encoder/decoder support"
-	depends on VIDEO_V4L1 && VIDEO_V4L2 && USB && I2C && EXPERIMENTAL
+	depends on VIDEO_V4L1 && VIDEO_V4L2 && USB && I2C && EXPERIMENTAL && PCI
 	select FW_LOADER
 	select VIDEO_TUNER
 	select VIDEO_TVEEPROM
-- 
1.5.0-rc2.GIT



^ permalink raw reply related	[flat|nested] 7+ messages in thread

* Re: [PATCH] em28xx and ivtv should depend on PCI
  2007-05-15 19:36 [PATCH] em28xx and ivtv should depend on PCI Al Viro
@ 2007-05-15 19:50 ` Alexey Dobriyan
  2007-05-15 23:25 ` Manu Abraham
  1 sibling, 0 replies; 7+ messages in thread
From: Alexey Dobriyan @ 2007-05-15 19:50 UTC (permalink / raw)
  To: Al Viro; +Cc: torvalds, linux-kernel, mchehab

On Tue, May 15, 2007 at 08:36:40PM +0100, Al Viro wrote:
> --- a/drivers/media/video/ivtv/Kconfig
> +++ b/drivers/media/video/ivtv/Kconfig
> @@ -1,6 +1,6 @@
>  config VIDEO_IVTV
>  	tristate "Conexant cx23416/cx23415 MPEG encoder/decoder support"
> -	depends on VIDEO_V4L1 && VIDEO_V4L2 && USB && I2C && EXPERIMENTAL
> +	depends on VIDEO_V4L1 && VIDEO_V4L2 && USB && I2C && EXPERIMENTAL && PCI
>  	select FW_LOADER
>  	select VIDEO_TUNER
>  	select VIDEO_TVEEPROM

Don't forget to remove #error:

Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>

--- a/drivers/media/video/ivtv/ivtv-driver.h
+++ b/drivers/media/video/ivtv/ivtv-driver.h
@@ -71,10 +71,6 @@ #ifdef CONFIG_LIRC_I2C
 #  error "This driver is not compatible with the LIRC I2C kernel configuration option."
 #endif /* CONFIG_LIRC_I2C */
 
-#ifndef CONFIG_PCI
-#  error "This driver requires kernel PCI support."
-#endif /* CONFIG_PCI */
-
 #define IVTV_ENCODER_OFFSET	0x00000000
 #define IVTV_ENCODER_SIZE	0x00800000	/* Last half isn't needed 0x01000000 */
 


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH] em28xx and ivtv should depend on PCI
  2007-05-15 19:36 [PATCH] em28xx and ivtv should depend on PCI Al Viro
  2007-05-15 19:50 ` Alexey Dobriyan
@ 2007-05-15 23:25 ` Manu Abraham
  2007-05-16  1:22   ` Al Viro
  1 sibling, 1 reply; 7+ messages in thread
From: Manu Abraham @ 2007-05-15 23:25 UTC (permalink / raw)
  To: Al Viro; +Cc: torvalds, linux-kernel, mchehab

Al Viro wrote:
> Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
> ---
>  drivers/media/video/em28xx/Kconfig |    2 +-
>  drivers/media/video/ivtv/Kconfig   |    2 +-
>  2 files changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/drivers/media/video/em28xx/Kconfig b/drivers/media/video/em28xx/Kconfig
> index 3823b62..2c450bd 100644
> --- a/drivers/media/video/em28xx/Kconfig
> +++ b/drivers/media/video/em28xx/Kconfig
> @@ -1,6 +1,6 @@
>  config VIDEO_EM28XX
>  	tristate "Empia EM2800/2820/2840 USB video capture support"
> -	depends on VIDEO_V4L1 && I2C
> +	depends on VIDEO_V4L1 && I2C && PCI

Err .. why would a USB device need to be depend on PCI ?


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH] em28xx and ivtv should depend on PCI
  2007-05-15 23:25 ` Manu Abraham
@ 2007-05-16  1:22   ` Al Viro
  2007-05-16  3:57     ` Markus Rechberger
  2007-05-16 11:02     ` Mauro Carvalho Chehab
  0 siblings, 2 replies; 7+ messages in thread
From: Al Viro @ 2007-05-16  1:22 UTC (permalink / raw)
  To: Manu Abraham; +Cc: torvalds, linux-kernel, mchehab

On Wed, May 16, 2007 at 03:25:23AM +0400, Manu Abraham wrote:
> Al Viro wrote:
> > Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
> > ---
> >  drivers/media/video/em28xx/Kconfig |    2 +-
> >  drivers/media/video/ivtv/Kconfig   |    2 +-
> >  2 files changed, 2 insertions(+), 2 deletions(-)
> > 
> > diff --git a/drivers/media/video/em28xx/Kconfig b/drivers/media/video/em28xx/Kconfig
> > index 3823b62..2c450bd 100644
> > --- a/drivers/media/video/em28xx/Kconfig
> > +++ b/drivers/media/video/em28xx/Kconfig
> > @@ -1,6 +1,6 @@
> >  config VIDEO_EM28XX
> >  	tristate "Empia EM2800/2820/2840 USB video capture support"
> > -	depends on VIDEO_V4L1 && I2C
> > +	depends on VIDEO_V4L1 && I2C && PCI
> 
> Err .. why would a USB device need to be depend on PCI ?

Because video-buf.c does.  And VIDEO_EM28XX selects it.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH] em28xx and ivtv should depend on PCI
  2007-05-16  1:22   ` Al Viro
@ 2007-05-16  3:57     ` Markus Rechberger
  2007-05-16  5:03       ` Al Viro
  2007-05-16 11:02     ` Mauro Carvalho Chehab
  1 sibling, 1 reply; 7+ messages in thread
From: Markus Rechberger @ 2007-05-16  3:57 UTC (permalink / raw)
  To: Al Viro; +Cc: Manu Abraham, torvalds, linux-kernel, mchehab

On 5/16/07, Al Viro <viro@ftp.linux.org.uk> wrote:
> On Wed, May 16, 2007 at 03:25:23AM +0400, Manu Abraham wrote:
> > Al Viro wrote:
> > > Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
> > > ---
> > >  drivers/media/video/em28xx/Kconfig |    2 +-
> > >  drivers/media/video/ivtv/Kconfig   |    2 +-
> > >  2 files changed, 2 insertions(+), 2 deletions(-)
> > >
> > > diff --git a/drivers/media/video/em28xx/Kconfig
> b/drivers/media/video/em28xx/Kconfig
> > > index 3823b62..2c450bd 100644
> > > --- a/drivers/media/video/em28xx/Kconfig
> > > +++ b/drivers/media/video/em28xx/Kconfig
> > > @@ -1,6 +1,6 @@
> > >  config VIDEO_EM28XX
> > >  	tristate "Empia EM2800/2820/2840 USB video capture support"
> > > -	depends on VIDEO_V4L1 && I2C
> > > +	depends on VIDEO_V4L1 && I2C && PCI
> >
> > Err .. why would a USB device need to be depend on PCI ?
>
> Because video-buf.c does.  And VIDEO_EM28XX selects it.

the em28xx does not rely on video-buf, this seems to be a dependency
derived from another dependency.

Markus

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH] em28xx and ivtv should depend on PCI
  2007-05-16  3:57     ` Markus Rechberger
@ 2007-05-16  5:03       ` Al Viro
  0 siblings, 0 replies; 7+ messages in thread
From: Al Viro @ 2007-05-16  5:03 UTC (permalink / raw)
  To: Markus Rechberger; +Cc: Manu Abraham, torvalds, linux-kernel, mchehab

On Wed, May 16, 2007 at 05:57:39AM +0200, Markus Rechberger wrote:
> On 5/16/07, Al Viro <viro@ftp.linux.org.uk> wrote:
> >On Wed, May 16, 2007 at 03:25:23AM +0400, Manu Abraham wrote:
> >> Al Viro wrote:
> >> > Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
> >> > ---
> >> >  drivers/media/video/em28xx/Kconfig |    2 +-
> >> >  drivers/media/video/ivtv/Kconfig   |    2 +-
> >> >  2 files changed, 2 insertions(+), 2 deletions(-)
> >> >
> >> > diff --git a/drivers/media/video/em28xx/Kconfig
> >b/drivers/media/video/em28xx/Kconfig
> >> > index 3823b62..2c450bd 100644
> >> > --- a/drivers/media/video/em28xx/Kconfig
> >> > +++ b/drivers/media/video/em28xx/Kconfig
> >> > @@ -1,6 +1,6 @@
> >> >  config VIDEO_EM28XX
> >> >  	tristate "Empia EM2800/2820/2840 USB video capture support"
> >> > -	depends on VIDEO_V4L1 && I2C
> >> > +	depends on VIDEO_V4L1 && I2C && PCI
> >>
> >> Err .. why would a USB device need to be depend on PCI ?
> >
> >Because video-buf.c does.  And VIDEO_EM28XX selects it.
> 
> the em28xx does not rely on video-buf, this seems to be a dependency
> derived from another dependency.

        select VIDEO_BUF
        select VIDEO_TUNER
        select VIDEO_TVEEPROM
        select VIDEO_IR
        select VIDEO_SAA711X if VIDEO_HELPER_CHIPS_AUTO
        select VIDEO_TVP5150 if VIDEO_HELPER_CHIPS_AUTO
        ---help---
          This is a video4linux driver for Empia 28xx based TV cards.

          To compile this driver as a module, choose M here: the  
          module will be called em28xx

The first line does it.  It's not a dependency, it's a direct select.
And drivers/media/video/Makefile has
obj-$(CONFIG_VIDEO_BUF)   += video-buf.o

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH] em28xx and ivtv should depend on PCI
  2007-05-16  1:22   ` Al Viro
  2007-05-16  3:57     ` Markus Rechberger
@ 2007-05-16 11:02     ` Mauro Carvalho Chehab
  1 sibling, 0 replies; 7+ messages in thread
From: Mauro Carvalho Chehab @ 2007-05-16 11:02 UTC (permalink / raw)
  To: Al Viro; +Cc: Manu Abraham, Linus Torvalds, linux-kernel


On Wed, 16 May 2007, Al Viro wrote:

>>> +	depends on VIDEO_V4L1 && I2C && PCI
>>
>> Err .. why would a USB device need to be depend on PCI ?
>
> Because video-buf.c does.  And VIDEO_EM28XX selects it.

There are already two patches fixing the broken dependencies for ivtv and 
em28xx on my -git tree:

http://git.kernel.org/?p=linux/kernel/git/mchehab/v4l-dvb.git;a=commitdiff;h=1cf15bd2c8606e232d4c29273f8d05fcd47cc0fd
http://git.kernel.org/?p=linux/kernel/git/mchehab/v4l-dvb.git;a=commitdiff;h=42aadebe90d9bc18a6753be45ed878b07de4c560

I've already asked Linus to pull it:

http://lkml.org/lkml/2007/5/13/100


-- 
Cheers,
Mauro Carvalho Chehab
http://linuxtv.org
mchehab@infradead.org

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2007-05-16 11:03 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-05-15 19:36 [PATCH] em28xx and ivtv should depend on PCI Al Viro
2007-05-15 19:50 ` Alexey Dobriyan
2007-05-15 23:25 ` Manu Abraham
2007-05-16  1:22   ` Al Viro
2007-05-16  3:57     ` Markus Rechberger
2007-05-16  5:03       ` Al Viro
2007-05-16 11:02     ` Mauro Carvalho Chehab

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox