dmaengine: hsu: make the UART driver in control of selecting this driver
authorHeikki Krogerus <heikki.krogerus@linux.intel.com>
Tue, 13 Oct 2015 10:29:03 +0000 (13:29 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 18 Oct 2015 04:22:08 +0000 (21:22 -0700)
HSU (High Speed UART) DMA engine, like the name suggests, is
an integrated DMA engine for UART and UART alone. Therefore,
making the UART drivers responsible of selecting it and
removing the user selectable option for it. The UARTs with
this DMA engine can always select HSU_DMA when
SERIAL_8250_DMA option is enabled.

Suggested-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Acked-by: Vinod Koul <vinod.koul@intel.com>
Acked-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/dma/hsu/Kconfig
drivers/tty/serial/8250/Kconfig

index 2810dca7061203e63f26ca47a488e776d10ebd89..c70841731a80ac95c3acc8f62acbfddfdac212a1 100644 (file)
@@ -5,10 +5,5 @@ config HSU_DMA
        select DMA_VIRTUAL_CHANNELS
 
 config HSU_DMA_PCI
-       tristate "High Speed UART DMA PCI driver"
-       depends on PCI
-       select HSU_DMA
-       help
-         Support the High Speed UART DMA on the platfroms that
-         enumerate it as a PCI device. For example, Intel Medfield
-         has integrated this HSU DMA controller.
+       tristate
+       depends on HSU_DMA && PCI
index f4a689743aa2dd993147e691be7c8c3ed198ef5e..e6f5e12a2d83bcc5c03b3e2b81caf50f70721467 100644 (file)
@@ -371,6 +371,8 @@ config SERIAL_8250_INGENIC
 config SERIAL_8250_MID
        tristate "Support for serial ports on Intel MID platforms"
        depends on SERIAL_8250 && PCI
+       select HSU_DMA if SERIAL_8250_DMA
+       select HSU_DMA_PCI if X86_INTEL_MID
        help
          Selecting this option will enable handling of the extra features
          present on the UART found on Intel Medfield SOC and various other