All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] ttusb-budget: make it depend on PCI
@ 2008-11-12 12:00 Mike Frysinger
  2008-11-12 12:04 ` [PATCH] ttusb-dec: " Mike Frysinger
  2008-11-12 12:35 ` [PATCH] ttusb-budget: " Arnd Bergmann
  0 siblings, 2 replies; 6+ messages in thread
From: Mike Frysinger @ 2008-11-12 12:00 UTC (permalink / raw)
  To: v4l-dvb-maintainer, linux-dvb, Holger Waechtler
  Cc: Mauro Carvalho Chehab, linux-kernel

Since dvb-ttusb-budget.c relies on pci_alloc_consistent and
pci_free_consistent, make it depend on PCI in Kconfig.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
---
 drivers/media/dvb/ttusb-budget/Kconfig |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/media/dvb/ttusb-budget/Kconfig b/drivers/media/dvb/ttusb-budget/Kconfig
index f546bcc..2663ae3 100644
--- a/drivers/media/dvb/ttusb-budget/Kconfig
+++ b/drivers/media/dvb/ttusb-budget/Kconfig
@@ -1,6 +1,6 @@
 config DVB_TTUSB_BUDGET
 	tristate "Technotrend/Hauppauge Nova-USB devices"
-	depends on DVB_CORE && USB && I2C
+	depends on DVB_CORE && USB && I2C && PCI
 	select DVB_CX22700 if !DVB_FE_CUSTOMISE
 	select DVB_TDA1004X if !DVB_FE_CUSTOMISE
 	select DVB_VES1820 if !DVB_FE_CUSTOMISE
-- 
1.6.0.3


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

* [PATCH] ttusb-dec: make it depend on PCI
  2008-11-12 12:00 [PATCH] ttusb-budget: make it depend on PCI Mike Frysinger
@ 2008-11-12 12:04 ` Mike Frysinger
  2008-11-12 12:35 ` [PATCH] ttusb-budget: " Arnd Bergmann
  1 sibling, 0 replies; 6+ messages in thread
From: Mike Frysinger @ 2008-11-12 12:04 UTC (permalink / raw)
  To: v4l-dvb-maintainer, linux-dvb, Alex Woods
  Cc: Mauro Carvalho Chehab, linux-kernel

Since ttusb_dec.c relies on pci_alloc_consistent and
pci_free_consistent, make it depend on PCI in Kconfig.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
---
 drivers/media/dvb/ttusb-dec/Kconfig |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/media/dvb/ttusb-dec/Kconfig b/drivers/media/dvb/ttusb-dec/Kconfig
index d5f48a3..290254a 100644
--- a/drivers/media/dvb/ttusb-dec/Kconfig
+++ b/drivers/media/dvb/ttusb-dec/Kconfig
@@ -1,6 +1,6 @@
 config DVB_TTUSB_DEC
 	tristate "Technotrend/Hauppauge USB DEC devices"
-	depends on DVB_CORE && USB && INPUT
+	depends on DVB_CORE && USB && INPUT && PCI
 	select CRC32
 	help
 	  Support for external USB adapters designed by Technotrend and
-- 
1.6.0.3


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

* Re: [PATCH] ttusb-budget: make it depend on PCI
  2008-11-12 12:00 [PATCH] ttusb-budget: make it depend on PCI Mike Frysinger
  2008-11-12 12:04 ` [PATCH] ttusb-dec: " Mike Frysinger
@ 2008-11-12 12:35 ` Arnd Bergmann
  2008-11-12 13:11   ` Andi Kleen
  2008-11-12 13:17   ` Mike Frysinger
  1 sibling, 2 replies; 6+ messages in thread
From: Arnd Bergmann @ 2008-11-12 12:35 UTC (permalink / raw)
  To: Mike Frysinger
  Cc: v4l-dvb-maintainer, linux-dvb, Holger Waechtler,
	Mauro Carvalho Chehab, linux-kernel

On Wednesday 12 November 2008, Mike Frysinger wrote:
> From: 
> Mike Frysinger <vapier@gentoo.org>
>   To: 
> v4l-dvb-maintainer@linuxtv.org, linux-dvb@linuxtv.org, Holger Waechtler <holger@convergence.de>
>   CC: 
> Mauro Carvalho Chehab <mchehab@infradead.org>, linux-kernel@vger.kernel.org
>   Date: 
> Today 13:00:18
>    
> Since dvb-ttusb-budget.c relies on pci_alloc_consistent and
> pci_free_consistent, make it depend on PCI in Kconfig.
> 
> Signed-off-by: Mike Frysinger <vapier@gentoo.org>

Shouldn't you just convert it (trivially) to dma_alloc_coherent and
dma_alloc_coherent?

	Arnd <><

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

* Re: [PATCH] ttusb-budget: make it depend on PCI
  2008-11-12 12:35 ` [PATCH] ttusb-budget: " Arnd Bergmann
@ 2008-11-12 13:11   ` Andi Kleen
  2008-11-12 13:46     ` Arnd Bergmann
  2008-11-12 13:17   ` Mike Frysinger
  1 sibling, 1 reply; 6+ messages in thread
From: Andi Kleen @ 2008-11-12 13:11 UTC (permalink / raw)
  To: Arnd Bergmann
  Cc: Mike Frysinger, v4l-dvb-maintainer, linux-dvb, Holger Waechtler,
	Mauro Carvalho Chehab, linux-kernel

Arnd Bergmann <arnd@arndb.de> writes:

> On Wednesday 12 November 2008, Mike Frysinger wrote:
>> From: 
>> Mike Frysinger <vapier@gentoo.org>
>>   To: 
>> v4l-dvb-maintainer@linuxtv.org, linux-dvb@linuxtv.org, Holger Waechtler <holger@convergence.de>
>>   CC: 
>> Mauro Carvalho Chehab <mchehab@infradead.org>, linux-kernel@vger.kernel.org
>>   Date: 
>> Today 13:00:18
>>    
>> Since dvb-ttusb-budget.c relies on pci_alloc_consistent and
>> pci_free_consistent, make it depend on PCI in Kconfig.
>> 
>> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
>
> Shouldn't you just convert it (trivially) to dma_alloc_coherent and
> dma_alloc_coherent?

Unless it really needs to use the 16MB DMA zone (which I doubt
especially for USB devices) then it should not call either with a NULL
device argument.

-Andi

-- 
ak@linux.intel.com

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

* Re: [PATCH] ttusb-budget: make it depend on PCI
  2008-11-12 12:35 ` [PATCH] ttusb-budget: " Arnd Bergmann
  2008-11-12 13:11   ` Andi Kleen
@ 2008-11-12 13:17   ` Mike Frysinger
  1 sibling, 0 replies; 6+ messages in thread
From: Mike Frysinger @ 2008-11-12 13:17 UTC (permalink / raw)
  To: Arnd Bergmann
  Cc: Mike Frysinger, v4l-dvb-maintainer, linux-dvb, Holger Waechtler,
	Mauro Carvalho Chehab, linux-kernel

On Wed, Nov 12, 2008 at 07:35, Arnd Bergmann wrote:
> On Wednesday 12 November 2008, Mike Frysinger wrote:
>> Since dvb-ttusb-budget.c relies on pci_alloc_consistent and
>> pci_free_consistent, make it depend on PCI in Kconfig.
>>
>> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
>
> Shouldn't you just convert it (trivially) to dma_alloc_coherent and
> dma_alloc_coherent?

i dont have any DVB hardware let alone this device, so there's no way
for me to test things

if the maintainer wishes to go that route, i imagine it'd make other
people happy
-mike

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

* Re: [PATCH] ttusb-budget: make it depend on PCI
  2008-11-12 13:11   ` Andi Kleen
@ 2008-11-12 13:46     ` Arnd Bergmann
  0 siblings, 0 replies; 6+ messages in thread
From: Arnd Bergmann @ 2008-11-12 13:46 UTC (permalink / raw)
  To: Andi Kleen
  Cc: Mike Frysinger, v4l-dvb-maintainer, linux-dvb, Holger Waechtler,
	Mauro Carvalho Chehab, linux-kernel

On Wednesday 12 November 2008, Andi Kleen wrote:
> Unless it really needs to use the 16MB DMA zone (which I doubt
> especially for USB devices) then it should not call either with a NULL
> device argument.

Yes, of course. It will need to pass &ttusb->dev.dev to dma_alloc_coherent.

	Arnd <><

---

Note to self: read code before commenting on it...

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

end of thread, other threads:[~2008-11-12 13:53 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-11-12 12:00 [PATCH] ttusb-budget: make it depend on PCI Mike Frysinger
2008-11-12 12:04 ` [PATCH] ttusb-dec: " Mike Frysinger
2008-11-12 12:35 ` [PATCH] ttusb-budget: " Arnd Bergmann
2008-11-12 13:11   ` Andi Kleen
2008-11-12 13:46     ` Arnd Bergmann
2008-11-12 13:17   ` Mike Frysinger

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.