Em 26-09-2011 03:45, Rajashekhara, Sudhakar escreveu:
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?

Sorry for the delay, I was out of office.

I haded the edma_free_* lines on the remove function of the driver but it continue to return the error :

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 am using a board that was used the omap l138 was reference, don't have spi flash but have a spidev registered over the spi interface.

Can that be the cause to don't release the dma ?

To don't use the spi flash it is possible boot for nfs, but don't know how I should register the spi on the board.

To rmmod work the spi_board_info should be empty ?

Thanks.

Regards,
Aníbal


_______________________________________________
Davinci-linux-open-source mailing list
[email protected]
http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source

Reply via email to