Hi, On Wed, Sep 21, 2011 at 15:33:08, Rajashekhara, Sudhakar wrote: > Hi, > > On Wed, Sep 21, 2011 at 15:06:29, Aníbal Almeida Pinto wrote: > > Em 21-09-2011 09:38, Rajashekhara, Sudhakar escreveu: > > > Hi, > > > > > > On Wed, Aug 31, 2011 at 17:47:43, Aníbal Almeida Pinto wrote: > > >> Hi, > > >>
[...] > > > > If I apply the patch attached I can make rmmod of the spi davinci driver. > > > > The procedure that I have tested : > > > > # insmod davinci_spi.ko > > spi_davinci spi_davinci.1: DMA: supported > > spi_davinci spi_davinci.1: DMA: RX channel: 18, TX channel: 19, event > > queue: 0 > > spi_davinci spi_davinci.1: Controller at 0xfef0e000 > > > > # rmmod davinci_spi.ko > > > > But can't insmod it again : > > > > # insmod davinci_spi.ko > > Unable to request DMA channel for SPI RX > > Trying to free nonexistent resource <0000000001f0e000-0000000001f0e000> > > spi_davinci: probe of spi_davinci.1 failed with error -11 > > insmod: can't insert 'davinci_spi.ko': No such device > > > > I see that during module removal, the driver is not doing the following: > > edma_free_channel(dspi->dma.tx_channel); > edma_free_channel(dspi->dma.rx_channel); > edma_free_slot(dspi->dma.dummy_param_slot); > > Even after adding the above lines, I was not able to do the insmod again > because > for me, the m25p80 device was already registered. I am not sure whether you > are > using the same interface. If yes, you need to figure out how to handle that. > Any luck with the above fix? Thanks, Sudhakar _______________________________________________ Davinci-linux-open-source mailing list Davinci-linux-open-source@linux.davincidsp.com http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source