aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/ipack/devices/ipoctal.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/ipack/devices/ipoctal.c')
-rw-r--r--drivers/ipack/devices/ipoctal.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/ipack/devices/ipoctal.c b/drivers/ipack/devices/ipoctal.c
index 9cd5572457ff..5ce2c4c5bb32 100644
--- a/drivers/ipack/devices/ipoctal.c
+++ b/drivers/ipack/devices/ipoctal.c
@@ -191,6 +191,8 @@ static void ipoctal_irq_channel(struct ipoctal_channel *channel)
191 tty = tty_port_tty_get(&channel->tty_port); 191 tty = tty_port_tty_get(&channel->tty_port);
192 if (!tty) 192 if (!tty)
193 return; 193 return;
194
195 spin_lock(&channel->lock);
194 /* The HW is organized in pair of channels. See which register we need 196 /* The HW is organized in pair of channels. See which register we need
195 * to read from */ 197 * to read from */
196 isr = ioread8(&channel->block_regs->r.isr); 198 isr = ioread8(&channel->block_regs->r.isr);
@@ -216,6 +218,7 @@ static void ipoctal_irq_channel(struct ipoctal_channel *channel)
216 218
217 tty_flip_buffer_push(tty); 219 tty_flip_buffer_push(tty);
218 tty_kref_put(tty); 220 tty_kref_put(tty);
221 spin_unlock(&channel->lock);
219} 222}
220 223
221static irqreturn_t ipoctal_irq_handler(void *arg) 224static irqreturn_t ipoctal_irq_handler(void *arg)