RE: [PATCH 3.7] dma: sh: Don't use ENODEV for failing slave lookup

2012-12-03 Thread Koul, Vinod
> > If dmaengine driver's .device_alloc_chan_resources() method returns -ENODEV, > dma_request_channel() will decide, that the driver has been removed and will > remove > the device from its list. To prevent this use ENXIO if a slave lookup fails. > > Reported-by: Kuninori Morimoto > Signed-off

[PATCH 3.7] dma: sh: Don't use ENODEV for failing slave lookup

2012-11-27 Thread Guennadi Liakhovetski
If dmaengine driver's .device_alloc_chan_resources() method returns -ENODEV, dma_request_channel() will decide, that the driver has been removed and will remove the device from its list. To prevent this use ENXIO if a slave lookup fails. Reported-by: Kuninori Morimoto Signed-off-by: Guennadi Liak