]> git.baikalelectronics.ru Git - kernel.git/commit
serial: 8250_lpss: Configure DMA also w/o DMA filter
authorIlpo Järvinen <ilpo.jarvinen@linux.intel.com>
Tue, 8 Nov 2022 12:19:50 +0000 (14:19 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 25 Nov 2022 16:42:19 +0000 (17:42 +0100)
commitff083eaa50daaa81b3c96844289e5d3ff490869e
treee6f032b38ccdd7d32a3599601bd73723be1fdd95
parentd39e59692912073211f59326da8e3b02ca4a3c2f
serial: 8250_lpss: Configure DMA also w/o DMA filter

commit fc760e177156dbd7dffd904877170ffdbde5b020 upstream.

If the platform doesn't use DMA device filter (as is the case with
Elkhart Lake), whole lpss8250_dma_setup() setup is skipped. This
results in skipping also *_maxburst setup which is undesirable.
Refactor lpss8250_dma_setup() to configure DMA even if filter is not
setup.

Cc: stable <stable@kernel.org>
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/20221108121952.5497-3-ilpo.jarvinen@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/8250/8250_lpss.c