Skip to contentSkip to conversation

ttusb-budget: make it depend on PCI

PATCH In review Mike Frysinger 4 participants 6 messages Nov 12, 2008 Media (V4L/DVB)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ttusb-budget: make it depend on PCI

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

---
 drivers/media/dvb/ttusb-budget/Kconfig |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/media/dvb/ttusb-budget/Kconfig +1 -1
index f546bcc..2663ae3 100644
@@ -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
Signature · 1 line
1.6.0.3
#1 lore raw

PATCH 1/1 ttusb-dec: make it depend on PCI

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

---
 drivers/media/dvb/ttusb-dec/Kconfig |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/media/dvb/ttusb-dec/Kconfig +1 -1
index d5f48a3..290254a 100644
@@ -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
Signature · 1 line
1.6.0.3
#2 lore raw
In reply to Mike Frysinger
Quoted 12 lines · Mike Frysinger

From:
Mike Frysinger <[email protected]>
To:
[email protected], [email protected], Holger Waechtler <[email protected]>
CC:
Mauro Carvalho Chehab <[email protected]>, [email protected]
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.

Quoted 1 line

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

	Arnd <><
#3 lore raw
Quoted 13 lines · Arnd Bergmann
Quoted 12 lines · Mike Frysinger

From:
Mike Frysinger <[email protected]>
To:
[email protected], [email protected], Holger Waechtler <[email protected]>
CC:
Mauro Carvalho Chehab <[email protected]>, [email protected]
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.

Quoted 4 lines
Quoted 1 line

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

Signature · 1 line
[email protected]
#4 lore raw
Quoted 3 lines · Andi Kleen

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...

#5 lore raw
In reply to Arnd Bergmann
Quoted 8 lines · Arnd Bergmann
Quoted 4 lines · Mike Frysinger

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

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