File tree Expand file tree Collapse file tree 1 file changed +0
-14
lines changed Expand file tree Collapse file tree 1 file changed +0
-14
lines changed Original file line number Diff line number Diff line change @@ -210,7 +210,6 @@ static bool pmz_receive_chars(struct uart_pmac_port *uap)
210
210
{
211
211
struct tty_port * port ;
212
212
unsigned char ch , r1 , drop , flag ;
213
- int loops = 0 ;
214
213
215
214
/* Sanity check, make sure the old bug is no longer happening */
216
215
if (uap -> port .state == NULL ) {
@@ -291,24 +290,11 @@ static bool pmz_receive_chars(struct uart_pmac_port *uap)
291
290
if (r1 & Rx_OVR )
292
291
tty_insert_flip_char (port , 0 , TTY_OVERRUN );
293
292
next_char :
294
- /* We can get stuck in an infinite loop getting char 0 when the
295
- * line is in a wrong HW state, we break that here.
296
- * When that happens, I disable the receive side of the driver.
297
- * Note that what I've been experiencing is a real irq loop where
298
- * I'm getting flooded regardless of the actual port speed.
299
- * Something strange is going on with the HW
300
- */
301
- if ((++ loops ) > 1000 )
302
- goto flood ;
303
293
ch = read_zsreg (uap , R0 );
304
294
if (!(ch & Rx_CH_AV ))
305
295
break ;
306
296
}
307
297
308
- return true;
309
- flood :
310
- pmz_interrupt_control (uap , 0 );
311
- pmz_error ("pmz: rx irq flood !\n" );
312
298
return true;
313
299
}
314
300
You can’t perform that action at this time.
0 commit comments