Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

spi: pic32: stop setting dma_config->slave_id

Setting slave_id makes no sense with DT based probing, and
should eventually get removed entirely. Address this driver
by no longer setting the field here.

I could not find which DMA driver is used on PIC32, if it's
in the tree at all, but none of the obvious ones even care
about slave_id any more.

Acked-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Link: https://lore.kernel.org/r/20211122222203.4103644-4-arnd@kernel.org
Signed-off-by: Vinod Koul <vkoul@kernel.org>

authored by

Arnd Bergmann and committed by
Vinod Koul
feaa4a09 bdecfcef

-2
-2
drivers/spi/spi-pic32.c
··· 370 370 cfg.src_addr_width = dma_width; 371 371 cfg.dst_addr_width = dma_width; 372 372 /* tx channel */ 373 - cfg.slave_id = pic32s->tx_irq; 374 373 cfg.direction = DMA_MEM_TO_DEV; 375 374 ret = dmaengine_slave_config(master->dma_tx, &cfg); 376 375 if (ret) { ··· 377 378 return ret; 378 379 } 379 380 /* rx channel */ 380 - cfg.slave_id = pic32s->rx_irq; 381 381 cfg.direction = DMA_DEV_TO_MEM; 382 382 ret = dmaengine_slave_config(master->dma_rx, &cfg); 383 383 if (ret)