Commit 80145a57 authored by Devendra Naga's avatar Devendra Naga Committed by Greg Kroah-Hartman

staging/ft1000: remove all spaces, tabs issue in while loop of ft1000_interrupt

all spaces in the main while loop of ft1000_interrupt are converted
to tabs.
Signed-off-by: default avatarDevendra Naga <devendra.aaru@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 69a7cd7d
...@@ -1996,41 +1996,43 @@ static irqreturn_t ft1000_interrupt(int irq, void *dev_id) ...@@ -1996,41 +1996,43 @@ static irqreturn_t ft1000_interrupt(int irq, void *dev_id)
inttype = ft1000_read_reg(dev, FT1000_REG_SUP_ISR); inttype = ft1000_read_reg(dev, FT1000_REG_SUP_ISR);
// Make sure we process all interrupt before leaving the ISR due to the edge trigger interrupt type // Make sure we process all interrupt before leaving the ISR due to the edge trigger interrupt type
while (inttype) { while (inttype) {
if (inttype & ISR_DOORBELL_PEND) if (inttype & ISR_DOORBELL_PEND)
ft1000_parse_dpram_msg(dev); ft1000_parse_dpram_msg(dev);
if (inttype & ISR_RCV) { if (inttype & ISR_RCV) {
DEBUG(1, "Data in FIFO\n"); DEBUG(1, "Data in FIFO\n");
cnt = 0; cnt = 0;
do { do {
// Check if we have packets in the Downlink FIFO // Check if we have packets in the Downlink FIFO
if (info->AsicID == ELECTRABUZZ_ID) { if (info->AsicID == ELECTRABUZZ_ID) {
tempword = tempword =
ft1000_read_reg(dev, FT1000_REG_DFIFO_STAT); ft1000_read_reg(dev,
} else { FT1000_REG_DFIFO_STAT);
tempword = } else {
ft1000_read_reg(dev, FT1000_REG_MAG_DFSR); tempword =
} ft1000_read_reg(dev,
if (tempword & 0x1f) { FT1000_REG_MAG_DFSR);
ft1000_copy_up_pkt(dev); }
} else { if (tempword & 0x1f) {
break; ft1000_copy_up_pkt(dev);
} } else {
cnt++; break;
} while (cnt < MAX_RCV_LOOP); }
cnt++;
} while (cnt < MAX_RCV_LOOP);
}
// clear interrupts
tempword = ft1000_read_reg(dev, FT1000_REG_SUP_ISR);
DEBUG(1, "ft1000_hw: interrupt status register = 0x%x\n", tempword);
ft1000_write_reg(dev, FT1000_REG_SUP_ISR, tempword);
// Read interrupt type
inttype = ft1000_read_reg (dev, FT1000_REG_SUP_ISR);
DEBUG(1,"ft1000_hw: interrupt status register after clear = 0x%x\n",inttype);
} }
// clear interrupts
tempword = ft1000_read_reg(dev, FT1000_REG_SUP_ISR);
DEBUG(1, "ft1000_hw: interrupt status register = 0x%x\n", tempword);
ft1000_write_reg(dev, FT1000_REG_SUP_ISR, tempword);
// Read interrupt type
inttype = ft1000_read_reg (dev, FT1000_REG_SUP_ISR);
DEBUG(1,"ft1000_hw: interrupt status register after clear = 0x%x\n",inttype);
}
ft1000_enable_interrupts(dev); ft1000_enable_interrupts(dev);
return IRQ_HANDLED; return IRQ_HANDLED;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment