add printk_ratelimit to atkbd_interrupt
Subsystems (2)
PATCH 1/1 add printk_ratelimit to atkbd_interrupt
Add printk_ratelimit() to atkbd_interrupt(). I get "Spurious ACK" messages flushing on my screen. This patch helps to read the screen.
--
drivers/input/keyboard/atkbd.c +4 -3
@@ -408,9 +408,10 @@ static irqreturn_t atkbd_interrupt(struct serio *serio, unsigned char data, goto out;case ATKBD_RET_ACK :case ATKBD_RET_NAK : -printk (KERN_WARNING "atkbd.c: Spurious %s on %s. " -"Some program might be trying access hardware directly.\n" , - data ==ATKBD_RET_ACK ?"ACK" :"NAK" , serio->phys); +if (printk_ratelimit ()) +printk (KERN_WARNING "atkbd.c: Spurious %s on %s. " +"Some program might be trying access hardware directly.\n" , + data ==ATKBD_RET_ACK ?"ACK" :"NAK" , serio->phys); goto out;case ATKBD_RET_HANGEUL :case ATKBD_RET_HANJA :
Quoted 3 lines · Qi Yong
Add
printk_ratelimit()toatkbd_interrupt(). I get "Spurious ACK" messages flushing on my screen. This patch helps to read the screen.
Will apply, thank you.
Do you have any idea why you are getting spurios ACK messages? Do you have an application fiddling with keyboard port or do you have blink driver enabled?
Signature · 1 line
Dmitry
Quoted 7 lines · Dmitry Torokhov
Quoted 4 lines · Qi Yong
Add
printk_ratelimit()toatkbd_interrupt(). I get "Spurious ACK" messages flushing on my screen. This patch helps to read the screen.
Quoted 5 lines
Will apply, thank you.
Do you have any idea why you are getting spurios ACK messages? Do you have an application fiddling with keyboard port or do you have blink driver enabled?
No idea. It is at boot time.
Yes, i have CONFIG_BLINK=y.
(add CC: Michal Piotrowski)
Signature · 1 line
Qi Yong
Quoted 8 lines · Qi Yong
Quoted 7 lines · Dmitry Torokhov
Quoted 4 lines · Qi Yong
Add
printk_ratelimit()toatkbd_interrupt(). I get "Spurious ACK" messages flushing on my screen. This patch helps to read the screen.
Quoted 8 lines
Quoted 5 lines
Will apply, thank you.
Do you have any idea why you are getting spurios ACK messages? Do you have an application fiddling with keyboard port or do you have blink driver enabled?
No idea. It is at boot time.
Yes, i haveCONFIG_BLINK=y.
Disable it.
Signature · 1 line
Dmitry