~ubuntu-branches/ubuntu/precise/linux-ti-omap4/precise

« back to all changes in this revision

Viewing changes to arch/powerpc/platforms/52xx/mpc52xx_lpbfifo.c

  • Committer: Bazaar Package Importer
  • Author(s): Paolo Pisati
  • Date: 2011-06-29 15:23:51 UTC
  • mfrom: (26.1.1 natty-proposed)
  • Revision ID: james.westby@ubuntu.com-20110629152351-xs96tm303d95rpbk
Tags: 3.0.0-1200.2
* Rebased against 3.0.0-6.7
* BSP from TI based on 3.0.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
57
57
static struct mpc52xx_lpbfifo lpbfifo;
58
58
 
59
59
/**
60
 
 * mpc52xx_lpbfifo_kick - Trigger the next block of data to be transfered
 
60
 * mpc52xx_lpbfifo_kick - Trigger the next block of data to be transferred
61
61
 */
62
62
static void mpc52xx_lpbfifo_kick(struct mpc52xx_lpbfifo_request *req)
63
63
{
179
179
 *
180
180
 * On transmit, the dma completion irq triggers before the fifo completion
181
181
 * triggers.  Handle the dma completion here instead of the LPB FIFO Bestcomm
182
 
 * task completion irq becuase everyting is not really done until the LPB FIFO
 
182
 * task completion irq because everything is not really done until the LPB FIFO
183
183
 * completion irq triggers.
184
184
 *
185
185
 * In other words:
195
195
 * Exit conditions:
196
196
 * 1) Transfer aborted
197
197
 * 2) FIFO complete without DMA; more data to do
198
 
 * 3) FIFO complete without DMA; all data transfered
 
198
 * 3) FIFO complete without DMA; all data transferred
199
199
 * 4) FIFO complete using DMA
200
200
 *
201
201
 * Condition 1 can occur regardless of whether or not DMA is used.
436
436
}
437
437
EXPORT_SYMBOL(mpc52xx_lpbfifo_abort);
438
438
 
439
 
static int __devinit mpc52xx_lpbfifo_probe(struct platform_device *op,
440
 
                                           const struct of_device_id *match)
 
439
static int __devinit mpc52xx_lpbfifo_probe(struct platform_device *op)
441
440
{
442
441
        struct resource res;
443
442
        int rc = -ENOMEM;
536
535
        {},
537
536
};
538
537
 
539
 
static struct of_platform_driver mpc52xx_lpbfifo_driver = {
 
538
static struct platform_driver mpc52xx_lpbfifo_driver = {
540
539
        .driver = {
541
540
                .name = "mpc52xx-lpbfifo",
542
541
                .owner = THIS_MODULE,
551
550
 */
552
551
static int __init mpc52xx_lpbfifo_init(void)
553
552
{
554
 
        pr_debug("Registering LocalPlus bus FIFO driver\n");
555
 
        return of_register_platform_driver(&mpc52xx_lpbfifo_driver);
 
553
        return platform_driver_register(&mpc52xx_lpbfifo_driver);
556
554
}
557
555
module_init(mpc52xx_lpbfifo_init);
558
556
 
559
557
static void __exit mpc52xx_lpbfifo_exit(void)
560
558
{
561
 
        pr_debug("Unregistering LocalPlus bus FIFO driver\n");
562
 
        of_unregister_platform_driver(&mpc52xx_lpbfifo_driver);
 
559
        platform_driver_unregister(&mpc52xx_lpbfifo_driver);
563
560
}
564
561
module_exit(mpc52xx_lpbfifo_exit);