ttusb-budget: make it depend on PCI
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
@@ -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
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
@@ -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
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
Sincedvb-ttusb-budget.crelies onpci_alloc_consistentandpci_free_consistent, make it depend on PCI inKconfig.
Quoted 1 line
Signed-off-by Mike Frysinger <[email protected]>
Shouldn't you just convert it (trivially) to dma_alloc_coherent and dma_alloc_coherent?
Arnd <><
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
Sincedvb-ttusb-budget.crelies onpci_alloc_consistentandpci_free_consistent, make it depend on PCI inKconfig.
Quoted 4 lines
Quoted 1 line
Signed-off-by Mike Frysinger <[email protected]>Shouldn't you just convert it (trivially) to
dma_alloc_coherentanddma_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]
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...
Quoted 8 lines · Arnd Bergmann
Quoted 4 lines · Mike Frysinger
Since
dvb-ttusb-budget.crelies onpci_alloc_consistentandpci_free_consistent, make it depend on PCI inKconfig.Signed-off-by Mike Frysinger <[email protected]>Shouldn't you just convert it (trivially) to
dma_alloc_coherentanddma_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