Skip to content

Commit f8d9ddb

Browse files
andy-shevvinodkoul
authored andcommitted
dmaengine: dw: platform: Enable iDMA 32-bit on Intel Elkhart Lake
Intel® PSE (Programmable Services Engine) provides few DMA controllers to the host on Intel Elkhart Lake. Enable them in the ACPI glue driver. Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Link: https://lore.kernel.org/r/20190820131546.75744-6-andriy.shevchenko@linux.intel.com Signed-off-by: Vinod Koul <vkoul@kernel.org>
1 parent b375741 commit f8d9ddb

1 file changed

Lines changed: 11 additions & 5 deletions

File tree

‎drivers/dma/dw/platform.c‎

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,6 @@ static int dw_probe(struct platform_device *pdev)
173173
struct dw_dma_chip *chip;
174174
struct device *dev = &pdev->dev;
175175
struct resource *mem;
176-
const struct dw_dma_platform_data *pdata;
177176
int err;
178177

179178
match = device_get_match_data(dev);
@@ -201,13 +200,14 @@ static int dw_probe(struct platform_device *pdev)
201200
if (err)
202201
return err;
203202

204-
pdata = dev_get_platdata(dev);
205-
if (!pdata)
206-
pdata = dw_dma_parse_dt(pdev);
203+
if (!data->pdata)
204+
data->pdata = dev_get_platdata(dev);
205+
if (!data->pdata)
206+
data->pdata = dw_dma_parse_dt(pdev);
207207

208208
chip->dev = dev;
209209
chip->id = pdev->id;
210-
chip->pdata = pdata;
210+
chip->pdata = data->pdata;
211211

212212
data->chip = chip;
213213

@@ -298,6 +298,12 @@ static const struct acpi_device_id dw_dma_acpi_id_table[] = {
298298
{ "INTL9C60", (kernel_ulong_t)&dw_dma_chip_pdata },
299299
{ "80862286", (kernel_ulong_t)&dw_dma_chip_pdata },
300300
{ "808622C0", (kernel_ulong_t)&dw_dma_chip_pdata },
301+
302+
/* Elkhart Lake iDMA 32-bit (PSE DMA) */
303+
{ "80864BB4", (kernel_ulong_t)&idma32_chip_pdata },
304+
{ "80864BB5", (kernel_ulong_t)&idma32_chip_pdata },
305+
{ "80864BB6", (kernel_ulong_t)&idma32_chip_pdata },
306+
301307
{ }
302308
};
303309
MODULE_DEVICE_TABLE(acpi, dw_dma_acpi_id_table);

0 commit comments

Comments
 (0)