/* mpc52xx_lpbfifo_submit - Submit an LPB FIFO transfer request. @req: Pointer to request structure  */
int mpc52xx_lpbfifo_submit(struct mpc52xx_lpbfifo_request *req)
/* mpc52xx_lpbfifo_submit - Submit an LPB FIFO transfer request. @req: Pointer to request structure  */
int mpc52xx_lpbfifo_submit(struct mpc52xx_lpbfifo_request *req)
{
	unsigned long flags;
	if (!lpbfifo.regs)
		return -ENODEV;
	spin_lock_irqsave(&lpbfifo.lock, flags);
	if (lpbfifo.req) {
		spin_unlock_irqrestore(&lpbfifo.lock, flags);
		return -EBUSY;
	}
	lpbfifo.req = req;
	req->irq_count = 0;
	req->irq_ticks = 0;
	req->buffer_not_done_cnt = 0;
	req->pos = 0;
	mpc52xx_lpbfifo_kick(req);
	spin_unlock_irqrestore(&lpbfifo.lock, flags);
	return 0;
}