Bestcomm tasks and interrupts on MPC5200(B)

Grant Likely grant.likely at secretlab.ca
Wed Jan 21 03:04:59 EST 2009


On Tue, Jan 20, 2009 at 6:15 AM, Dave Best <arieswar24b at yahoo.de> wrote:
> I'm trying to write a driver which uses the Local Plus Bus on my MPC5200B and therefore have to use BestComm DMA, which requires me to use a Gen_BD task for data transfer with Local Plus.
> I tried to follow the fec driver that is currently used and took a peek at the mpc52xx-ac97 driver which at least uses the same kind of bus as I.
>
> Initialising the task, resetting and enabling works fine. Even request_irq reports no error, but when I start a transfer it hangs and if I am lucky, an interrupt occurs after quite some time. But it's always the BestComm ethernet rx task which produces an RFIFO interrupt, presumably after the watchdog catches on.
> If this happens my interrupt occurs to.

Are you using the LocalPlus fifo device for the transfer (you need to
if you aren't)?

I've attached a test driver that demonstrates how to do FIFO only and
FIFO+DMA transfers over the localplus bus.

g.




-- 
Grant Likely, B.Sc., P.Eng.
Secret Lab Technologies Ltd.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Add-Bestcomm-localplus-test-utility.patch
Type: text/x-patch
Size: 27961 bytes
Desc: not available
URL: <http://lists.ozlabs.org/pipermail/linuxppc-dev/attachments/20090120/59cd2c5a/attachment.bin>


More information about the Linuxppc-dev mailing list